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

Unified Diff: base/prefs/pref_service.h

Issue 12211105: Move remaining non-test, non-Chrome-specific Prefs code to base/prefs/. (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: base/prefs/pref_service.h
diff --git a/chrome/browser/prefs/pref_service.h b/base/prefs/pref_service.h
similarity index 97%
rename from chrome/browser/prefs/pref_service.h
rename to base/prefs/pref_service.h
index 9ea3787751571ab5275358c392088c09fd483aa1..64836c7e6b2d08a92dbb8cad46362adf9590fcc6 100644
--- a/chrome/browser/prefs/pref_service.h
+++ b/base/prefs/pref_service.h
@@ -8,8 +8,8 @@
// information and MUST not be extracted, overwritten or modified except
// through Chromium defined APIs.
-#ifndef CHROME_BROWSER_PREFS_PREF_SERVICE_H_
-#define CHROME_BROWSER_PREFS_PREF_SERVICE_H_
+#ifndef BASE_PREFS_PREF_SERVICE_H_
+#define BASE_PREFS_PREF_SERVICE_H_
#include <set>
#include <string>
@@ -19,6 +19,7 @@
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
#include "base/observer_list.h"
+#include "base/prefs/base_prefs_export.h"
#include "base/prefs/persistent_pref_store.h"
#include "base/prefs/public/pref_service_base.h"
#include "base/threading/non_thread_safe.h"
@@ -37,7 +38,8 @@ class ScopedUserPrefUpdateBase;
// Base class for PrefServices. You can use the base class to read and
// interact with preferences, but not to register new preferences; for
// that see e.g. PrefRegistrySimple.
-class PrefService : public PrefServiceBase, public base::NonThreadSafe {
+class BASE_PREFS_EXPORT PrefService : public PrefServiceBase,
+ public base::NonThreadSafe {
public:
enum PrefInitializationStatus {
INITIALIZATION_STATUS_WAITING,
@@ -256,4 +258,4 @@ class PrefService : public PrefServiceBase, public base::NonThreadSafe {
DISALLOW_COPY_AND_ASSIGN(PrefService);
};
-#endif // CHROME_BROWSER_PREFS_PREF_SERVICE_H_
+#endif // BASE_PREFS_PREF_SERVICE_H_

Powered by Google App Engine
This is Rietveld 408576698