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

Unified Diff: chrome/browser/ui/tab_helpers.cc

Issue 1161233005: Implement app banner info bars on desktop. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@stop-icon-overgeneration
Patch Set: Addressing compile issue in tests due to new abstract class Created 5 years, 7 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
« no previous file with comments | « chrome/browser/extensions/bookmark_app_helper.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/tab_helpers.cc
diff --git a/chrome/browser/ui/tab_helpers.cc b/chrome/browser/ui/tab_helpers.cc
index 495f01074f744e324faa8eeadd23e8530b616aad..edc3cf7d6e31f1caf4cc0188e37d3ee5733e481e 100644
--- a/chrome/browser/ui/tab_helpers.cc
+++ b/chrome/browser/ui/tab_helpers.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/ui/tab_helpers.h"
#include "base/command_line.h"
+#include "chrome/browser/banners/app_banner_manager_desktop.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/content_settings/chrome_content_settings_client.h"
#include "chrome/browser/content_settings/tab_specific_content_settings.h"
@@ -201,6 +202,13 @@ void TabHelpers::AttachTabHelpers(WebContents* web_contents) {
MetroPinTabHelper::CreateForWebContents(web_contents);
#endif
+#if !defined(OS_ANDROID)
+ if (base::CommandLine::ForCurrentProcess()->HasSwitch(
+ switches::kEnableAddToShelf)) {
+ banners::AppBannerManagerDesktop::CreateForWebContents(web_contents);
+ }
+#endif
Avi (use Gerrit) 2015/06/03 15:12:43 This is really for not-android? Put this is the ex
+
// --- Feature tab helpers behind flags ---
#if defined(ENABLE_CAPTIVE_PORTAL_DETECTION)
« no previous file with comments | « chrome/browser/extensions/bookmark_app_helper.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698