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

Unified Diff: base/values.h

Issue 159156: Add space-saving overloads for DictionaryValue::SetXXX... Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 5 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
« no previous file with comments | « no previous file | base/values.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/values.h
===================================================================
--- base/values.h (revision 21162)
+++ base/values.h (working copy)
@@ -224,10 +224,14 @@
// Convenience forms of Set(). These methods will replace any existing
// value at that path, even if it has a different type.
bool SetBoolean(const std::wstring& path, bool in_value);
+ bool SetBoolean(const wchar_t* path, bool in_value);
bool SetInteger(const std::wstring& path, int in_value);
+ bool SetInteger(const wchar_t* path, int in_value);
bool SetReal(const std::wstring& path, double in_value);
bool SetString(const std::wstring& path, const std::string& in_value);
+ bool SetString(const wchar_t* path, const std::string& in_value);
bool SetString(const std::wstring& path, const std::wstring& in_value);
+ bool SetString(const wchar_t* path, const std::wstring& in_value);
// Gets the Value associated with the given path starting from this object.
// A path has the form "<key>" or "<key>.<key>.[...]", where "." indexes
« no previous file with comments | « no previous file | base/values.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698