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

Side by Side Diff: ios/chrome/browser/ui/contextual_search/contextual_search_metrics.mm

Issue 2771233002: Remove the wrapper functions content::RecordAction et al (Closed)
Patch Set: Rebased Created 3 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
« no previous file with comments | « ios/chrome/browser/ui/bookmarks/bookmark_home_handset_view_controller.mm ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
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
OLDNEW
« no previous file with comments | « ios/chrome/browser/ui/bookmarks/bookmark_home_handset_view_controller.mm ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698