Index: components/prefs/pref_member.h |
diff --git a/components/prefs/pref_member.h b/components/prefs/pref_member.h |
index f46e368603cc74c0539126c1a70e1a1cad0523db..8ca97894aa36c7c6670d35545e045d02c357c1ec 100644 |
--- a/components/prefs/pref_member.h |
+++ b/components/prefs/pref_member.h |
@@ -21,8 +21,8 @@ |
// notify MyClass of changes. Note that if you use SetValue(), the observer |
// will not be notified. |
-#ifndef COMPONENTS_PREFS_PREF_MEMBER_H_ |
-#define COMPONENTS_PREFS_PREF_MEMBER_H_ |
+#ifndef BASE_PREFS_PREF_MEMBER_H_ |
+#define BASE_PREFS_PREF_MEMBER_H_ |
#include <string> |
#include <vector> |
@@ -42,7 +42,7 @@ |
namespace subtle { |
-class COMPONENTS_PREFS_EXPORT PrefMemberBase : public PrefObserver { |
+class BASE_PREFS_EXPORT PrefMemberBase : public PrefObserver { |
public: |
// Type of callback you can register if you need to know the name of |
// the pref that is changing. |
@@ -52,7 +52,7 @@ |
const PrefService* prefs() const { return prefs_; } |
protected: |
- class COMPONENTS_PREFS_EXPORT Internal |
+ class BASE_PREFS_EXPORT Internal |
: public base::RefCountedThreadSafe<Internal> { |
public: |
Internal(); |
@@ -151,7 +151,7 @@ |
// This function implements StringListPrefMember::UpdateValue(). |
// It is exposed here for testing purposes. |
-bool COMPONENTS_PREFS_EXPORT PrefMemberVectorStringUpdate( |
+bool BASE_PREFS_EXPORT PrefMemberVectorStringUpdate( |
const base::Value& value, |
std::vector<std::string>* string_vector); |
@@ -263,7 +263,7 @@ |
protected: |
~Internal() override {} |
- COMPONENTS_PREFS_EXPORT bool UpdateValueInternal( |
+ BASE_PREFS_EXPORT bool UpdateValueInternal( |
const base::Value& value) const override; |
// We cache the value of the pref so we don't have to keep walking the pref |
@@ -278,7 +278,7 @@ |
void CreateInternal() const override { internal_ = new Internal(); } |
// This method is used to do the actual sync with pref of the specified type. |
- void COMPONENTS_PREFS_EXPORT UpdatePref(const ValueType& value); |
+ void BASE_PREFS_EXPORT UpdatePref(const ValueType& value); |
mutable scoped_refptr<Internal> internal_; |
@@ -298,52 +298,50 @@ |
// --install --runhooks |
template <> |
-COMPONENTS_PREFS_EXPORT void PrefMember<bool>::UpdatePref(const bool& value); |
- |
-template <> |
-COMPONENTS_PREFS_EXPORT bool PrefMember<bool>::Internal::UpdateValueInternal( |
- const base::Value& value) const; |
- |
-template <> |
-COMPONENTS_PREFS_EXPORT void PrefMember<int>::UpdatePref(const int& value); |
- |
-template <> |
-COMPONENTS_PREFS_EXPORT bool PrefMember<int>::Internal::UpdateValueInternal( |
- const base::Value& value) const; |
- |
-template <> |
-COMPONENTS_PREFS_EXPORT void |
-PrefMember<double>::UpdatePref(const double& value); |
- |
-template <> |
-COMPONENTS_PREFS_EXPORT bool PrefMember<double>::Internal::UpdateValueInternal( |
- const base::Value& value) const; |
- |
-template <> |
-COMPONENTS_PREFS_EXPORT void PrefMember<std::string>::UpdatePref( |
+BASE_PREFS_EXPORT void PrefMember<bool>::UpdatePref(const bool& value); |
+ |
+template <> |
+BASE_PREFS_EXPORT bool PrefMember<bool>::Internal::UpdateValueInternal( |
+ const base::Value& value) const; |
+ |
+template <> |
+BASE_PREFS_EXPORT void PrefMember<int>::UpdatePref(const int& value); |
+ |
+template <> |
+BASE_PREFS_EXPORT bool PrefMember<int>::Internal::UpdateValueInternal( |
+ const base::Value& value) const; |
+ |
+template <> |
+BASE_PREFS_EXPORT void PrefMember<double>::UpdatePref(const double& value); |
+ |
+template <> |
+BASE_PREFS_EXPORT bool PrefMember<double>::Internal::UpdateValueInternal( |
+ const base::Value& value) const; |
+ |
+template <> |
+BASE_PREFS_EXPORT void PrefMember<std::string>::UpdatePref( |
const std::string& value); |
template <> |
-COMPONENTS_PREFS_EXPORT bool |
-PrefMember<std::string>::Internal::UpdateValueInternal( |
- const base::Value& value) const; |
- |
-template <> |
-COMPONENTS_PREFS_EXPORT void PrefMember<base::FilePath>::UpdatePref( |
+BASE_PREFS_EXPORT bool PrefMember<std::string>::Internal::UpdateValueInternal( |
+ const base::Value& value) const; |
+ |
+template <> |
+BASE_PREFS_EXPORT void PrefMember<base::FilePath>::UpdatePref( |
const base::FilePath& value); |
template <> |
-COMPONENTS_PREFS_EXPORT bool |
+BASE_PREFS_EXPORT bool |
PrefMember<base::FilePath>::Internal::UpdateValueInternal( |
const base::Value& value) const; |
template <> |
-COMPONENTS_PREFS_EXPORT void PrefMember<std::vector<std::string>>::UpdatePref( |
+BASE_PREFS_EXPORT void PrefMember<std::vector<std::string> >::UpdatePref( |
const std::vector<std::string>& value); |
template <> |
-COMPONENTS_PREFS_EXPORT bool |
-PrefMember<std::vector<std::string>>::Internal::UpdateValueInternal( |
+BASE_PREFS_EXPORT bool |
+PrefMember<std::vector<std::string> >::Internal::UpdateValueInternal( |
const base::Value& value) const; |
typedef PrefMember<bool> BooleanPrefMember; |
@@ -352,6 +350,6 @@ |
typedef PrefMember<std::string> StringPrefMember; |
typedef PrefMember<base::FilePath> FilePathPrefMember; |
// This preference member is expensive for large string arrays. |
-typedef PrefMember<std::vector<std::string>> StringListPrefMember; |
- |
-#endif // COMPONENTS_PREFS_PREF_MEMBER_H_ |
+typedef PrefMember<std::vector<std::string> > StringListPrefMember; |
+ |
+#endif // BASE_PREFS_PREF_MEMBER_H_ |