Chromium Code Reviews| Index: net/android/java/src/org/chromium/net/RegistrationPolicyAlwaysRegister.java |
| diff --git a/net/android/java/src/org/chromium/net/RegistrationPolicyAlwaysRegister.java b/net/android/java/src/org/chromium/net/RegistrationPolicyAlwaysRegister.java |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..787c24729069a5ffce65261ababfaa742c54c01a |
| --- /dev/null |
| +++ b/net/android/java/src/org/chromium/net/RegistrationPolicyAlwaysRegister.java |
| @@ -0,0 +1,19 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +package org.chromium.net; |
| + |
| +/** |
| + * Registration policy which make sure that the listener is always registered. |
| + */ |
| +public class RegistrationPolicyAlwaysRegister extends RegistrationPolicy { |
| + public RegistrationPolicyAlwaysRegister() {} |
|
pauljensen
2015/10/01 12:06:37
why do we need a constructor?
timvolodine
2015/10/05 17:26:45
no need. done.
|
| + |
| + protected void init(Listener listener) { |
| + super.init(listener); |
| + notifyRegister(); |
| + } |
| + |
| + protected void destroy() {} |
| +} |