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

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

Issue 131483010: Android: Disallow iframes from requesting to auto-log-in. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Even more updating of the commit messagings. Created 6 years, 2 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 88e6de79f0757ac77a035ba15220b4a71864d52d..cf5e5d6dfc8cc6e1c299b8b52090aa1e2063b596 100644
--- a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc
+++ b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc
@@ -642,8 +642,10 @@ void ChromeResourceDispatcherHostDelegate::OnResponseStarted(
// See if the response contains the X-Auto-Login header. If so, this was
// a request for a login page, and the server is allowing the browser to
// suggest auto-login, if available.
- AutoLoginPrompter::ShowInfoBarIfPossible(request, info->GetChildID(),
- info->GetRouteID());
+ if (info->IsMainFrame()) {
+ AutoLoginPrompter::ShowInfoBarIfPossible(request, info->GetChildID(),
+ info->GetRouteID());
+ }
#endif
ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context);
« 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