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

Unified Diff: components/prefs/command_line_pref_store.cc

Issue 2666093002: Remove base::FundamentalValue (Closed)
Patch Set: Rebase Created 3 years, 10 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: components/prefs/command_line_pref_store.cc
diff --git a/components/prefs/command_line_pref_store.cc b/components/prefs/command_line_pref_store.cc
index f8a503e5441a6179af878a583f1c2643ac8bebdf..49278c19f2a0168a747b5d84fc69e59d56c3b7a2 100644
--- a/components/prefs/command_line_pref_store.cc
+++ b/components/prefs/command_line_pref_store.cc
@@ -60,7 +60,7 @@ void CommandLinePrefStore::ApplyIntegerSwitches(
continue;
}
SetValue(integer_switch[i].preference_path,
- base::MakeUnique<base::FundamentalValue>(int_value),
+ base::MakeUnique<base::Value>(int_value),
WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS);
}
}
@@ -72,8 +72,7 @@ void CommandLinePrefStore::ApplyBooleanSwitches(
for (size_t i = 0; i < size; ++i) {
if (command_line_->HasSwitch(boolean_switch_map[i].switch_name)) {
SetValue(boolean_switch_map[i].preference_path,
- base::MakeUnique<base::FundamentalValue>(
- boolean_switch_map[i].set_value),
+ base::MakeUnique<base::Value>(boolean_switch_map[i].set_value),
WriteablePrefStore::DEFAULT_PREF_WRITE_FLAGS);
}
}
« no previous file with comments | « components/policy/tools/generate_policy_source_test.py ('k') | components/prefs/in_memory_pref_store_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698