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

Unified Diff: content/shell/browser/shell_resource_dispatcher_host_delegate.cc

Issue 124113003: Remove calls of PrerenderTracker::TryCancel and TryCancelOnIOThread in ChromeResourceDispatcherHost… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: simplify Created 6 years, 11 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: content/shell/browser/shell_resource_dispatcher_host_delegate.cc
===================================================================
--- content/shell/browser/shell_resource_dispatcher_host_delegate.cc (revision 243099)
+++ content/shell/browser/shell_resource_dispatcher_host_delegate.cc (working copy)
@@ -16,17 +16,12 @@
ShellResourceDispatcherHostDelegate::~ShellResourceDispatcherHostDelegate() {
}
-bool ShellResourceDispatcherHostDelegate::AcceptAuthRequest(
- net::URLRequest* request,
- net::AuthChallengeInfo* auth_info) {
- bool accept_auth_request =
- !CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree);
- return accept_auth_request;
-}
-
ResourceDispatcherHostLoginDelegate*
ShellResourceDispatcherHostDelegate::CreateLoginDelegate(
net::AuthChallengeInfo* auth_info, net::URLRequest* request) {
+ if (CommandLine::ForCurrentProcess()->HasSwitch(switches::kDumpRenderTree))
+ return NULL;
+
if (!login_request_callback_.is_null()) {
login_request_callback_.Run();
login_request_callback_.Reset();

Powered by Google App Engine
This is Rietveld 408576698