| OLD | NEW |
| 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 Loading... |
| 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 } |
| OLD | NEW |