Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(770)

Unified Diff: net/android/java/src/org/chromium/net/NetworkChangeNotifier.java

Issue 1967373003: Rename NetworkChangeNotifierAutoDetect.Observer.updateActiveNetworkList (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: expand renames Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: net/android/java/src/org/chromium/net/NetworkChangeNotifier.java
diff --git a/net/android/java/src/org/chromium/net/NetworkChangeNotifier.java b/net/android/java/src/org/chromium/net/NetworkChangeNotifier.java
index ee916b4fc04c4eceab1c55685898b22d0a52064c..cc335900a3f7be02f9f971328bcd20774487b299 100644
--- a/net/android/java/src/org/chromium/net/NetworkChangeNotifier.java
+++ b/net/android/java/src/org/chromium/net/NetworkChangeNotifier.java
@@ -210,8 +210,8 @@ public class NetworkChangeNotifier {
notifyObserversOfNetworkDisconnect(netId);
}
@Override
- public void updateActiveNetworkList(int[] activeNetIds) {
- notifyObserversToUpdateActiveNetworkList(activeNetIds);
+ public void purgeActiveNetworkList(int[] activeNetIds) {
+ notifyObserversToPurgeActiveNetworkList(activeNetIds);
}
},
mContext, policy);
@@ -270,9 +270,9 @@ public class NetworkChangeNotifier {
// For testing, pretend a network lists should be purged.
@CalledByNative
- public static void fakeUpdateActiveNetworkList(int[] activeNetIds) {
+ public static void fakePurgeActiveNetworkList(int[] activeNetIds) {
setAutoDetectConnectivityState(false);
- getInstance().notifyObserversToUpdateActiveNetworkList(activeNetIds);
+ getInstance().notifyObserversToPurgeActiveNetworkList(activeNetIds);
}
// For testing, pretend a default network changed.
@@ -363,9 +363,9 @@ public class NetworkChangeNotifier {
* issued if a period elapsed where disconnected notifications may have
* been missed, and acts to keep cached lists of active networks accurate.
*/
- void notifyObserversToUpdateActiveNetworkList(int[] activeNetIds) {
+ void notifyObserversToPurgeActiveNetworkList(int[] activeNetIds) {
for (Long nativeChangeNotifier : mNativeChangeNotifiers) {
- nativeNotifyUpdateActiveNetworkList(nativeChangeNotifier, activeNetIds);
+ nativeNotifyPurgeActiveNetworkList(nativeChangeNotifier, activeNetIds);
}
}
@@ -408,7 +408,7 @@ public class NetworkChangeNotifier {
private native void nativeNotifyOfNetworkDisconnect(long nativePtr, int netId);
@NativeClassQualifiedName("NetworkChangeNotifierDelegateAndroid")
- private native void nativeNotifyUpdateActiveNetworkList(long nativePtr, int[] activeNetIds);
+ private native void nativeNotifyPurgeActiveNetworkList(long nativePtr, int[] activeNetIds);
private static native double nativeGetMaxBandwidthForConnectionSubtype(int subtype);

Powered by Google App Engine
This is Rietveld 408576698