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

Unified Diff: chrome/browser/ui/webui/options/chromeos/display_options_handler.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: chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
diff --git a/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc b/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
index db42c9e9c7e3664afd656a046165dfe8e1173478..f21b97ea679e6f68e637756f293449e8695c6804 100644
--- a/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
+++ b/chrome/browser/ui/webui/options/chromeos/display_options_handler.cc
@@ -318,7 +318,7 @@ void DisplayOptionsHandler::SendAllDisplayInfo() {
display_mode = display::DisplayManager::UNIFIED;
else
display_mode = display::DisplayManager::EXTENDED;
- base::FundamentalValue mode(static_cast<int>(display_mode));
+ base::Value mode(static_cast<int>(display_mode));
int64_t primary_id = display::Screen::GetScreen()->GetPrimaryDisplay().id();
std::unique_ptr<base::ListValue> js_displays(new base::ListValue);
@@ -393,10 +393,8 @@ void DisplayOptionsHandler::UpdateDisplaySettingsEnabled() {
bool mirrored_enabled = display_manager->num_connected_displays() == 2;
web_ui()->CallJavascriptFunctionUnsafe(
- "options.BrowserOptions.enableDisplaySettings",
- base::FundamentalValue(ui_enabled),
- base::FundamentalValue(unified_enabled),
- base::FundamentalValue(mirrored_enabled));
+ "options.BrowserOptions.enableDisplaySettings", base::Value(ui_enabled),
+ base::Value(unified_enabled), base::Value(mirrored_enabled));
}
void DisplayOptionsHandler::HandleDisplayInfo(

Powered by Google App Engine
This is Rietveld 408576698