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

Unified Diff: chrome/browser/signin/chrome_signin_helper.h

Issue 2258483002: X-Chrome-Connected is stripped when it should not be in headers. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed comments Created 4 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/signin/chrome_signin_helper.h
diff --git a/chrome/browser/signin/chrome_signin_helper.h b/chrome/browser/signin/chrome_signin_helper.h
index 76e7082aa1c3f42bb0713f011b0f65a32dba2169..104b04b068964814598252db51e44c7c6316842a 100644
--- a/chrome/browser/signin/chrome_signin_helper.h
+++ b/chrome/browser/signin/chrome_signin_helper.h
@@ -24,11 +24,13 @@ namespace signin {
// with the exception of requests from gaia webview. Must be called on IO
// thread.
// Returns true if the account management header was added to the request.
-bool AppendMirrorRequestHeaderHelper(net::URLRequest* request,
- const GURL& redirect_url,
- ProfileIOData* io_data,
- int child_id,
- int route_id);
+// Removes X-Chrome-Connected header if it is already in the headers and
+// it should not be there.
+void FixMirrorRequestHeaderHelper(net::URLRequest* request,
+ const GURL& redirect_url,
+ ProfileIOData* io_data,
+ int child_id,
+ int route_id);
// Looks for the X-Chrome-Manage-Accounts response header, and if found,
// tries to show the avatar bubble in the browser identified by the

Powered by Google App Engine
This is Rietveld 408576698