Chromium Code Reviews| Index: chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc |
| diff --git a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc |
| index e0bb4e5ee49d3e6e890a5274d27ee910a8138b86..b9252ed75298c18ec602c10076583a3e4c8265b8 100644 |
| --- a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc |
| +++ b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc |
| @@ -343,6 +343,14 @@ void ChromeResourceDispatcherHostDelegate::OnResponseStarted( |
| AutoLoginPrompter::ShowInfoBarIfPossible(request, info->GetChildID(), |
| info->GetRouteID()); |
| +#if defined(ENABLE_ONE_CLICK_SIGNIN) |
|
tim (not reviewing)
2012/08/17 19:43:14
How come we're still using an ifdef for this?
Als
Roger Tawa OOO till Jul 10th
2012/08/17 20:09:43
Not all platforms use one-click sign in, like andr
|
| + // See if the response contains the 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. |
| + OneClickSigninHelper::ShowInfoBarIfPossible(request, info->GetChildID(), |
| + info->GetRouteID()); |
| +#endif |
| + |
| ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context); |
| if (io_data->resource_prefetch_predictor_observer()) |
| io_data->resource_prefetch_predictor_observer()->OnResponseStarted(request); |