Index: base/prefs/scoped_user_pref_update.h |
diff --git a/base/prefs/scoped_user_pref_update.h b/base/prefs/scoped_user_pref_update.h |
index 82d6739dd32c4c6fb5d50d484ec76d566419b6a0..f8bebfe435ca2a4eedc79e1043767895c12052cb 100644 |
--- a/base/prefs/scoped_user_pref_update.h |
+++ b/base/prefs/scoped_user_pref_update.h |
@@ -33,7 +33,7 @@ namespace subtle { |
// PrefService::ReportUserPrefChanged. |
class BASE_PREFS_EXPORT ScopedUserPrefUpdateBase : public base::NonThreadSafe { |
protected: |
- ScopedUserPrefUpdateBase(PrefService* service, const char* path); |
+ ScopedUserPrefUpdateBase(PrefService* service, const std::string& path); |
// Calls Notify(). |
~ScopedUserPrefUpdateBase(); |
@@ -66,7 +66,7 @@ class BASE_PREFS_EXPORT ScopedUserPrefUpdateBase : public base::NonThreadSafe { |
template <typename T, base::Value::Type type_enum_value> |
class ScopedUserPrefUpdate : public subtle::ScopedUserPrefUpdateBase { |
public: |
- ScopedUserPrefUpdate(PrefService* service, const char* path) |
+ ScopedUserPrefUpdate(PrefService* service, const std::string& path) |
: ScopedUserPrefUpdateBase(service, path) {} |
// Triggers an update notification if Get() was called. |