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

Unified Diff: chrome/browser/extensions/extension_prefs.cc

Issue 7647026: base: Add three helper functions to Values API. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: fix a typo Ceate -> Create Created 9 years, 4 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
Index: chrome/browser/extensions/extension_prefs.cc
diff --git a/chrome/browser/extensions/extension_prefs.cc b/chrome/browser/extensions/extension_prefs.cc
index 776273ee31e5077b9b39769eb66f9037591239bf..96f86475ce5f9a5ede666d215e99fed00d8d9bc9 100644
--- a/chrome/browser/extensions/extension_prefs.cc
+++ b/chrome/browser/extensions/extension_prefs.cc
@@ -613,8 +613,7 @@ void ExtensionPrefs::UpdateBlacklist(
std::set<std::string>::const_iterator set_itr = blacklist_set.begin();
for (; set_itr != blacklist_set.end(); ++set_itr) {
if (used_id_set.find(*set_itr) == used_id_set.end()) {
- UpdateExtensionPref(*set_itr, kPrefBlacklist,
- Value::CreateBooleanValue(true));
+ UpdateExtensionPref(*set_itr, kPrefBlacklist, base::TrueValue());
}
}
for (unsigned int i = 0; i < remove_pref_ids.size(); ++i) {
@@ -1367,8 +1366,7 @@ bool ExtensionPrefs::WasAppDraggedByUser(const std::string& extension_id) {
}
void ExtensionPrefs::SetAppDraggedByUser(const std::string& extension_id) {
- UpdateExtensionPref(extension_id, kPrefUserDraggedApp,
- Value::CreateBooleanValue(true));
+ UpdateExtensionPref(extension_id, kPrefUserDraggedApp, base::TrueValue());
}
void ExtensionPrefs::SetUpdateUrlData(const std::string& extension_id,
« no previous file with comments | « chrome/browser/extensions/extension_permissions_api.cc ('k') | chrome/browser/extensions/extension_tabs_module.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698