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

Unified Diff: chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc

Issue 2823073003: Make Use of Value::GetList API
Patch Set: Further Usages Created 3 years, 8 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/chromeos/emulator/device_emulator_message_handler.cc
diff --git a/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc b/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc
index c38c67ecfb8415fecfa2b3bdb460d1fdfdc8a2e9..43f63df708e5e28fb8c970ae905659b70bfb4884 100644
--- a/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc
+++ b/chrome/browser/ui/webui/chromeos/emulator/device_emulator_message_handler.cc
@@ -411,8 +411,8 @@ void DeviceEmulatorMessageHandler::UpdateTimeToFull(
void DeviceEmulatorMessageHandler::UpdatePowerSources(
const base::ListValue* args) {
- const base::ListValue* sources;
- CHECK(args->GetList(0, &sources));
+ const base::ListValue* sources =
+ static_cast<const base::ListValue*>(&args->base::Value::GetList()[0]);
power_manager::PowerSupplyProperties props =
fake_power_manager_client_->props();

Powered by Google App Engine
This is Rietveld 408576698