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

Unified Diff: chrome/browser/sync/sync_prefs.h

Issue 10540149: [Sync] Persist keystore key across restarts (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix rebase Created 8 years, 5 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/glue/sync_backend_host.cc ('k') | chrome/browser/sync/sync_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sync/sync_prefs.h
diff --git a/chrome/browser/sync/sync_prefs.h b/chrome/browser/sync/sync_prefs.h
index b2f4e81f827151aa6451aa4df9fbe7960ed92ca5..5fa82fa71075ee59b25babd8d784840b62cbe894 100644
--- a/chrome/browser/sync/sync_prefs.h
+++ b/chrome/browser/sync/sync_prefs.h
@@ -94,10 +94,15 @@ class SyncPrefs : NON_EXPORTED_BASE(public base::NonThreadSafe),
// This pref is set outside of sync.
bool IsManaged() const;
- // Use this encryption bootstrap token once already syncing.
+ // Use this encryption bootstrap token if we're using an explicit passphrase.
std::string GetEncryptionBootstrapToken() const;
void SetEncryptionBootstrapToken(const std::string& token);
+ // Use this keystore bootstrap token if we're not using an explicit
+ // passphrase.
+ std::string GetKeystoreEncryptionBootstrapToken() const;
+ void SetKeystoreEncryptionBootstrapToken(const std::string& token);
+
// Maps |data_type| to its corresponding preference name.
static const char* GetPrefNameForDataType(syncer::ModelType data_type);
« no previous file with comments | « chrome/browser/sync/glue/sync_backend_host.cc ('k') | chrome/browser/sync/sync_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698