Index: chrome/browser/ui/browser_tab_contents.cc |
diff --git a/chrome/browser/ui/browser_tab_contents.cc b/chrome/browser/ui/browser_tab_contents.cc |
index ef5079e73fba83a894bf4ac6f9ed0c3e47749c83..dfd6f5475a070fc6754a40105089e9f4e1458de8 100644 |
--- a/chrome/browser/ui/browser_tab_contents.cc |
+++ b/chrome/browser/ui/browser_tab_contents.cc |
@@ -47,6 +47,7 @@ |
#include "chrome/browser/ui/search_engines/search_engine_tab_helper.h" |
#include "chrome/browser/ui/sync/tab_contents_synced_tab_delegate.h" |
#include "chrome/browser/ui/tab_contents/core_tab_helper.h" |
+#include "chrome/browser/ui/web_applications/hosted_app_tab_helper.h" |
#include "chrome/browser/ui/zoom/zoom_controller.h" |
#include "chrome/common/chrome_switches.h" |
#include "components/autofill/content/browser/autofill_driver_impl.h" |
@@ -204,4 +205,8 @@ void BrowserTabContents::AttachTabHelpers(WebContents* web_contents) { |
#if defined(OS_WIN) |
MetroPinTabHelper::CreateForWebContents(web_contents); |
#endif |
+ |
+ if (CommandLine::ForCurrentProcess()->HasSwitch( |
+ switches::kEnableStreamlinedHostedApps)) |
+ HostedAppTabHelper::CreateForWebContents(web_contents); |
} |