diff options
Diffstat (limited to 'chrome/browser/prefs/pref_service.h')
-rw-r--r-- | chrome/browser/prefs/pref_service.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/chrome/browser/prefs/pref_service.h b/chrome/browser/prefs/pref_service.h index 690b8c2..200693d 100644 --- a/chrome/browser/prefs/pref_service.h +++ b/chrome/browser/prefs/pref_service.h @@ -203,6 +203,9 @@ class PrefService : public base::NonThreadSafe { void SetDouble(const char* path, double value); void SetString(const char* path, const std::string& value); void SetFilePath(const char* path, const FilePath& value); + // SetList() takes ownership of |value|. Pass a copy of the ListValue to + // keep ownership of the original list, if necessary. + void SetList(const char* path, ListValue* value); // Int64 helper methods that actually store the given value as a string. // Note that if obtaining the named value via GetDictionary or GetList, the |