Index: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc |
=================================================================== |
--- chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (revision 123466) |
+++ chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc (working copy) |
@@ -22,6 +22,7 @@ |
#include "chrome/browser/renderer_host/safe_browsing_resource_throttle.h" |
#include "chrome/browser/renderer_host/transfer_navigation_resource_throttle.h" |
#include "chrome/browser/safe_browsing/safe_browsing_service.h" |
+#include "chrome/browser/signin/one_click_signin.h" |
#include "chrome/browser/ui/auto_login_prompter.h" |
#include "chrome/browser/ui/login/login_prompt.h" |
#include "chrome/common/chrome_notification_types.h" |
@@ -329,4 +330,15 @@ |
net::URLRequest* request, |
content::ResourceResponse* response) { |
LoadTimingObserver::PopulateTimingInfo(request, response); |
+ |
+#if !defined(OS_CHROMEOS) |
+ ResourceDispatcherHostRequestInfo* info = |
+ resource_dispatcher_host_->InfoForRequest(request); |
+ |
+ // See if the response contains the X-Google-Accounts-SignIn header. If so, |
+ // then the user has just finished signing in, and the server is allowing the |
+ // browser to suggest connecting the user's profile to the account. |
+ OneClickSigninManager::ShowInfoBarIfPossible(request, info->child_id(), |
+ info->route_id()); |
+#endif |
} |