Index: content/browser/devtools/protocol/page_handler.cc |
diff --git a/content/browser/devtools/protocol/page_handler.cc b/content/browser/devtools/protocol/page_handler.cc |
index 7e79a7200cf851c936c9d6f9b077337cb5b6faf3..e717572cbf14b1c9deca3ae15d49065ff39f54e8 100644 |
--- a/content/browser/devtools/protocol/page_handler.cc |
+++ b/content/browser/devtools/protocol/page_handler.cc |
@@ -357,6 +357,14 @@ Response PageHandler::SetColorPickerEnabled(bool enabled) { |
return Response::OK(); |
} |
+Response PageHandler::RequestAppBanner(bool* result) { |
+ WebContentsImpl* web_contents = GetWebContents(); |
+ if (!web_contents) |
+ return Response::InternalError("Could not connect to view"); |
+ *result = web_contents->GetDelegate()->RequestAppBanner(web_contents); |
+ return Response::OK(); |
+} |
+ |
WebContentsImpl* PageHandler::GetWebContents() { |
return host_ ? |
static_cast<WebContentsImpl*>(WebContents::FromRenderFrameHost(host_)) : |