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

Unified Diff: chrome/browser/prefs/command_line_pref_store.cc

Issue 385263004: Get rid of some uses of CreateIntegerValue (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 6 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
Index: chrome/browser/prefs/command_line_pref_store.cc
diff --git a/chrome/browser/prefs/command_line_pref_store.cc b/chrome/browser/prefs/command_line_pref_store.cc
index ae3d50f1a30ac3e8ddc4d2ed085636232f61f545..f838e3db6ae40e2413aa649a0214c1d52cd18814 100644
--- a/chrome/browser/prefs/command_line_pref_store.cc
+++ b/chrome/browser/prefs/command_line_pref_store.cc
@@ -115,8 +115,8 @@ void CommandLinePrefStore::ApplySimpleSwitches() {
<< " can not be converted to integer, ignoring!";
continue;
}
- base::Value* value = base::Value::CreateIntegerValue(int_value);
- SetValue(integer_switch_map_[i].preference_path, value);
+ SetValue(integer_switch_map_[i].preference_path,
+ new base::FundamentalValue(int_value));
}
}
« no previous file with comments | « chrome/browser/prefs/chrome_pref_service_unittest.cc ('k') | chrome/browser/prefs/incognito_mode_prefs_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698