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

Unified Diff: base/prefs/pref_registry.h

Issue 753603002: Change preference APIs to take std::string instead of const char*. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed all calls to c_str() in prefs. Created 6 years 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
« no previous file with comments | « base/prefs/pref_notifier_impl_unittest.cc ('k') | base/prefs/pref_registry.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/prefs/pref_registry.h
diff --git a/base/prefs/pref_registry.h b/base/prefs/pref_registry.h
index 896db3ffa62d16f1287c1579ef9105c491665d50..a500b6e691a08e73a0be65651da892edaf86aec7 100644
--- a/base/prefs/pref_registry.h
+++ b/base/prefs/pref_registry.h
@@ -41,14 +41,14 @@ class BASE_PREFS_EXPORT PrefRegistry : public base::RefCounted<PrefRegistry> {
// Changes the default value for a preference. Takes ownership of |value|.
//
// |pref_name| must be a previously registered preference.
- void SetDefaultPrefValue(const char* pref_name, base::Value* value);
+ void SetDefaultPrefValue(const std::string& pref_name, base::Value* value);
protected:
friend class base::RefCounted<PrefRegistry>;
virtual ~PrefRegistry();
// Used by subclasses to register a default value for a preference.
- void RegisterPreference(const char* path, base::Value* default_value);
+ void RegisterPreference(const std::string& path, base::Value* default_value);
scoped_refptr<DefaultPrefStore> defaults_;
« no previous file with comments | « base/prefs/pref_notifier_impl_unittest.cc ('k') | base/prefs/pref_registry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698