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

Unified Diff: chrome/browser/signin/signin_header_helper.cc

Issue 481053003: Honor x-chrome header on non web triggerable transitions (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 4 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/signin/signin_header_helper.cc
diff --git a/chrome/browser/signin/signin_header_helper.cc b/chrome/browser/signin/signin_header_helper.cc
index 469b91ad274a3d2c828b4adff68fd607b49c81a6..dd8437549d5890fa0dabb8c4c8fb53d5db9d9c0f 100644
--- a/chrome/browser/signin/signin_header_helper.cc
+++ b/chrome/browser/signin/signin_header_helper.cc
@@ -256,7 +256,9 @@ void ProcessMirrorResponseHeaderIfExists(
const content::ResourceRequestInfo* info =
content::ResourceRequestInfo::ForRequest(request);
- if (!(info && info->IsMainFrame() && info->HasUserGesture()))
+ if (!(info && info->IsMainFrame() &&
+ (info->HasUserGesture() ||
+ !content::PageTransitionIsWebTriggerable(info->GetPageTransition()))))
return;
std::string header_value;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698