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

Side by Side Diff: ash/metrics/user_metrics_recorder.cc

Issue 1100763002: Inject CanAddURLToHistory into TopSitesImpl (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@prefs
Patch Set: Fix error introduced during rebase Created 5 years, 7 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 | « ash/metrics/user_metrics_recorder.h ('k') | ash/rotator/screen_rotation_animator.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 "ash/metrics/user_metrics_recorder.h" 5 #include "ash/metrics/user_metrics_recorder.h"
6 6
7 #include "ash/shelf/shelf_layout_manager.h" 7 #include "ash/shelf/shelf_layout_manager.h"
8 #include "ash/shelf/shelf_view.h" 8 #include "ash/shelf/shelf_view.h"
9 #include "ash/shelf/shelf_widget.h" 9 #include "ash/shelf/shelf_widget.h"
10 #include "ash/shell.h" 10 #include "ash/shell.h"
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
196 case ash::UMA_LAUNCHER_CLICK_ON_APP: 196 case ash::UMA_LAUNCHER_CLICK_ON_APP:
197 base::RecordAction(base::UserMetricsAction("Launcher_ClickOnApp")); 197 base::RecordAction(base::UserMetricsAction("Launcher_ClickOnApp"));
198 break; 198 break;
199 case ash::UMA_LAUNCHER_CLICK_ON_APPLIST_BUTTON: 199 case ash::UMA_LAUNCHER_CLICK_ON_APPLIST_BUTTON:
200 base::RecordAction( 200 base::RecordAction(
201 base::UserMetricsAction("Launcher_ClickOnApplistButton")); 201 base::UserMetricsAction("Launcher_ClickOnApplistButton"));
202 break; 202 break;
203 case ash::UMA_LAUNCHER_LAUNCH_TASK: 203 case ash::UMA_LAUNCHER_LAUNCH_TASK:
204 base::RecordAction(base::UserMetricsAction("Launcher_LaunchTask")); 204 base::RecordAction(base::UserMetricsAction("Launcher_LaunchTask"));
205 break; 205 break;
206 case ash::UMA_LAUNCHER_MINIMIZE_TASK:
207 base::RecordAction(base::UserMetricsAction("Launcher_MinimizeTask"));
208 break;
206 case ash::UMA_LAUNCHER_SWITCH_TASK: 209 case ash::UMA_LAUNCHER_SWITCH_TASK:
207 base::RecordAction(base::UserMetricsAction("Launcher_SwitchTask")); 210 base::RecordAction(base::UserMetricsAction("Launcher_SwitchTask"));
208 break; 211 break;
209 case UMA_MAXIMIZE_MODE_DISABLED: 212 case UMA_MAXIMIZE_MODE_DISABLED:
210 base::RecordAction(base::UserMetricsAction("Touchview_Disabled")); 213 base::RecordAction(base::UserMetricsAction("Touchview_Disabled"));
211 break; 214 break;
212 case UMA_MAXIMIZE_MODE_ENABLED: 215 case UMA_MAXIMIZE_MODE_ENABLED:
213 base::RecordAction(base::UserMetricsAction("Touchview_Enabled")); 216 base::RecordAction(base::UserMetricsAction("Touchview_Enabled"));
214 break; 217 break;
215 case UMA_MAXIMIZE_MODE_INITIALLY_DISABLED: 218 case UMA_MAXIMIZE_MODE_INITIALLY_DISABLED:
(...skipping 318 matching lines...) Expand 10 before | Expand all | Expand 10 after
534 537
535 UMA_HISTOGRAM_COUNTS_100("Ash.NumberOfVisibleWindowsInPrimaryDisplay", 538 UMA_HISTOGRAM_COUNTS_100("Ash.NumberOfVisibleWindowsInPrimaryDisplay",
536 GetNumVisibleWindowsInPrimaryDisplay()); 539 GetNumVisibleWindowsInPrimaryDisplay());
537 540
538 UMA_HISTOGRAM_ENUMERATION("Ash.ActiveWindowShowTypeOverTime", 541 UMA_HISTOGRAM_ENUMERATION("Ash.ActiveWindowShowTypeOverTime",
539 GetActiveWindowState(), 542 GetActiveWindowState(),
540 ACTIVE_WINDOW_STATE_TYPE_COUNT); 543 ACTIVE_WINDOW_STATE_TYPE_COUNT);
541 } 544 }
542 545
543 } // namespace ash 546 } // namespace ash
OLDNEW
« no previous file with comments | « ash/metrics/user_metrics_recorder.h ('k') | ash/rotator/screen_rotation_animator.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698