Index: content/shell/browser/layout_test/layout_test_browser_context.cc |
diff --git a/content/shell/browser/layout_test/layout_test_browser_context.cc b/content/shell/browser/layout_test/layout_test_browser_context.cc |
index 944330ac35c736056c0cf26e2700ae1e3ca94f65..2e6c8ff9831e1c1b3152f232476463d31de09c26 100644 |
--- a/content/shell/browser/layout_test/layout_test_browser_context.cc |
+++ b/content/shell/browser/layout_test/layout_test_browser_context.cc |
@@ -11,6 +11,7 @@ |
#include "content/public/browser/browser_thread.h" |
#include "content/public/browser/push_messaging_service.h" |
#include "content/public/browser/resource_context.h" |
+#include "content/shell/browser/layout_test/layout_test_bluetooth_adapter_provider.h" |
#include "content/shell/browser/layout_test/layout_test_download_manager_delegate.h" |
#include "content/shell/browser/layout_test/layout_test_permission_manager.h" |
#include "content/shell/browser/layout_test/layout_test_push_messaging_service.h" |
@@ -67,7 +68,9 @@ void LayoutTestBrowserContext::GetBluetoothAdapterForTesting( |
const base::Callback<void(scoped_refptr<device::BluetoothAdapter> adapter)>& |
callback, |
const std::string& adapter) { |
- // TODO(ortuno): Get mock data. |
+ if (!bluetooth_adapter_provider_) |
+ bluetooth_adapter_provider_.reset(new LayoutTestBluetoothAdapterProvider()); |
+ bluetooth_adapter_provider_->GetBluetoothAdapter(callback, adapter); |
} |
PushMessagingService* LayoutTestBrowserContext::GetPushMessagingService() { |