1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4 
5 package org.chromium.net;
6 
7 /**
8  * Registration policy which make sure that the listener is always registered.
9  */
10 public class RegistrationPolicyAlwaysRegister
11         extends NetworkChangeNotifierAutoDetect.RegistrationPolicy {
12     @Override
init(NetworkChangeNotifierAutoDetect notifier)13     protected void init(NetworkChangeNotifierAutoDetect notifier) {
14         super.init(notifier);
15         register();
16     }
17 
18     @Override
destroy()19     protected void destroy() {}
20 }
21