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

Side by Side Diff: chromecast/browser/metrics/cast_metrics_service_client.cc

Issue 1662523004: 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 "chromecast/browser/metrics/cast_metrics_service_client.h" 5 #include "chromecast/browser/metrics/cast_metrics_service_client.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/guid.h" 8 #include "base/guid.h"
9 #include "base/i18n/rtl.h" 9 #include "base/i18n/rtl.h"
10 #include "base/logging.h" 10 #include "base/logging.h"
11 #include "base/prefs/pref_registry_simple.h"
12 #include "base/prefs/pref_service.h"
13 #include "base/strings/string_number_conversions.h" 11 #include "base/strings/string_number_conversions.h"
14 #include "base/thread_task_runner_handle.h" 12 #include "base/thread_task_runner_handle.h"
15 #include "build/build_config.h" 13 #include "build/build_config.h"
16 #include "chromecast/base/cast_sys_info_util.h" 14 #include "chromecast/base/cast_sys_info_util.h"
17 #include "chromecast/base/chromecast_switches.h" 15 #include "chromecast/base/chromecast_switches.h"
18 #include "chromecast/base/path_utils.h" 16 #include "chromecast/base/path_utils.h"
19 #include "chromecast/base/pref_names.h" 17 #include "chromecast/base/pref_names.h"
20 #include "chromecast/base/version.h" 18 #include "chromecast/base/version.h"
21 #include "chromecast/browser/cast_browser_process.h" 19 #include "chromecast/browser/cast_browser_process.h"
22 #include "chromecast/browser/cast_content_browser_client.h" 20 #include "chromecast/browser/cast_content_browser_client.h"
23 #include "chromecast/browser/metrics/cast_stability_metrics_provider.h" 21 #include "chromecast/browser/metrics/cast_stability_metrics_provider.h"
24 #include "chromecast/public/cast_sys_info.h" 22 #include "chromecast/public/cast_sys_info.h"
25 #include "components/metrics/client_info.h" 23 #include "components/metrics/client_info.h"
26 #include "components/metrics/gpu/gpu_metrics_provider.h" 24 #include "components/metrics/gpu/gpu_metrics_provider.h"
27 #include "components/metrics/metrics_provider.h" 25 #include "components/metrics/metrics_provider.h"
28 #include "components/metrics/metrics_service.h" 26 #include "components/metrics/metrics_service.h"
29 #include "components/metrics/metrics_state_manager.h" 27 #include "components/metrics/metrics_state_manager.h"
30 #include "components/metrics/net/net_metrics_log_uploader.h" 28 #include "components/metrics/net/net_metrics_log_uploader.h"
31 #include "components/metrics/net/network_metrics_provider.h" 29 #include "components/metrics/net/network_metrics_provider.h"
32 #include "components/metrics/profiler/profiler_metrics_provider.h" 30 #include "components/metrics/profiler/profiler_metrics_provider.h"
33 #include "components/metrics/ui/screen_info_metrics_provider.h" 31 #include "components/metrics/ui/screen_info_metrics_provider.h"
34 #include "components/metrics/url_constants.h" 32 #include "components/metrics/url_constants.h"
33 #include "components/prefs/pref_registry_simple.h"
34 #include "components/prefs/pref_service.h"
35 #include "content/public/common/content_switches.h" 35 #include "content/public/common/content_switches.h"
36 36
37 #if defined(OS_LINUX) 37 #if defined(OS_LINUX)
38 #include "chromecast/browser/metrics/external_metrics.h" 38 #include "chromecast/browser/metrics/external_metrics.h"
39 #endif // defined(OS_LINUX) 39 #endif // defined(OS_LINUX)
40 40
41 #if defined(OS_ANDROID) 41 #if defined(OS_ANDROID)
42 #include "chromecast/base/android/dumpstate_writer.h" 42 #include "chromecast/base/android/dumpstate_writer.h"
43 #endif 43 #endif
44 44
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
408 #endif // defined(OS_LINUX) 408 #endif // defined(OS_LINUX)
409 metrics_service_->Stop(); 409 metrics_service_->Stop();
410 } 410 }
411 411
412 bool CastMetricsServiceClient::IsReportingEnabled() { 412 bool CastMetricsServiceClient::IsReportingEnabled() {
413 return pref_service_->GetBoolean(prefs::kOptInStats); 413 return pref_service_->GetBoolean(prefs::kOptInStats);
414 } 414 }
415 415
416 } // namespace metrics 416 } // namespace metrics
417 } // namespace chromecast 417 } // namespace chromecast
OLDNEW
« no previous file with comments | « chromecast/browser/devtools/remote_debugging_server.h ('k') | chromecast/browser/metrics/cast_stability_metrics_provider.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698