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

Side by Side Diff: components/metrics/clean_exit_beacon.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 "components/metrics/clean_exit_beacon.h" 5 #include "components/metrics/clean_exit_beacon.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/prefs/pref_service.h"
9 #include "build/build_config.h" 8 #include "build/build_config.h"
10 #include "components/metrics/metrics_pref_names.h" 9 #include "components/metrics/metrics_pref_names.h"
10 #include "components/prefs/pref_service.h"
11 11
12 #if defined(OS_WIN) 12 #if defined(OS_WIN)
13 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
14 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
15 #include "base/win/registry.h" 15 #include "base/win/registry.h"
16 #endif 16 #endif
17 17
18 namespace metrics { 18 namespace metrics {
19 19
20 CleanExitBeacon::CleanExitBeacon(const base::string16& backup_registry_key, 20 CleanExitBeacon::CleanExitBeacon(const base::string16& backup_registry_key,
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
71 backup_registry_key_.c_str(), 71 backup_registry_key_.c_str(),
72 KEY_ALL_ACCESS) == ERROR_SUCCESS) { 72 KEY_ALL_ACCESS) == ERROR_SUCCESS) {
73 regkey.WriteValue( 73 regkey.WriteValue(
74 base::ASCIIToUTF16(prefs::kStabilityExitedCleanly).c_str(), 74 base::ASCIIToUTF16(prefs::kStabilityExitedCleanly).c_str(),
75 value ? 1u : 0u); 75 value ? 1u : 0u);
76 } 76 }
77 #endif 77 #endif
78 } 78 }
79 79
80 } // namespace metrics 80 } // namespace metrics
OLDNEW
« no previous file with comments | « components/keyed_service/core/keyed_service_base_factory.cc ('k') | components/metrics/cloned_install_detector.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698