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

Side by Side Diff: ios/chrome/browser/ios_chrome_io_thread.cc

Issue 1662843002: Revert of Delete base/prefs and update callers to use components. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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
« no previous file with comments | « ios/chrome/browser/ios_chrome_io_thread.h ('k') | ios/chrome/browser/ios_chrome_main_parts.mm » ('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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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 "ios/chrome/browser/ios_chrome_io_thread.h" 5 #include "ios/chrome/browser/ios_chrome_io_thread.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/bind_helpers.h" 13 #include "base/bind_helpers.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/compiler_specific.h" 15 #include "base/compiler_specific.h"
16 #include "base/debug/leak_tracker.h" 16 #include "base/debug/leak_tracker.h"
17 #include "base/environment.h" 17 #include "base/environment.h"
18 #include "base/logging.h" 18 #include "base/logging.h"
19 #include "base/macros.h" 19 #include "base/macros.h"
20 #include "base/metrics/field_trial.h" 20 #include "base/metrics/field_trial.h"
21 #include "base/prefs/pref_service.h"
21 #include "base/stl_util.h" 22 #include "base/stl_util.h"
22 #include "base/strings/string_number_conversions.h" 23 #include "base/strings/string_number_conversions.h"
23 #include "base/strings/string_piece.h" 24 #include "base/strings/string_piece.h"
24 #include "base/strings/string_split.h" 25 #include "base/strings/string_split.h"
25 #include "base/strings/string_util.h" 26 #include "base/strings/string_util.h"
26 #include "base/threading/sequenced_worker_pool.h" 27 #include "base/threading/sequenced_worker_pool.h"
27 #include "base/threading/thread.h" 28 #include "base/threading/thread.h"
28 #include "base/threading/worker_pool.h" 29 #include "base/threading/worker_pool.h"
29 #include "base/time/time.h" 30 #include "base/time/time.h"
30 #include "base/trace_event/trace_event.h" 31 #include "base/trace_event/trace_event.h"
31 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h" 32 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h"
32 #include "components/net_log/chrome_net_log.h" 33 #include "components/net_log/chrome_net_log.h"
33 #include "components/prefs/pref_service.h"
34 #include "components/proxy_config/pref_proxy_config_tracker.h" 34 #include "components/proxy_config/pref_proxy_config_tracker.h"
35 #include "components/variations/variations_associated_data.h" 35 #include "components/variations/variations_associated_data.h"
36 #include "components/version_info/version_info.h" 36 #include "components/version_info/version_info.h"
37 #include "ios/chrome/browser/chrome_switches.h" 37 #include "ios/chrome/browser/chrome_switches.h"
38 #include "ios/chrome/browser/net/cookie_util.h" 38 #include "ios/chrome/browser/net/cookie_util.h"
39 #include "ios/chrome/browser/net/ios_chrome_network_delegate.h" 39 #include "ios/chrome/browser/net/ios_chrome_network_delegate.h"
40 #include "ios/chrome/browser/net/proxy_service_factory.h" 40 #include "ios/chrome/browser/net/proxy_service_factory.h"
41 #include "ios/chrome/common/channel_info.h" 41 #include "ios/chrome/common/channel_info.h"
42 #include "ios/web/public/user_agent.h" 42 #include "ios/web/public/user_agent.h"
43 #include "ios/web/public/web_client.h" 43 #include "ios/web/public/web_client.h"
(...skipping 1002 matching lines...) Expand 10 before | Expand all | Expand 10 after
1046 1046
1047 globals->system_http_network_session.reset( 1047 globals->system_http_network_session.reset(
1048 new net::HttpNetworkSession(system_params)); 1048 new net::HttpNetworkSession(system_params));
1049 globals->system_http_transaction_factory.reset( 1049 globals->system_http_transaction_factory.reset(
1050 new net::HttpNetworkLayer(globals->system_http_network_session.get())); 1050 new net::HttpNetworkLayer(globals->system_http_network_session.get()));
1051 context->set_http_transaction_factory( 1051 context->set_http_transaction_factory(
1052 globals->system_http_transaction_factory.get()); 1052 globals->system_http_transaction_factory.get());
1053 1053
1054 return context; 1054 return context;
1055 } 1055 }
OLDNEW
« no previous file with comments | « ios/chrome/browser/ios_chrome_io_thread.h ('k') | ios/chrome/browser/ios_chrome_main_parts.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698