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

Side by Side Diff: sync/util/data_type_histogram.h

Issue 9699057: [Sync] Move 'sync' target to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address Tim's comments Created 8 years, 9 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 | Annotate | Revision Log
« no previous file with comments | « sync/util/data_encryption_win_unittest.cc ('k') | sync/util/data_type_histogram_unittest.cc » ('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 (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_SYNC_UTIL_DATA_TYPE_HISTOGRAM_H_ 5 #ifndef SYNC_UTIL_DATA_TYPE_HISTOGRAM_H_
6 #define CHROME_BROWSER_SYNC_UTIL_DATA_TYPE_HISTOGRAM_H_ 6 #define SYNC_UTIL_DATA_TYPE_HISTOGRAM_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/metrics/histogram.h" 9 #include "base/metrics/histogram.h"
10 #include "base/time.h" 10 #include "base/time.h"
11 #include "chrome/browser/sync/syncable/model_type.h" 11 #include "sync/syncable/model_type.h"
12 12
13 // For now, this just implements UMA_HISTOGRAM_LONG_TIMES. This can be adjusted 13 // For now, this just implements UMA_HISTOGRAM_LONG_TIMES. This can be adjusted
14 // if we feel the min, max, or bucket count amount are not appropriate. 14 // if we feel the min, max, or bucket count amount are not appropriate.
15 #define SYNC_FREQ_HISTOGRAM(name, time) UMA_HISTOGRAM_CUSTOM_TIMES( \ 15 #define SYNC_FREQ_HISTOGRAM(name, time) UMA_HISTOGRAM_CUSTOM_TIMES( \
16 name, time, base::TimeDelta::FromMilliseconds(1), \ 16 name, time, base::TimeDelta::FromMilliseconds(1), \
17 base::TimeDelta::FromHours(1), 50) 17 base::TimeDelta::FromHours(1), 50)
18 18
19 // Helper macro for datatype specific histograms. For each datatype, invokes 19 // Helper macro for datatype specific histograms. For each datatype, invokes
20 // a pre-defined PER_DATA_TYPE_MACRO(type_str), where |type_str| is the string 20 // a pre-defined PER_DATA_TYPE_MACRO(type_str), where |type_str| is the string
21 // version of the datatype. 21 // version of the datatype.
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
81 break; \ 81 break; \
82 case syncable::APP_NOTIFICATIONS: \ 82 case syncable::APP_NOTIFICATIONS: \
83 PER_DATA_TYPE_MACRO("AppNotifications"); \ 83 PER_DATA_TYPE_MACRO("AppNotifications"); \
84 break; \ 84 break; \
85 default: \ 85 default: \
86 NOTREACHED() << "Unknown datatype " \ 86 NOTREACHED() << "Unknown datatype " \
87 << syncable::ModelTypeToString(datatype); \ 87 << syncable::ModelTypeToString(datatype); \
88 } \ 88 } \
89 } while (0) 89 } while (0)
90 90
91 #endif // CHROME_BROWSER_SYNC_UTIL_DATA_TYPE_HISTOGRAM_H_ 91 #endif // SYNC_UTIL_DATA_TYPE_HISTOGRAM_H_
OLDNEW
« no previous file with comments | « sync/util/data_encryption_win_unittest.cc ('k') | sync/util/data_type_histogram_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698