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

Unified Diff: chrome/browser/android/offline_pages/background_scheduler_bridge.cc

Issue 2572503002: [OfflinePages] Renames StartProcessing to StartScheduledProcessing (Closed)
Patch Set: Fixed junit change Created 4 years 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: chrome/browser/android/offline_pages/background_scheduler_bridge.cc
diff --git a/chrome/browser/android/offline_pages/background_scheduler_bridge.cc b/chrome/browser/android/offline_pages/background_scheduler_bridge.cc
index a282c3f5a4cfe113a824a5fddf4b3df63a328f48..9c59ebb6180918612532f3ed7eb8948f81d7268f 100644
--- a/chrome/browser/android/offline_pages/background_scheduler_bridge.cc
+++ b/chrome/browser/android/offline_pages/background_scheduler_bridge.cc
@@ -30,18 +30,19 @@ void ProcessingDoneCallback(
} // namespace
-// JNI call to start request processing.
-static jboolean StartProcessing(JNIEnv* env,
- const JavaParamRef<jclass>& jcaller,
- const jboolean j_power_connected,
- const jint j_battery_percentage,
- const jint j_net_connection_type,
- const JavaParamRef<jobject>& j_callback_obj) {
+// JNI call to start request processing in scheduled mode.
+static jboolean StartScheduledProcessing(
+ JNIEnv* env,
+ const JavaParamRef<jclass>& jcaller,
+ const jboolean j_power_connected,
+ const jint j_battery_percentage,
+ const jint j_net_connection_type,
+ const JavaParamRef<jobject>& j_callback_obj) {
ScopedJavaGlobalRef<jobject> j_callback_ref;
j_callback_ref.Reset(env, j_callback_obj);
- // Lookup/create RequestCoordinator KeyedService and call StartProcessing on
- // it with bound j_callback_obj.
+ // Lookup/create RequestCoordinator KeyedService and call
+ // StartScheduledProcessing on it with bound j_callback_obj.
Profile* profile = ProfileManager::GetLastUsedProfile();
RequestCoordinator* coordinator =
RequestCoordinatorFactory::GetInstance()->
@@ -51,7 +52,7 @@ static jboolean StartProcessing(JNIEnv* env,
j_power_connected, j_battery_percentage,
static_cast<net::NetworkChangeNotifier::ConnectionType>(
j_net_connection_type));
- return coordinator->StartProcessing(
+ return coordinator->StartScheduledProcessing(
device_conditions, base::Bind(&ProcessingDoneCallback, j_callback_ref));
}

Powered by Google App Engine
This is Rietveld 408576698