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

Unified Diff: net/base/mock_host_resolver.cc

Issue 525079: Add autodetection of "intranet" redirection, for ISPs etc. that send typos an... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 10 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
« no previous file with comments | « net/base/mock_host_resolver.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: net/base/mock_host_resolver.cc
===================================================================
--- net/base/mock_host_resolver.cc (revision 35740)
+++ net/base/mock_host_resolver.cc (working copy)
@@ -1,4 +1,4 @@
-// Copyright (c) 2009 The Chromium Authors. All rights reserved.
+// Copyright (c) 2010 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
@@ -89,7 +89,7 @@
// Lastly add the provided interceptor to the front of the chain.
if (interceptor) {
- interceptor->set_previous_proc(proc);
+ interceptor->SetPreviousProc(proc);
proc = interceptor;
}
@@ -225,9 +225,8 @@
//-----------------------------------------------------------------------------
ScopedDefaultHostResolverProc::ScopedDefaultHostResolverProc(
- HostResolverProc* proc) : current_proc_(proc) {
- previous_proc_ = HostResolverProc::SetDefault(current_proc_);
- current_proc_->set_previous_proc(previous_proc_);
+ HostResolverProc* proc) {
+ Init(proc);
}
ScopedDefaultHostResolverProc::~ScopedDefaultHostResolverProc() {
@@ -239,7 +238,7 @@
void ScopedDefaultHostResolverProc::Init(HostResolverProc* proc) {
current_proc_ = proc;
previous_proc_ = HostResolverProc::SetDefault(current_proc_);
- current_proc_->set_previous_proc(previous_proc_);
+ current_proc_->SetLastProc(previous_proc_);
}
} // namespace net
« no previous file with comments | « net/base/mock_host_resolver.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698