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

Unified Diff: components/user_prefs/pref_registry_syncable.h

Issue 12340111: Introduce //components/user_prefs, use to eliminate c/b/prefs dependency in Autofill. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 10 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/user_prefs/pref_registry_syncable.h
diff --git a/chrome/browser/prefs/pref_registry_syncable.h b/components/user_prefs/pref_registry_syncable.h
similarity index 93%
rename from chrome/browser/prefs/pref_registry_syncable.h
rename to components/user_prefs/pref_registry_syncable.h
index d6d1a4ae0e3da60325696076b0b224ccaaeda730..93641a2e1330e94642b3b2bf1c7c246aba04c2c1 100644
--- a/chrome/browser/prefs/pref_registry_syncable.h
+++ b/components/user_prefs/pref_registry_syncable.h
@@ -2,13 +2,14 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_PREFS_PREF_REGISTRY_SYNCABLE_H_
-#define CHROME_BROWSER_PREFS_PREF_REGISTRY_SYNCABLE_H_
+#ifndef COMPONENTS_USER_PREFS_PREF_REGISTRY_SYNCABLE_H_
+#define COMPONENTS_USER_PREFS_PREF_REGISTRY_SYNCABLE_H_
#include <set>
#include <string>
#include "base/prefs/pref_registry.h"
+#include "components/user_prefs/user_prefs_export.h"
namespace base {
class DictionaryValue;
@@ -19,7 +20,7 @@ class Value;
// A PrefRegistry that forces users to choose whether each registered
// preference is syncable or not.
-class PrefRegistrySyncable : public PrefRegistry {
+class USER_PREFS_EXPORT PrefRegistrySyncable : public PrefRegistry {
public:
typedef base::Callback<void(const char* path)> SyncableRegistrationCallback;
@@ -107,4 +108,4 @@ class PrefRegistrySyncable : public PrefRegistry {
DISALLOW_COPY_AND_ASSIGN(PrefRegistrySyncable);
};
-#endif // CHROME_BROWSER_PREFS_PREF_REGISTRY_SYNCABLE_H_
+#endif // COMPONENTS_USER_PREFS_PREF_REGISTRY_SYNCABLE_H_

Powered by Google App Engine
This is Rietveld 408576698