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

Unified Diff: components/sync_driver/sync_prefs.h

Issue 195873020: [Sync] Move SyncPrefs into sync_driver component (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rerererebase Created 6 years, 9 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_driver/pref_names.cc ('k') | components/sync_driver/sync_prefs.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/sync_driver/sync_prefs.h
diff --git a/chrome/browser/sync/sync_prefs.h b/components/sync_driver/sync_prefs.h
similarity index 92%
rename from chrome/browser/sync/sync_prefs.h
rename to components/sync_driver/sync_prefs.h
index b46c001a9f1240375dbaae9952145ae67ece8ec6..063c3d361960d63fede52ce069b11ead74a0d1ef 100644
--- a/chrome/browser/sync/sync_prefs.h
+++ b/components/sync_driver/sync_prefs.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 CHROME_BROWSER_SYNC_SYNC_PREFS_H_
-#define CHROME_BROWSER_SYNC_SYNC_PREFS_H_
+#ifndef COMPONENTS_SYNC_DRIVER_SYNC_PREFS_H_
+#define COMPONENTS_SYNC_DRIVER_SYNC_PREFS_H_
#include "base/basictypes.h"
#include "base/compiler_specific.h"
@@ -22,7 +22,7 @@ namespace user_prefs {
class PrefRegistrySyncable;
}
-namespace browser_sync {
+namespace sync_driver {
class SyncPrefObserver {
public:
@@ -75,8 +75,6 @@ class SyncPrefs : NON_EXPORTED_BASE(public base::NonThreadSafe),
bool IsStartSuppressed() const;
void SetStartSuppressed(bool is_suppressed);
- std::string GetGoogleServicesUsername() const;
-
base::Time GetLastSyncedTime() const;
void SetLastSyncedTime(base::Time time);
@@ -94,9 +92,8 @@ class SyncPrefs : NON_EXPORTED_BASE(public base::NonThreadSafe),
// Changes are still made to the prefs even if
// HasKeepEverythingSynced() is true, but won't be visible until
// SetKeepEverythingSynced(false) is called.
- void SetPreferredDataTypes(
- syncer::ModelTypeSet registered_types,
- syncer::ModelTypeSet preferred_types);
+ void SetPreferredDataTypes(syncer::ModelTypeSet registered_types,
+ syncer::ModelTypeSet preferred_types);
// This pref is set outside of sync.
bool IsManaged() const;
@@ -144,9 +141,8 @@ class SyncPrefs : NON_EXPORTED_BASE(public base::NonThreadSafe),
// Returns a ModelTypeSet based on |types| expanded to include pref groups
// (see |pref_groups_|), but as a subset of |registered_types|.
- syncer::ModelTypeSet ResolvePrefGroups(
- syncer::ModelTypeSet registered_types,
- syncer::ModelTypeSet types) const;
+ syncer::ModelTypeSet ResolvePrefGroups(syncer::ModelTypeSet registered_types,
+ syncer::ModelTypeSet types) const;
void OnSyncManagedPrefChanged();
@@ -174,4 +170,4 @@ class SyncPrefs : NON_EXPORTED_BASE(public base::NonThreadSafe),
} // namespace browser_sync
-#endif // CHROME_BROWSER_SYNC_SYNC_PREFS_H_
+#endif // COMPONENTS_SYNC_DRIVER_SYNC_PREFS_H_
« no previous file with comments | « components/sync_driver/pref_names.cc ('k') | components/sync_driver/sync_prefs.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698