|
sync: Define histogram ints for model types
The common practice of using enums directly when counting histograms
works only if the enums' values never change. Unfortunately, we insert
into the middle of the list of ModelTypes all the time.
Rather than change the way we manage the list of model type enums, we
decided to separate the model types values from those used when
reporting histograms. This change defines a mapping from model types to
integers. These integers should be kept in sync with integer to label
mapping defined in histograms.xml.
This mapping is often similar to, but does not necessarily match, the
int values of the enums.
BUG= 190015
Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=188314
Total comments: 2
|
Unified diffs |
Side-by-side diffs |
Delta from patch set |
Stats (+103 lines, -13 lines) |
Patch |
 |
M |
chrome/browser/sync/glue/bookmark_model_associator.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/data_type_controller.cc
|
View
|
|
2 chunks |
+3 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/frontend_data_type_controller.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/model_association_manager.cc
|
View
|
|
2 chunks |
+2 lines, -2 lines |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/non_frontend_data_type_controller.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/non_ui_data_type_controller.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
chrome/browser/sync/glue/ui_data_type_controller.cc
|
View
|
|
1 chunk |
+2 lines, -1 line |
0 comments
|
Download
|
 |
M |
sync/internal_api/public/base/model_type.h
|
View
|
1
|
2 chunks |
+5 lines, -5 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/model_type.cc
|
View
|
|
1 chunk |
+65 lines, -0 lines |
0 comments
|
Download
|
 |
M |
sync/syncable/model_type_unittest.cc
|
View
|
|
1 chunk |
+18 lines, -0 lines |
0 comments
|
Download
|
Total messages: 5 (0 generated)
|