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

Unified Diff: components/sync_preferences/pref_service_syncable.cc

Issue 2459823002: [Sync] Rename syncable_prefs to sync_preferences. (Closed)
Patch Set: Created 4 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
Index: components/sync_preferences/pref_service_syncable.cc
diff --git a/components/syncable_prefs/pref_service_syncable.cc b/components/sync_preferences/pref_service_syncable.cc
similarity index 93%
rename from components/syncable_prefs/pref_service_syncable.cc
rename to components/sync_preferences/pref_service_syncable.cc
index 3aca8af5e43bbc3eee3c0e6ba1dff270ee535644..ac32f54d0f78a5c43a2394143e1115544a715f79 100644
--- a/components/syncable_prefs/pref_service_syncable.cc
+++ b/components/sync_preferences/pref_service_syncable.cc
@@ -2,7 +2,7 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#include "components/syncable_prefs/pref_service_syncable.h"
+#include "components/sync_preferences/pref_service_syncable.h"
#include "base/bind.h"
#include "base/callback.h"
@@ -15,10 +15,10 @@
#include "components/prefs/pref_notifier_impl.h"
#include "components/prefs/pref_registry.h"
#include "components/prefs/pref_value_store.h"
-#include "components/syncable_prefs/pref_model_associator.h"
-#include "components/syncable_prefs/pref_service_syncable_observer.h"
+#include "components/sync_preferences/pref_model_associator.h"
+#include "components/sync_preferences/pref_service_syncable_observer.h"
-namespace syncable_prefs {
+namespace sync_preferences {
PrefServiceSyncable::PrefServiceSyncable(
PrefNotifierImpl* pref_notifier,
@@ -79,8 +79,8 @@ PrefServiceSyncable* PrefServiceSyncable::CreateIncognitoPrefService(
incognito_pref_store->RegisterOverlayPref(overlay_pref_name);
scoped_refptr<user_prefs::PrefRegistrySyncable> forked_registry =
- static_cast<user_prefs::PrefRegistrySyncable*>(
- pref_registry_.get())->ForkForIncognito();
+ static_cast<user_prefs::PrefRegistrySyncable*>(pref_registry_.get())
+ ->ForkForIncognito();
PrefServiceSyncable* incognito_service = new PrefServiceSyncable(
pref_notifier,
pref_value_store_->CloneAndSpecialize(NULL, // managed
@@ -91,11 +91,8 @@ PrefServiceSyncable* PrefServiceSyncable::CreateIncognitoPrefService(
NULL, // recommended
forked_registry->defaults().get(),
pref_notifier),
- incognito_pref_store,
- forked_registry.get(),
- pref_sync_associator_.client(),
- read_error_callback_,
- false);
+ incognito_pref_store, forked_registry.get(),
+ pref_sync_associator_.client(), read_error_callback_, false);
return incognito_service;
}
@@ -189,4 +186,4 @@ void PrefServiceSyncable::ProcessPrefChange(const std::string& name) {
priority_pref_sync_associator_.ProcessPrefChange(name);
}
-} // namespace syncable_prefs
+} // namespace sync_preferences
« no previous file with comments | « components/sync_preferences/pref_service_syncable.h ('k') | components/sync_preferences/pref_service_syncable_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698