OLD | NEW |
1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "ios/chrome/browser/ui/contextual_search/contextual_search_metrics.h" | 5 #include "ios/chrome/browser/ui/contextual_search/contextual_search_metrics.h" |
6 | 6 |
7 #include <map> | 7 #include <map> |
8 | 8 |
9 #include "base/metrics/histogram_macros.h" | 9 #include "base/metrics/histogram_macros.h" |
10 #include "base/metrics/user_metrics.h" | |
11 #include "base/time/time.h" | 10 #include "base/time/time.h" |
12 | 11 |
13 using ContextualSearch::PanelState; | 12 using ContextualSearch::PanelState; |
14 using ContextualSearch::StateChangeReason; | 13 using ContextualSearch::StateChangeReason; |
15 | 14 |
16 // TODO(crbug.com/546238): Convert this into a class that is injected into | 15 // TODO(crbug.com/546238): Convert this into a class that is injected into |
17 // CSController so it can be mocked and tested. | 16 // CSController so it can be mocked and tested. |
18 | 17 |
19 #define VLOG_UMA_HISTOGRAM_ENUMERATION(log_level, name, sample) \ | 18 #define VLOG_UMA_HISTOGRAM_ENUMERATION(log_level, name, sample) \ |
20 DVLOG(log_level) << (name) << ": " << (sample); | 19 DVLOG(log_level) << (name) << ": " << (sample); |
(...skipping 761 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
782 EXIT_MAXIMIZED_TO_OTHER), | 781 EXIT_MAXIMIZED_TO_OTHER), |
783 EXIT_MAXIMIZED_TO_COUNT, 1); | 782 EXIT_MAXIMIZED_TO_COUNT, 1); |
784 break; | 783 break; |
785 default: | 784 default: |
786 NOTREACHED() << "RecordFirstStateExit for unexpected state " << to_state; | 785 NOTREACHED() << "RecordFirstStateExit for unexpected state " << to_state; |
787 break; | 786 break; |
788 } | 787 } |
789 } | 788 } |
790 | 789 |
791 } // namespace ContextualSearch | 790 } // namespace ContextualSearch |
OLD | NEW |