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

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

Issue 10827404: The password manager infobar is suppressed when the one-click infobar is (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698