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

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

Issue 2664753002: Remove base::StringValue (Closed)
Patch Set: Rebase Created 3 years, 9 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 b356b01c26a25e273e003c953f85a9c32a67fed5..2b9c755ff39c4c035deec79f69b78581e6fdc864 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
@@ -123,8 +123,7 @@ void DeviceEmulatorMessageHandler::BluetoothObserver::DevicePropertyChanged(
const std::string& property_name) {
if (property_name == kPairedPropertyName) {
owner_->web_ui()->CallJavascriptFunctionUnsafe(
- kDevicePairedFromTrayJSCallback,
- base::StringValue(object_path.value()));
+ kDevicePairedFromTrayJSCallback, base::Value(object_path.value()));
}
}
@@ -132,7 +131,7 @@ void DeviceEmulatorMessageHandler::BluetoothObserver::DeviceRemoved(
const dbus::ObjectPath& object_path) {
owner_->web_ui()->CallJavascriptFunctionUnsafe(
kDeviceRemovedFromMainAdapterJSCallback,
- base::StringValue(object_path.value()));
+ base::Value(object_path.value()));
}
class DeviceEmulatorMessageHandler::CrasAudioObserver
@@ -292,7 +291,7 @@ void DeviceEmulatorMessageHandler::HandleRequestBluetoothPair(
props->address.value());
if (!props->paired.value()) {
web_ui()->CallJavascriptFunctionUnsafe(kPairFailedJSCallback,
- base::StringValue(path));
+ base::Value(path));
}
}

Powered by Google App Engine
This is Rietveld 408576698