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

Unified Diff: content/shell/browser/blink_test_controller.cc

Issue 1351393002: Make getBluetoothManualChooserEvents() asynchronous. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Go back to the callback interface. Created 5 years, 3 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
« no previous file with comments | « content/shell/browser/blink_test_controller.h ('k') | content/shell/common/shell_messages.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/shell/browser/blink_test_controller.cc
diff --git a/content/shell/browser/blink_test_controller.cc b/content/shell/browser/blink_test_controller.cc
index 97c533737119c48cf36c4851488f14c05fc2a0e0..eb15b2d986733cd20868c79ce8a9010335a667e8 100644
--- a/content/shell/browser/blink_test_controller.cc
+++ b/content/shell/browser/blink_test_controller.cc
@@ -727,15 +727,16 @@ void BlinkTestController::OnSetBluetoothManualChooser(bool enable) {
}
}
-void BlinkTestController::OnGetBluetoothManualChooserEvents(
- std::vector<std::string>* events) {
+void BlinkTestController::OnGetBluetoothManualChooserEvents() {
if (!bluetooth_chooser_factory_) {
printer_->AddErrorMessage(
"FAIL: Must call setBluetoothManualChooser before "
"getBluetoothManualChooserEvents.");
return;
}
- *events = bluetooth_chooser_factory_->GetAndResetEvents();
+ Send(new ShellViewMsg_ReplyBluetoothManualChooserEvents(
+ main_window_->web_contents()->GetRoutingID(),
+ bluetooth_chooser_factory_->GetAndResetEvents()));
}
void BlinkTestController::OnSendBluetoothManualChooserEvent(
« no previous file with comments | « content/shell/browser/blink_test_controller.h ('k') | content/shell/common/shell_messages.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698