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

Side by Side Diff: chrome/browser/io_thread.cc

Issue 18261003: Cleaning up TODO(joi) entries in //net. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Merge LKGR. Created 7 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « no previous file | net/base/backoff_entry.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/browser/io_thread.h" 5 #include "chrome/browser/io_thread.h"
6 6
7 #include <vector> 7 #include <vector>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
(...skipping 571 matching lines...) Expand 10 before | Expand all | Expand 10 after
582 job_factory->SetProtocolHandler( 582 job_factory->SetProtocolHandler(
583 chrome::kFtpScheme, 583 chrome::kFtpScheme,
584 new net::FtpProtocolHandler( 584 new net::FtpProtocolHandler(
585 globals_->proxy_script_fetcher_ftp_transaction_factory.get())); 585 globals_->proxy_script_fetcher_ftp_transaction_factory.get()));
586 #endif 586 #endif
587 globals_->proxy_script_fetcher_url_request_job_factory = 587 globals_->proxy_script_fetcher_url_request_job_factory =
588 job_factory.PassAs<net::URLRequestJobFactory>(); 588 job_factory.PassAs<net::URLRequestJobFactory>();
589 589
590 globals_->throttler_manager.reset(new net::URLRequestThrottlerManager()); 590 globals_->throttler_manager.reset(new net::URLRequestThrottlerManager());
591 globals_->throttler_manager->set_net_log(net_log_); 591 globals_->throttler_manager->set_net_log(net_log_);
592 // Always done in production, disabled only for unit tests.
593 globals_->throttler_manager->set_enable_thread_checks(true);
594 592
595 globals_->proxy_script_fetcher_context.reset( 593 globals_->proxy_script_fetcher_context.reset(
596 ConstructProxyScriptFetcherContext(globals_, net_log_)); 594 ConstructProxyScriptFetcherContext(globals_, net_log_));
597 595
598 globals_->network_time_notifier.reset( 596 globals_->network_time_notifier.reset(
599 new net::NetworkTimeNotifier( 597 new net::NetworkTimeNotifier(
600 scoped_ptr<base::TickClock>(new base::DefaultTickClock()))); 598 scoped_ptr<base::TickClock>(new base::DefaultTickClock())));
601 599
602 sdch_manager_ = new net::SdchManager(); 600 sdch_manager_ = new net::SdchManager();
603 601
(...skipping 362 matching lines...) Expand 10 before | Expand all | Expand 10 after
966 if (command_line.HasSwitch(switches::kDisableQuic)) 964 if (command_line.HasSwitch(switches::kDisableQuic))
967 return false; 965 return false;
968 966
969 if (command_line.HasSwitch(switches::kEnableQuic) || 967 if (command_line.HasSwitch(switches::kEnableQuic) ||
970 command_line.HasSwitch(switches::kEnableQuicHttps)) { 968 command_line.HasSwitch(switches::kEnableQuicHttps)) {
971 return true; 969 return true;
972 } 970 }
973 971
974 return quic_trial_group == kQuicFieldTrialEnabledGroupName; 972 return quic_trial_group == kQuicFieldTrialEnabledGroupName;
975 } 973 }
OLDNEW
« no previous file with comments | « no previous file | net/base/backoff_entry.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698