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

Unified Diff: sync/internal_api/sync_manager.h

Issue 10540149: [Sync] Persist keystore key across restarts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 6 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: sync/internal_api/sync_manager.h
diff --git a/sync/internal_api/sync_manager.h b/sync/internal_api/sync_manager.h
index 83b8ccbc57e587fd31883bf29830d4691a04da06..a28c41d9223c118b81622641bbab505f581fdae4 100644
--- a/sync/internal_api/sync_manager.h
+++ b/sync/internal_api/sync_manager.h
@@ -459,6 +459,7 @@ class SyncManager {
const SyncCredentials& credentials,
sync_notifier::SyncNotifier* sync_notifier,
const std::string& restored_key_for_bootstrapping,
+ const std::string& restored_keystore_key_for_bootstrapping,
bool keystore_encryption_enabled,
TestingMode testing_mode,
browser_sync::Encryptor* encryptor,
@@ -536,6 +537,10 @@ class SyncManager {
// May be called on any thread.
bool IsUsingExplicitPassphrase();
+ // Extracts the keystore encryption bootstrap token if a keystore key existed.
+ // Returns true if bootstrap token successfully extracted, false otherwise.
+ bool GetKeystoreKeyBootstrapToken(std::string* token);
+
// Call periodically from a database-safe thread to persist recent changes
// to the syncapi model.
void SaveChanges();

Powered by Google App Engine
This is Rietveld 408576698