| Index: chrome/browser/ui/browser.cc
|
| diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
|
| index 45656f345dc8030980bdb59c85a72aae68c8e96d..14c0d15d08b721469063671125108fa56ec9c892 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"
|
| @@ -1446,6 +1447,17 @@ scoped_ptr<content::BluetoothChooser> Browser::RunBluetoothChooser(
|
| return std::move(bluetooth_chooser_desktop);
|
| }
|
|
|
| +bool Browser::RequestAppBanner(content::WebContents* web_contents) {
|
| + banners::AppBannerManagerDesktop* manager =
|
| + banners::AppBannerManagerDesktop::FromWebContents(web_contents);
|
| + if (manager) {
|
| + manager->RequestAppBanner(web_contents->GetMainFrame(),
|
| + web_contents->GetLastCommittedURL(), true);
|
| + return true;
|
| + }
|
| + return false;
|
| +}
|
| +
|
| bool Browser::IsMouseLocked() const {
|
| return exclusive_access_manager_->mouse_lock_controller()->IsMouseLocked();
|
| }
|
|
|