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

Unified Diff: components/sync/base/sync_prefs.cc

Issue 2528163002: Rewire the local sync switches through the pref store. (Closed)
Patch Set: Comment new SyncPrefs methods. 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
« no previous file with comments | « components/sync/base/sync_prefs.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync/base/sync_prefs.cc
diff --git a/components/sync/base/sync_prefs.cc b/components/sync/base/sync_prefs.cc
index 63eab9182fca9b988fe25644c576f8eb55de92a5..e0adcb38606f0a19b0705b1dc796ddc2d8847481 100644
--- a/components/sync/base/sync_prefs.cc
+++ b/components/sync/base/sync_prefs.cc
@@ -86,6 +86,8 @@ void SyncPrefs::RegisterProfilePrefs(
prefs::kSyncPassphraseEncryptionTransitionInProgress, false);
registry->RegisterStringPref(prefs::kSyncNigoriStateForPassphraseTransition,
std::string());
+ registry->RegisterBooleanPref(prefs::kEnableLocalSyncBackend, false);
+ registry->RegisterFilePathPref(prefs::kLocalSyncBackendDir, base::FilePath());
}
void SyncPrefs::AddSyncPrefObserver(SyncPrefObserver* sync_pref_observer) {
@@ -546,4 +548,12 @@ void SyncPrefs::GetNigoriSpecificsForPassphraseTransition(
}
}
+bool SyncPrefs::IsLocalSyncEnabled() const {
+ return pref_service_->GetBoolean(prefs::kEnableLocalSyncBackend);
+}
+
+base::FilePath SyncPrefs::GetLocalSyncBackendDir() const {
+ return pref_service_->GetFilePath(prefs::kLocalSyncBackendDir);
+}
+
} // namespace syncer
« no previous file with comments | « components/sync/base/sync_prefs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698