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

Unified Diff: content/browser/frame_host/render_frame_host_impl.cc

Issue 1286063002: Add a path for content/ to open and control a Bluetooth chooser dialog. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@lkcr
Patch Set: Clean up. Created 5 years, 4 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/browser/frame_host/render_frame_host_impl.cc
diff --git a/content/browser/frame_host/render_frame_host_impl.cc b/content/browser/frame_host/render_frame_host_impl.cc
index a25fc594cd3861f74bc23bc863bab09ffe8255a5..f2a8b2e4dc04da78dfa527669cce84bbb811f980 100644
--- a/content/browser/frame_host/render_frame_host_impl.cc
+++ b/content/browser/frame_host/render_frame_host_impl.cc
@@ -1934,6 +1934,16 @@ RenderFrameHostImpl::GetMojoImageDownloader() {
return mojo_image_downloader_;
}
+scoped_ptr<BluetoothChooser> RenderFrameHostImpl::RunBluetoothChooser(
+ BluetoothChooser::Observer* observer,
+ int chooser_id,
+ const GURL& origin) {
+ if (delegate_) {
ortuno 2015/08/17 21:12:59 Why do you have to check if the delegate is there?
Jeffrey Yasskin 2015/08/17 23:38:16 Looking at other uses of delegate_, I don't. Thank
+ return delegate_->RunBluetoothChooser(observer, chooser_id, origin);
+ }
+ return nullptr;
+}
+
bool RenderFrameHostImpl::IsSameSiteInstance(
RenderFrameHostImpl* other_render_frame_host) {
// As a sanity check, make sure the frame belongs to the same BrowserContext.

Powered by Google App Engine
This is Rietveld 408576698