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

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

Issue 2658473002: Refactor BluetoothAllowedDevicesMap (Closed)
Patch Set: updated test code Created 3 years, 11 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/shell.cc
diff --git a/content/shell/browser/shell.cc b/content/shell/browser/shell.cc
index f25b9031a76ae83d48376a88c97361fd43013c85..b8ee591115aa99ccbbebba2213c79bdba9a16788 100644
--- a/content/shell/browser/shell.cc
+++ b/content/shell/browser/shell.cc
@@ -461,6 +461,15 @@ std::unique_ptr<BluetoothChooser> Shell::RunBluetoothChooser(
return nullptr;
}
+BluetoothAllowedDevicesMapBase* Shell::GetBluetoothDevicesMap(
+ RenderFrameHost* frame) {
+ if (switches::IsRunLayoutTestSwitchPresent()) {
+ return BlinkTestController::Get()->GetBluetoothAllowedDevicesMap(
+ web_contents()->GetBrowserContext());
+ }
+ return nullptr;
+}
+
bool Shell::DidAddMessageToConsole(WebContents* source,
int32_t level,
const base::string16& message,

Powered by Google App Engine
This is Rietveld 408576698