Index: base/prefs/scoped_user_pref_update.cc |
diff --git a/base/prefs/scoped_user_pref_update.cc b/base/prefs/scoped_user_pref_update.cc |
index 7871c75ce3783ab84156d188fd58b087927e2cfd..1440a5711d8f911d545dbcbbc792abb464bb13de 100644 |
--- a/base/prefs/scoped_user_pref_update.cc |
+++ b/base/prefs/scoped_user_pref_update.cc |
@@ -11,10 +11,8 @@ |
namespace subtle { |
ScopedUserPrefUpdateBase::ScopedUserPrefUpdateBase(PrefService* service, |
- const char* path) |
- : service_(service), |
- path_(path), |
- value_(NULL) { |
+ const std::string& path) |
+ : service_(service), path_(path), value_(NULL) { |
DCHECK(service_->CalledOnValidThread()); |
} |
@@ -25,7 +23,7 @@ ScopedUserPrefUpdateBase::~ScopedUserPrefUpdateBase() { |
base::Value* ScopedUserPrefUpdateBase::GetValueOfType(base::Value::Type type) { |
DCHECK(CalledOnValidThread()); |
if (!value_) |
- value_ = service_->GetMutableUserPref(path_.c_str(), type); |
+ value_ = service_->GetMutableUserPref(path_, type); |
return value_; |
} |