diff options
author | clamy@chromium.org <clamy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-25 14:23:40 +0000 |
---|---|---|
committer | clamy@chromium.org <clamy@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-04-25 14:23:40 +0000 |
commit | 950e33e85ca7a4f6da7e94dab6b25c3c5bf65887 (patch) | |
tree | 0518aa4118853dc2211ee5296b2799ef71f1d43d /net/android | |
parent | f3c083df098c9333fa5b8a7a3d99886c089f7f55 (diff) | |
download | chromium_src-950e33e85ca7a4f6da7e94dab6b25c3c5bf65887.zip chromium_src-950e33e85ca7a4f6da7e94dab6b25c3c5bf65887.tar.gz chromium_src-950e33e85ca7a4f6da7e94dab6b25c3c5bf65887.tar.bz2 |
Android: Make sure the NetworkChangeNotifier is initialized in getAuthToken
BUG=224019
Review URL: https://chromiumcodereview.appspot.com/14424008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@196396 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, 4 insertions, 0 deletions
diff --git a/net/android/java/src/org/chromium/net/NetworkChangeNotifier.java b/net/android/java/src/org/chromium/net/NetworkChangeNotifier.java index 58360b4..a5de983 100644 --- a/net/android/java/src/org/chromium/net/NetworkChangeNotifier.java +++ b/net/android/java/src/org/chromium/net/NetworkChangeNotifier.java @@ -67,6 +67,10 @@ public class NetworkChangeNotifier { return sInstance; } + public static boolean isInitialized() { + return sInstance != null; + } + static void resetInstanceForTests(Context context) { sInstance = new NetworkChangeNotifier(context); } |