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

Side by Side Diff: components/data_reduction_proxy/core/browser/data_reduction_proxy_settings.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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h" 5 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_sett ings.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/command_line.h" 10 #include "base/command_line.h"
11 #include "base/metrics/histogram_macros.h" 11 #include "base/metrics/histogram_macros.h"
12 #include "base/prefs/pref_member.h"
13 #include "base/prefs/pref_service.h"
12 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp ression_stats.h" 14 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_comp ression_stats.h"
13 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf ig.h" 15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_conf ig.h"
14 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d ata.h" 16 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_io_d ata.h"
15 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv ice.h" 17 #include "components/data_reduction_proxy/core/browser/data_reduction_proxy_serv ice.h"
16 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h" 18 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_param s.h"
17 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_ names.h" 19 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_pref_ names.h"
18 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc hes.h" 20 #include "components/data_reduction_proxy/core/common/data_reduction_proxy_switc hes.h"
19 #include "components/prefs/pref_member.h"
20 #include "components/prefs/pref_service.h"
21 #include "net/base/network_change_notifier.h" 21 #include "net/base/network_change_notifier.h"
22 22
23 namespace { 23 namespace {
24 24
25 // Key of the UMA DataReductionProxy.StartupState histogram. 25 // Key of the UMA DataReductionProxy.StartupState histogram.
26 const char kUMAProxyStartupStateHistogram[] = 26 const char kUMAProxyStartupStateHistogram[] =
27 "DataReductionProxy.StartupState"; 27 "DataReductionProxy.StartupState";
28 28
29 void RecordSettingsEnabledState( 29 void RecordSettingsEnabledState(
30 data_reduction_proxy::DataReductionSettingsEnabledAction action) { 30 data_reduction_proxy::DataReductionSettingsEnabledAction action) {
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
372 int64_t* received_content_length, 372 int64_t* received_content_length,
373 int64_t* last_update_time) { 373 int64_t* last_update_time) {
374 DCHECK(thread_checker_.CalledOnValidThread()); 374 DCHECK(thread_checker_.CalledOnValidThread());
375 DCHECK(data_reduction_proxy_service_->compression_stats()); 375 DCHECK(data_reduction_proxy_service_->compression_stats());
376 376
377 data_reduction_proxy_service_->compression_stats()->GetContentLengths( 377 data_reduction_proxy_service_->compression_stats()->GetContentLengths(
378 days, original_content_length, received_content_length, last_update_time); 378 days, original_content_length, received_content_length, last_update_time);
379 } 379 }
380 380
381 } // namespace data_reduction_proxy 381 } // namespace data_reduction_proxy
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698