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

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

Issue 630223003: Add GetExplicitPassphraseTime() JNI call. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add a comment. Created 6 years, 2 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
« no previous file with comments | « chrome/browser/sync/profile_sync_service_android.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 434df3ffc61012b2f30497e06da023fb4cdd8f00..f6251c114b08a9a67224888810f7a8316d76416e 100644
--- a/chrome/browser/sync/profile_sync_service_android.cc
+++ b/chrome/browser/sync/profile_sync_service_android.cc
@@ -257,6 +257,13 @@ jboolean ProfileSyncServiceAndroid::HasExplicitPassphraseTime(
return !passphrase_time.is_null();
}
+jlong ProfileSyncServiceAndroid::GetExplicitPassphraseTime(
+ JNIEnv* env, jobject) {
+ DCHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
+ base::Time passphrase_time = sync_service_->GetExplicitPassphraseTime();
+ return passphrase_time.ToJavaTime();
+}
+
ScopedJavaLocalRef<jstring>
ProfileSyncServiceAndroid::GetSyncEnterGooglePassphraseBodyWithDateText(
JNIEnv* env, jobject) {
« no previous file with comments | « chrome/browser/sync/profile_sync_service_android.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698