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

Side by Side Diff: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc

Issue 9791053: Revert 129359 - [Sync] [Mac] Tweak OneClickSigninDialog nib (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/app/nibs/OneClickSigninDialog.xib ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate. h" 5 #include "chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate. h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/browser_process.h" 8 #include "chrome/browser/browser_process.h"
9 #include "chrome/browser/content_settings/host_content_settings_map.h" 9 #include "chrome/browser/content_settings/host_content_settings_map.h"
10 #include "chrome/browser/download/download_request_limiter.h" 10 #include "chrome/browser/download/download_request_limiter.h"
(...skipping 326 matching lines...) Expand 10 before | Expand all | Expand 10 after
337 } 337 }
338 338
339 void ChromeResourceDispatcherHostDelegate::OnRequestRedirected( 339 void ChromeResourceDispatcherHostDelegate::OnRequestRedirected(
340 net::URLRequest* request, 340 net::URLRequest* request,
341 content::ResourceResponse* response) { 341 content::ResourceResponse* response) {
342 LoadTimingObserver::PopulateTimingInfo(request, response); 342 LoadTimingObserver::PopulateTimingInfo(request, response);
343 343
344 #if defined(ENABLE_ONE_CLICK_SIGNIN) 344 #if defined(ENABLE_ONE_CLICK_SIGNIN)
345 const ResourceRequestInfo* info = ResourceRequestInfo::ForRequest(request); 345 const ResourceRequestInfo* info = ResourceRequestInfo::ForRequest(request);
346 346
347 // See if the response contains the X-Google-Accounts-SignIn header. If so, 347 // See if the response contains the Google-Accounts-SignIn header. If so,
348 // then the user has just finished signing in, and the server is allowing the 348 // then the user has just finished signing in, and the server is allowing the
349 // browser to suggest connecting the user's profile to the account. 349 // browser to suggest connecting the user's profile to the account.
350 OneClickSigninHelper::ShowInfoBarIfPossible(request, info->GetChildID(), 350 OneClickSigninHelper::ShowInfoBarIfPossible(request, info->GetChildID(),
351 info->GetRouteID()); 351 info->GetRouteID());
352 #endif 352 #endif
353 } 353 }
OLDNEW
« no previous file with comments | « chrome/app/nibs/OneClickSigninDialog.xib ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698