• Home
  • Line#
  • Scopes#
  • Navigate#
  • Raw
  • Download
1 // Copyright 2015 The Chromium Authors
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 /** Registration policy which make sure that the listener is always registered. */
8 public class RegistrationPolicyAlwaysRegister
9         extends NetworkChangeNotifierAutoDetect.RegistrationPolicy {
10     @Override
init(NetworkChangeNotifierAutoDetect notifier)11     protected void init(NetworkChangeNotifierAutoDetect notifier) {
12         super.init(notifier);
13         register();
14     }
15 
16     @Override
destroy()17     protected void destroy() {}
18 }
19