Fix the filtering logic for x-chrome-manage-account header
commit564d209d5733494ca2847eef75161151e1dd0f24
authorguohui <guohui@chromium.org>
Tue, 7 Oct 2014 04:48:22 +0000 (6 21:48 -0700)
committerCommit bot <commit-bot@chromium.org>
Tue, 7 Oct 2014 04:48:34 +0000 (7 04:48 +0000)
tree3a74071ba8b8c42d3291f1194f2c300ab621bfe7
parent1380896e8bc66a10affadd698d41d46c1172e723
Fix the filtering logic for x-chrome-manage-account header

The current code checks if the request is loaded in a main frame and if it
is triggered by a user gesture. As per discussion with eisinger@ there is
no reliable way to associate a request with a user gesture, instead
we should check if the requested resource type is a main frame resource.

BUG=394869

Review URL: https://codereview.chromium.org/632803002

Cr-Commit-Position: refs/heads/master@{#298372}
chrome/browser/signin/signin_header_helper.cc