diff options
author | mlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-10 07:23:54 +0000 |
---|---|---|
committer | mlamouri@chromium.org <mlamouri@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2014-03-10 07:23:54 +0000 |
commit | e717944497883560cdfbfe4f5300ee0109ff6d1e (patch) | |
tree | af2fe03e5ebd2d2c24b62eec6695625e298157b6 /net/android | |
parent | f4044df10a918dfd21746f8d54880312345408f2 (diff) | |
download | chromium_src-e717944497883560cdfbfe4f5300ee0109ff6d1e.zip chromium_src-e717944497883560cdfbfe4f5300ee0109ff6d1e.tar.gz chromium_src-e717944497883560cdfbfe4f5300ee0109ff6d1e.tar.bz2 |
ObserverList add/remove methods should return a boolean.
BUG=347557
Review URL: https://codereview.chromium.org/182623003
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@255902 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/android')
-rw-r--r-- | net/android/java/src/org/chromium/net/NetworkChangeNotifier.java | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/net/android/java/src/org/chromium/net/NetworkChangeNotifier.java b/net/android/java/src/org/chromium/net/NetworkChangeNotifier.java index fcf8439..9293c72 100644 --- a/net/android/java/src/org/chromium/net/NetworkChangeNotifier.java +++ b/net/android/java/src/org/chromium/net/NetworkChangeNotifier.java @@ -185,9 +185,7 @@ public class NetworkChangeNotifier { } private void addConnectionTypeObserverInternal(ConnectionTypeObserver observer) { - if (!mConnectionTypeObservers.hasObserver(observer)) { - mConnectionTypeObservers.addObserver(observer); - } + mConnectionTypeObservers.addObserver(observer); } /** |