Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 717381dfc44ad34716308ce06f5a11385705195a..4fef9c19430696effebf56eaace8b3a12c6fb72a 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -36,6 +36,7 @@ |
#include "chrome/browser/background/background_contents.h" |
#include "chrome/browser/background/background_contents_service.h" |
#include "chrome/browser/background/background_contents_service_factory.h" |
+#include "chrome/browser/banners/app_banner_manager_desktop.h" |
#include "chrome/browser/browser_process.h" |
#include "chrome/browser/browser_shutdown.h" |
#include "chrome/browser/character_encoding.h" |
@@ -181,6 +182,7 @@ |
#include "content/public/browser/notification_details.h" |
#include "content/public/browser/notification_service.h" |
#include "content/public/browser/plugin_service.h" |
+#include "content/public/browser/render_frame_host.h" |
#include "content/public/browser/render_process_host.h" |
#include "content/public/browser/render_view_host.h" |
#include "content/public/browser/render_widget_host.h" |
@@ -1978,6 +1980,17 @@ bool Browser::CanSaveContents(content::WebContents* web_contents) const { |
return chrome::CanSavePage(this); |
} |
+bool Browser::RequestAppBanner(content::WebContents* web_contents) { |
+ content::RenderFrameHost* frame = web_contents->GetMainFrame(); |
+ banners::AppBannerManagerDesktop* manager = |
+ banners::AppBannerManagerDesktop::FromWebContents(web_contents); |
+ if (manager) { |
+ manager->RequestAppBanner(frame, frame->GetLastCommittedURL(), true); |
+ return true; |
dominickn
2016/01/18 23:20:41
Nit: like previously, call this as manager->Reques
horo
2016/01/19 01:45:43
Done.
|
+ } |
+ return false; |
+} |
+ |
/////////////////////////////////////////////////////////////////////////////// |
// Browser, SearchEngineTabHelperDelegate implementation: |