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

Unified Diff: chrome/browser/sync/profile_sync_service_android.cc

Issue 22914014: Add more control over sync for Chromium testshell. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed findbugs Created 7 years, 4 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: chrome/browser/sync/profile_sync_service_android.cc
diff --git a/chrome/browser/sync/profile_sync_service_android.cc b/chrome/browser/sync/profile_sync_service_android.cc
index 8abc53be868b6d7e8049676a7553ca35c1f18d7c..7835d2ea3365efe3bb6b5a822407c794609a6e7f 100644
--- a/chrome/browser/sync/profile_sync_service_android.cc
+++ b/chrome/browser/sync/profile_sync_service_android.cc
@@ -472,6 +472,12 @@ ScopedJavaLocalRef<jstring> ProfileSyncServiceAndroid::GetAboutInfoForTest(
return ConvertUTF8ToJavaString(env, about_info_json);
}
+jlong ProfileSyncServiceAndroid::GetLastSyncedTimeForTest(
+ JNIEnv* env, jobject obj) {
+ return static_cast<jlong>(
+ profile_->GetPrefs()->GetInt64(prefs::kSyncLastSyncedTime));
+}
+
void ProfileSyncServiceAndroid::NudgeSyncer(JNIEnv* env,
jobject obj,
jstring objectId,

Powered by Google App Engine
This is Rietveld 408576698