diff options
author | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-28 20:12:27 +0000 |
---|---|---|
committer | eroman@chromium.org <eroman@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2010-04-28 20:12:27 +0000 |
commit | 5a1d7ca44e2d11095828ec35d63fc87bd2c3dbef (patch) | |
tree | 2f8ce83b395dee893febd751f95ee4b85422c6b2 /net/proxy/init_proxy_resolver.cc | |
parent | 3f4a48393754bd0bb8dcf6bb73241154a695dae3 (diff) | |
download | chromium_src-5a1d7ca44e2d11095828ec35d63fc87bd2c3dbef.zip chromium_src-5a1d7ca44e2d11095828ec35d63fc87bd2c3dbef.tar.gz chromium_src-5a1d7ca44e2d11095828ec35d63fc87bd2c3dbef.tar.bz2 |
Cleanup: Remove the implicit constructor for BoundNetLog that allowed passing NULL in place of a const BoundNetLog&.
BUG=37421
Review URL: http://codereview.chromium.org/1783008
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@45851 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'net/proxy/init_proxy_resolver.cc')
-rw-r--r-- | net/proxy/init_proxy_resolver.cc | 13 |
1 files changed, 6 insertions, 7 deletions
diff --git a/net/proxy/init_proxy_resolver.cc b/net/proxy/init_proxy_resolver.cc index 2c27dcb..ea1e475 100644 --- a/net/proxy/init_proxy_resolver.cc +++ b/net/proxy/init_proxy_resolver.cc @@ -17,14 +17,17 @@ namespace net { InitProxyResolver::InitProxyResolver(ProxyResolver* resolver, - ProxyScriptFetcher* proxy_script_fetcher) + ProxyScriptFetcher* proxy_script_fetcher, + NetLog* net_log) : resolver_(resolver), proxy_script_fetcher_(proxy_script_fetcher), ALLOW_THIS_IN_INITIALIZER_LIST(io_callback_( this, &InitProxyResolver::OnIOCompletion)), user_callback_(NULL), current_pac_url_index_(0u), - next_state_(STATE_NONE) { + next_state_(STATE_NONE), + net_log_(BoundNetLog::Make( + net_log, NetLog::SOURCE_INIT_PROXY_RESOLVER)) { } InitProxyResolver::~InitProxyResolver() { @@ -33,14 +36,10 @@ InitProxyResolver::~InitProxyResolver() { } int InitProxyResolver::Init(const ProxyConfig& config, - CompletionCallback* callback, - const BoundNetLog& net_log) { + CompletionCallback* callback) { DCHECK_EQ(STATE_NONE, next_state_); DCHECK(callback); DCHECK(config.MayRequirePACResolver()); - DCHECK(!net_log_.net_log()); - - net_log_ = net_log; net_log_.BeginEvent(NetLog::TYPE_INIT_PROXY_RESOLVER, NULL); |