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

Side by Side Diff: components/browser_watcher/crash_reporting_metrics_win.cc

Issue 1546143002: Switch to standard integer types in components/, part 1 of 4. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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 "components/browser_watcher/crash_reporting_metrics_win.h" 5 #include "components/browser_watcher/crash_reporting_metrics_win.h"
6 6
7 #include <stddef.h>
8
7 #include <algorithm> 9 #include <algorithm>
8 #include "base/atomicops.h" 10 #include "base/atomicops.h"
9 #include "base/guid.h" 11 #include "base/guid.h"
10 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "base/macros.h"
11 #include "base/strings/safe_sprintf.h" 14 #include "base/strings/safe_sprintf.h"
12 #include "base/strings/string_util.h" 15 #include "base/strings/string_util.h"
13 #include "base/strings/utf_string_conversions.h" 16 #include "base/strings/utf_string_conversions.h"
14 #include "base/win/registry.h" 17 #include "base/win/registry.h"
15 18
16 namespace browser_watcher { 19 namespace browser_watcher {
17 20
18 namespace { 21 namespace {
19 22
20 // The prior implementation used 0 and 1. Its data collection is inconsistent 23 // The prior implementation used 0 and 1. Its data collection is inconsistent
(...skipping 131 matching lines...) Expand 10 before | Expand all | Expand 10 after
152 } 155 }
153 156
154 // Delete the registry keys we've just counted. 157 // Delete the registry keys we've just counted.
155 for (const auto& value_name : to_delete) 158 for (const auto& value_name : to_delete)
156 regkey.DeleteValue(value_name.c_str()); 159 regkey.DeleteValue(value_name.c_str());
157 160
158 return values; 161 return values;
159 } 162 }
160 163
161 } // namespace browser_watcher 164 } // namespace browser_watcher
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698