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

Unified Diff: content/shell/browser/layout_test/layout_test_message_filter.cc

Issue 1815483003: bluetooth: Create Mojo equivalent of SetBluetoothMockDataSet (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@bluetooth-mojo
Patch Set: MMerge with ToT Created 4 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: content/shell/browser/layout_test/layout_test_message_filter.cc
diff --git a/content/shell/browser/layout_test/layout_test_message_filter.cc b/content/shell/browser/layout_test/layout_test_message_filter.cc
index de8883b11b782784d0b55eac24e27e4714b2fe8d..21ae2c99edb2ca49a16c32a6e56fd99ddc522585 100644
--- a/content/shell/browser/layout_test/layout_test_message_filter.cc
+++ b/content/shell/browser/layout_test/layout_test_message_filter.cc
@@ -11,7 +11,6 @@
#include "content/public/browser/child_process_security_policy.h"
#include "content/public/browser/permission_type.h"
#include "content/public/test/layouttest_support.h"
-#include "content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h"
#include "content/shell/browser/layout_test/layout_test_browser_context.h"
#include "content/shell/browser/layout_test/layout_test_content_browser_client.h"
#include "content/shell/browser/layout_test/layout_test_notification_manager.h"
@@ -52,8 +51,7 @@ void LayoutTestMessageFilter::OverrideThreadForMessage(
if (message.type() == LayoutTestHostMsg_SimulateWebNotificationClick::ID ||
message.type() == LayoutTestHostMsg_SimulateWebNotificationClose::ID ||
message.type() == LayoutTestHostMsg_SetPermission::ID ||
- message.type() == LayoutTestHostMsg_ResetPermissions::ID ||
- message.type() == LayoutTestHostMsg_SetBluetoothAdapter::ID)
+ message.type() == LayoutTestHostMsg_ResetPermissions::ID)
*thread = BrowserThread::UI;
}
@@ -74,8 +72,6 @@ bool LayoutTestMessageFilter::OnMessageReceived(const IPC::Message& message) {
IPC_MESSAGE_HANDLER(LayoutTestHostMsg_DeleteAllCookies, OnDeleteAllCookies)
IPC_MESSAGE_HANDLER(LayoutTestHostMsg_SetPermission, OnSetPermission)
IPC_MESSAGE_HANDLER(LayoutTestHostMsg_ResetPermissions, OnResetPermissions)
- IPC_MESSAGE_HANDLER(LayoutTestHostMsg_SetBluetoothAdapter,
- OnSetBluetoothAdapter)
IPC_MESSAGE_UNHANDLED(handled = false)
IPC_END_MESSAGE_MAP()
@@ -180,11 +176,4 @@ void LayoutTestMessageFilter::OnResetPermissions() {
->ResetPermissions();
}
-void LayoutTestMessageFilter::OnSetBluetoothAdapter(const std::string& name) {
- DCHECK_CURRENTLY_ON(BrowserThread::UI);
- SetBluetoothAdapter(
- render_process_id_,
- LayoutTestBluetoothAdapterProvider::GetBluetoothAdapter(name));
-}
-
} // namespace content

Powered by Google App Engine
This is Rietveld 408576698