| OLD | NEW |
| (Empty) | |
| 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 |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #ifndef CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_ |
| 6 #define CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_ |
| 7 |
| 8 namespace media_router { |
| 9 |
| 10 // Where the user clicked to open the Media Router dialog. |
| 11 enum MediaRouterDialogOpenOrigin { |
| 12 // NOTE: Do not renumber these as that would confuse interpretation of |
| 13 // previously logged data. When making changes, also update the enum list |
| 14 // in tools/metrics/histograms/histograms.xml to keep it in sync. |
| 15 TOOLBAR = 0, |
| 16 OVERFLOW_MENU = 1, |
| 17 CONTEXTUAL_MENU = 2, |
| 18 PAGE = 3, |
| 19 |
| 20 // NOTE: Add entries only immediately above this line. |
| 21 TOTAL_COUNT = 4 |
| 22 }; |
| 23 |
| 24 class MediaRouterMetrics { |
| 25 public: |
| 26 // Records where the user clicked to open the Media Router dialog. |
| 27 static void RecordMediaRouterDialogOrigin( |
| 28 MediaRouterDialogOpenOrigin origin); |
| 29 }; |
| 30 |
| 31 } // namespace media_router |
| 32 |
| 33 #endif // CHROME_BROWSER_MEDIA_ROUTER_MEDIA_ROUTER_METRICS_H_ |
| OLD | NEW |