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

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

Issue 1445003002: Use std::default_delete as the default deleter for scoped_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: How many trial and errors before this builds on the Windows bots Created 5 years, 1 month 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
« no previous file with comments | « components/nacl/renderer/histogram.cc ('k') | components/proximity_auth/screenlock_bridge.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/proximity_auth/metrics.h" 5 #include "components/proximity_auth/metrics.h"
6 6
7 #include <algorithm>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "base/md5.h" 10 #include "base/md5.h"
9 #include "base/metrics/histogram_macros.h" 11 #include "base/metrics/histogram_macros.h"
10 #include "base/metrics/sparse_histogram.h" 12 #include "base/metrics/sparse_histogram.h"
11 #include "base/sys_byteorder.h" 13 #include "base/sys_byteorder.h"
12 14
13 namespace proximity_auth { 15 namespace proximity_auth {
14 namespace metrics { 16 namespace metrics {
15 17
16 namespace { 18 namespace {
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 74
73 void RecordRemoteSecuritySettingsState(RemoteSecuritySettingsState state) { 75 void RecordRemoteSecuritySettingsState(RemoteSecuritySettingsState state) {
74 DCHECK(state < RemoteSecuritySettingsState::COUNT); 76 DCHECK(state < RemoteSecuritySettingsState::COUNT);
75 UMA_HISTOGRAM_ENUMERATION( 77 UMA_HISTOGRAM_ENUMERATION(
76 "EasyUnlock.RemoteLockScreenState", static_cast<int>(state), 78 "EasyUnlock.RemoteLockScreenState", static_cast<int>(state),
77 static_cast<int>(RemoteSecuritySettingsState::COUNT)); 79 static_cast<int>(RemoteSecuritySettingsState::COUNT));
78 } 80 }
79 81
80 } // namespace metrics 82 } // namespace metrics
81 } // namespace proximity_auth 83 } // namespace proximity_auth
OLDNEW
« no previous file with comments | « components/nacl/renderer/histogram.cc ('k') | components/proximity_auth/screenlock_bridge.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698