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

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

Issue 10732002: Upstream rewrite of Instant. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge test Created 8 years, 5 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
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 21375335366c7f380a4e378bb8fdbc4a98afa155..be2287add4a0cad26024f031a7996113540df2cf 100644
--- a/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc
+++ b/chrome/browser/renderer_host/chrome_resource_dispatcher_host_delegate.cc
@@ -234,17 +234,6 @@ bool ChromeResourceDispatcherHostDelegate::AcceptAuthRequest(
ResourceDispatcherHostLoginDelegate*
ChromeResourceDispatcherHostDelegate::CreateLoginDelegate(
net::AuthChallengeInfo* auth_info, net::URLRequest* request) {
- std::string instant_header_value;
- // For instant, return a NULL delegate. Auth navigations don't commit the load
- // (the load remains pending) until the user cancels or succeeds in
- // authorizing. Since we don't allow merging of WebContents with pending loads
- // we disallow auth dialogs from showing during instant. Returning NULL does
- // that.
- // TODO: see if we can handle this case more robustly.
- if (request->extra_request_headers().GetHeader(
- InstantLoader::kInstantHeader, &instant_header_value) &&
- instant_header_value == InstantLoader::kInstantHeaderValue)
- return NULL;
return CreateLoginPrompt(auth_info, request);
}

Powered by Google App Engine
This is Rietveld 408576698