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

Unified Diff: chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc

Issue 2918403009: [Dice] Parse the Dice response header (Closed)
Patch Set: Remove logout url Created 3 years, 6 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 | chrome/browser/signin/chrome_signin_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
diff --git a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
index 5258d872d28bf31a91301a07f2f626c1dea94334..42a55686530ea616bf5ac59b44073cc8f78caced 100644
--- a/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
+++ b/chrome/browser/loader/chrome_resource_dispatcher_host_delegate.cc
@@ -799,12 +799,8 @@ void ChromeResourceDispatcherHostDelegate::OnResponseStarted(
const ResourceRequestInfo* info = ResourceRequestInfo::ForRequest(request);
ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context);
- // See if the response contains the X-Chrome-Manage-Accounts header. If so
- // show the profile avatar bubble so that user can complete signin/out action
- // the native UI.
- signin::ProcessMirrorResponseHeaderIfExists(request, io_data,
- info->GetChildID(),
- info->GetRouteID());
+ signin::ProcessAccountConsistencyResponseHeaders(
+ request, GURL(), io_data, info->GetChildID(), info->GetRouteID());
// Built-in additional protection for the chrome web store origin.
#if BUILDFLAG(ENABLE_EXTENSIONS)
@@ -849,6 +845,8 @@ void ChromeResourceDispatcherHostDelegate::OnRequestRedirected(
// native profile management UI is built on top of it.
signin::FixAccountConsistencyRequestHeader(
request, redirect_url, io_data, info->GetChildID(), info->GetRouteID());
+ signin::ProcessAccountConsistencyResponseHeaders(
+ request, redirect_url, io_data, info->GetChildID(), info->GetRouteID());
if (io_data->loading_predictor_observer()) {
io_data->loading_predictor_observer()->OnRequestRedirected(
« no previous file with comments | « no previous file | chrome/browser/signin/chrome_signin_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698