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 8fe2144903addceadacb82ecb75e1f0e50c618ce..819a3811e22463e099d0b0af08b6adf50e807980 100644 |
--- a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc |
+++ b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc |
@@ -33,7 +33,6 @@ |
#include "chrome/browser/safe_browsing/safe_browsing_service.h" |
#include "chrome/browser/signin/signin_header_helper.h" |
#include "chrome/browser/tab_contents/tab_util.h" |
-#include "chrome/browser/ui/auto_login_prompter.h" |
#include "chrome/browser/ui/login/login_prompt.h" |
#include "chrome/browser/ui/sync/one_click_signin_helper.h" |
#include "chrome/common/extensions/extension_constants.h" |
@@ -75,6 +74,7 @@ |
#if defined(OS_ANDROID) |
#include "chrome/browser/android/intercept_download_resource_throttle.h" |
+#include "chrome/browser/ui/android/infobars/auto_login_prompter.h" |
#include "components/navigation_interception/intercept_navigation_delegate.h" |
#else |
#include "chrome/browser/apps/app_url_redirector.h" |
@@ -600,11 +600,13 @@ void ChromeResourceDispatcherHostDelegate::OnResponseStarted( |
IPC::Sender* sender) { |
const ResourceRequestInfo* info = ResourceRequestInfo::ForRequest(request); |
+#if defined(OS_ANDROID) |
// 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()); |
+#endif |
ProfileIOData* io_data = ProfileIOData::FromResourceContext(resource_context); |