Index: chrome/browser/ui/browser.cc |
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc |
index 4a718e9e188a6b39c182540f530828cada489bd6..85489a6fbc3391f04633d8aea4508c1b78fcdc0f 100644 |
--- a/chrome/browser/ui/browser.cc |
+++ b/chrome/browser/ui/browser.cc |
@@ -182,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" |
@@ -1455,6 +1456,11 @@ bool Browser::RequestAppBanner(content::WebContents* web_contents) { |
web_contents->GetLastCommittedURL(), true); |
return true; |
} |
+ |
+ web_contents->GetMainFrame()->AddMessageToConsole( |
+ content::CONSOLE_MESSAGE_LEVEL_DEBUG, |
+ "App banners are currently disabled. Please check chrome://flags/#" + |
+ std::string(switches::kEnableAddToShelf)); |
return false; |
} |