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

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

Issue 23847004: "Redirecting URLs to Packaged Apps" implementation: revised (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixed an editing error Created 7 years, 3 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
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 6697a950bbbd016f379fee858b43054ce9fb502c..c943dc55397d6285a6ab78615e77a30cc1d6392d 100644
--- a/chrome/browser/ui/browser_tab_contents.cc
+++ b/chrome/browser/ui/browser_tab_contents.cc
@@ -4,7 +4,7 @@
#include "chrome/browser/ui/browser_tab_contents.h"
-#include "base/command_line.h"
+#include "chrome/browser/apps/app_url_redirector.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/content_settings/tab_specific_content_settings.h"
#include "chrome/browser/extensions/api/web_navigation/web_navigation_api.h"
@@ -112,6 +112,12 @@ void BrowserTabContents::AttachTabHelpers(WebContents* web_contents) {
// helpers may rely on that.
SessionTabHelper::CreateForWebContents(web_contents);
+ // We don't want to ever send visited URLs to apps in incognito.
+ // Technically, apps are not supported in incognito, but explicitly check
+ // for that. See b/240879, which tracks incognito support for v2 apps.
benwells 2013/09/04 23:54:20 Nit: crbug.com/ instead of b/. b/ is a different,
sergeygs 2013/09/05 09:19:03 Done.
+ if (!profile->IsOffTheRecord())
+ AppUrlRedirector::CreateForWebContents(web_contents);
+
AlternateErrorPageTabObserver::CreateForWebContents(web_contents);
TabAutofillManagerDelegate::CreateForWebContents(web_contents);
AutofillDriverImpl::CreateForWebContentsAndDelegate(

Powered by Google App Engine
This is Rietveld 408576698