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

Unified Diff: components/sync_preferences/pref_model_associator.h

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
« no previous file with comments | « components/sync_preferences/OWNERS ('k') | components/sync_preferences/pref_model_associator.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_preferences/pref_model_associator.h
diff --git a/components/syncable_prefs/pref_model_associator.h b/components/sync_preferences/pref_model_associator.h
similarity index 93%
rename from components/syncable_prefs/pref_model_associator.h
rename to components/sync_preferences/pref_model_associator.h
index bce8f53c7ece0d10aaf61c720abf23f58a31b538..9dd29fa8c2d6feeb0aecb5a036701d26ebbb3f85 100644
--- a/components/syncable_prefs/pref_model_associator.h
+++ b/components/sync_preferences/pref_model_associator.h
@@ -2,8 +2,8 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef COMPONENTS_SYNCABLE_PREFS_PREF_MODEL_ASSOCIATOR_H_
-#define COMPONENTS_SYNCABLE_PREFS_PREF_MODEL_ASSOCIATOR_H_
+#ifndef COMPONENTS_SYNC_PREFERENCES_PREF_MODEL_ASSOCIATOR_H_
+#define COMPONENTS_SYNC_PREFERENCES_PREF_MODEL_ASSOCIATOR_H_
#include <map>
#include <memory>
@@ -19,7 +19,7 @@
#include "base/threading/non_thread_safe.h"
#include "components/sync/model/sync_data.h"
#include "components/sync/model/syncable_service.h"
-#include "components/syncable_prefs/synced_pref_observer.h"
+#include "components/sync_preferences/synced_pref_observer.h"
namespace base {
class Value;
@@ -29,7 +29,7 @@ namespace sync_pb {
class PreferenceSpecifics;
}
-namespace syncable_prefs {
+namespace sync_preferences {
class PrefModelAssociatorClient;
class PrefRegistrySyncable;
@@ -38,9 +38,8 @@ class PrefServiceSyncable;
// Contains all preference sync related logic.
// TODO(sync): Merge this into PrefService once we separate the profile
// PrefService from the local state PrefService.
-class PrefModelAssociator
- : public syncer::SyncableService,
- public base::NonThreadSafe {
+class PrefModelAssociator : public syncer::SyncableService,
+ public base::NonThreadSafe {
public:
// Constructs a PrefModelAssociator initializing the |client_| and |type_|
// instance variable. The |client| is not owned by this object and the caller
@@ -143,8 +142,8 @@ class PrefModelAssociator
const std::string& pref_name,
syncer::SyncChangeList* sync_changes);
- static base::Value* MergeListValues(
- const base::Value& from_value, const base::Value& to_value);
+ static base::Value* MergeListValues(const base::Value& from_value,
+ const base::Value& to_value);
static base::Value* MergeDictionaryValues(const base::Value& from_value,
const base::Value& to_value);
@@ -204,6 +203,6 @@ class PrefModelAssociator
DISALLOW_COPY_AND_ASSIGN(PrefModelAssociator);
};
-} // namespace syncable_prefs
+} // namespace sync_preferences
-#endif // COMPONENTS_SYNCABLE_PREFS_PREF_MODEL_ASSOCIATOR_H_
+#endif // COMPONENTS_SYNC_PREFERENCES_PREF_MODEL_ASSOCIATOR_H_
« no previous file with comments | « components/sync_preferences/OWNERS ('k') | components/sync_preferences/pref_model_associator.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698