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

Side by Side Diff: components/metrics/clean_exit_beacon.cc

Issue 1548113002: Switch to standard integer types in components/, part 2 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: gn Created 4 years, 12 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" 8 #include "base/prefs/pref_service.h"
9 #include "build/build_config.h"
9 #include "components/metrics/metrics_pref_names.h" 10 #include "components/metrics/metrics_pref_names.h"
10 11
11 #if defined(OS_WIN) 12 #if defined(OS_WIN)
12 #include "base/metrics/histogram.h" 13 #include "base/metrics/histogram.h"
13 #include "base/strings/utf_string_conversions.h" 14 #include "base/strings/utf_string_conversions.h"
14 #include "base/win/registry.h" 15 #include "base/win/registry.h"
15 #endif 16 #endif
16 17
17 namespace metrics { 18 namespace metrics {
18 19
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 backup_registry_key_.c_str(), 71 backup_registry_key_.c_str(),
71 KEY_ALL_ACCESS) == ERROR_SUCCESS) { 72 KEY_ALL_ACCESS) == ERROR_SUCCESS) {
72 regkey.WriteValue( 73 regkey.WriteValue(
73 base::ASCIIToUTF16(prefs::kStabilityExitedCleanly).c_str(), 74 base::ASCIIToUTF16(prefs::kStabilityExitedCleanly).c_str(),
74 value ? 1u : 0u); 75 value ? 1u : 0u);
75 } 76 }
76 #endif 77 #endif
77 } 78 }
78 79
79 } // namespace metrics 80 } // namespace metrics
OLDNEW
« no previous file with comments | « components/metrics/call_stack_profile_metrics_provider_unittest.cc ('k') | components/metrics/client_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698