OLD | NEW |
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 #include "chrome/browser/ui/webui/sync_promo/sync_promo_trial.h" | 5 #include "chrome/browser/ui/webui/sync_promo/sync_promo_trial.h" |
6 | 6 |
7 #include "base/logging.h" | 7 #include "base/logging.h" |
8 #include "chrome/browser/metrics/metrics_service.h" | 8 #include "chrome/browser/metrics/metrics_service.h" |
9 #include "chrome/browser/ui/webui/sync_promo/sync_promo_ui.h" | 9 #include "chrome/browser/ui/sync/sync_promo_ui.h" |
10 #include "content/public/browser/web_contents.h" | 10 #include "content/public/browser/web_contents.h" |
11 #include "content/public/browser/web_ui.h" | 11 #include "content/public/browser/web_ui.h" |
12 | 12 |
13 namespace { | 13 namespace { |
14 | 14 |
15 enum { | 15 enum { |
16 UMA_START_PAGE_SHOWN = 0, | 16 UMA_START_PAGE_SHOWN = 0, |
17 UMA_START_PAGE_SIGNED_IN, | 17 UMA_START_PAGE_SIGNED_IN, |
18 UMA_NTP_LINK_SHOWN, | 18 UMA_NTP_LINK_SHOWN, |
19 UMA_NTP_LINK_SIGNED_IN, | 19 UMA_NTP_LINK_SIGNED_IN, |
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
118 // This switch statement needs to be updated when the enum Source changes. | 118 // This switch statement needs to be updated when the enum Source changes. |
119 COMPILE_ASSERT(SyncPromoUI::SOURCE_UNKNOWN == 8, | 119 COMPILE_ASSERT(SyncPromoUI::SOURCE_UNKNOWN == 8, |
120 kSourceEnumHasChangedButNotThisSwitchStatement); | 120 kSourceEnumHasChangedButNotThisSwitchStatement); |
121 NOTREACHED(); | 121 NOTREACHED(); |
122 break; | 122 break; |
123 } | 123 } |
124 UMA_HISTOGRAM_ENUMERATION("SyncPromo.ShowAndSignIn", uma, UMA_MAX); | 124 UMA_HISTOGRAM_ENUMERATION("SyncPromo.ShowAndSignIn", uma, UMA_MAX); |
125 } | 125 } |
126 | 126 |
127 } // namespace sync_promo_trial | 127 } // namespace sync_promo_trial |
OLD | NEW |