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

Side by Side Diff: ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_proxy_io_data.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
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/data_reduction_proxy/ios_chrome_data_reduction_prox y_io_data.h" 5 #include "ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_prox y_io_data.h"
6 6
7 #include "base/prefs/pref_service.h"
7 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf ig_retrieval_params.h" 8 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf ig_retrieval_params.h"
8 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_expe riments_stats.h" 9 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_expe riments_stats.h"
9 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d ata.h" 10 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d ata.h"
10 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h" 11 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h"
11 #include "components/prefs/pref_service.h"
12 #include "ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_prox y_settings.h" 12 #include "ios/chrome/browser/data_reduction_proxy/ios_chrome_data_reduction_prox y_settings.h"
13 #include "ios/chrome/browser/pref_names.h" 13 #include "ios/chrome/browser/pref_names.h"
14 #include "ios/web/public/web_client.h" 14 #include "ios/web/public/web_client.h"
15 15
16 using data_reduction_proxy::DataReductionProxyParams; 16 using data_reduction_proxy::DataReductionProxyParams;
17 17
18 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData> 18 scoped_ptr<data_reduction_proxy::DataReductionProxyIOData>
19 CreateIOSChromeDataReductionProxyIOData( 19 CreateIOSChromeDataReductionProxyIOData(
20 net::NetLog* net_log, 20 net::NetLog* net_log,
21 PrefService* prefs, 21 PrefService* prefs,
(...skipping 18 matching lines...) Expand all
40 new data_reduction_proxy::DataReductionProxyIOData( 40 new data_reduction_proxy::DataReductionProxyIOData(
41 IOSChromeDataReductionProxySettings::GetClient(), flags, net_log, 41 IOSChromeDataReductionProxySettings::GetClient(), flags, net_log,
42 io_task_runner, ui_task_runner, enabled, enable_quic, 42 io_task_runner, ui_task_runner, enabled, enable_quic,
43 web::GetWebClient()->GetUserAgent(false))); 43 web::GetWebClient()->GetUserAgent(false)));
44 data_reduction_proxy_io_data->experiments_stats()->InitializeOnUIThread( 44 data_reduction_proxy_io_data->experiments_stats()->InitializeOnUIThread(
45 data_reduction_proxy::DataReductionProxyConfigRetrievalParams::Create( 45 data_reduction_proxy::DataReductionProxyConfigRetrievalParams::Create(
46 prefs)); 46 prefs));
47 47
48 return data_reduction_proxy_io_data; 48 return data_reduction_proxy_io_data;
49 } 49 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698