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

Side by Side Diff: chrome/browser/ui/toolbar/app_menu_model.cc

Issue 1786453002: Add UMA metrics for "Cast..." menu item. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 | « chrome/browser/ui/toolbar/app_menu_model.h ('k') | tools/metrics/histograms/histograms.xml » ('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 (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/toolbar/app_menu_model.h" 5 #include "chrome/browser/ui/toolbar/app_menu_model.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <cmath> 8 #include <cmath>
9 9
10 #include "base/command_line.h" 10 #include "base/command_line.h"
(...skipping 462 matching lines...) Expand 10 before | Expand all | Expand 10 after
473 if (!uma_action_recorded_) 473 if (!uma_action_recorded_)
474 UMA_HISTOGRAM_MEDIUM_TIMES("WrenchMenu.TimeToAction.Find", delta); 474 UMA_HISTOGRAM_MEDIUM_TIMES("WrenchMenu.TimeToAction.Find", delta);
475 LogMenuAction(MENU_ACTION_FIND); 475 LogMenuAction(MENU_ACTION_FIND);
476 break; 476 break;
477 case IDC_PRINT: 477 case IDC_PRINT:
478 if (!uma_action_recorded_) 478 if (!uma_action_recorded_)
479 UMA_HISTOGRAM_MEDIUM_TIMES("WrenchMenu.TimeToAction.Print", delta); 479 UMA_HISTOGRAM_MEDIUM_TIMES("WrenchMenu.TimeToAction.Print", delta);
480 LogMenuAction(MENU_ACTION_PRINT); 480 LogMenuAction(MENU_ACTION_PRINT);
481 break; 481 break;
482 482
483 case IDC_ROUTE_MEDIA:
484 if (!uma_action_recorded_)
485 UMA_HISTOGRAM_MEDIUM_TIMES("WrenchMenu.TimeToAction.Cast", delta);
486 LogMenuAction(MENU_ACTION_CAST);
487 break;
488
483 // Edit menu. 489 // Edit menu.
484 case IDC_CUT: 490 case IDC_CUT:
485 if (!uma_action_recorded_) 491 if (!uma_action_recorded_)
486 UMA_HISTOGRAM_MEDIUM_TIMES("WrenchMenu.TimeToAction.Cut", delta); 492 UMA_HISTOGRAM_MEDIUM_TIMES("WrenchMenu.TimeToAction.Cut", delta);
487 LogMenuAction(MENU_ACTION_CUT); 493 LogMenuAction(MENU_ACTION_CUT);
488 break; 494 break;
489 case IDC_COPY: 495 case IDC_COPY:
490 if (!uma_action_recorded_) 496 if (!uma_action_recorded_)
491 UMA_HISTOGRAM_MEDIUM_TIMES("WrenchMenu.TimeToAction.Copy", delta); 497 UMA_HISTOGRAM_MEDIUM_TIMES("WrenchMenu.TimeToAction.Copy", delta);
492 LogMenuAction(MENU_ACTION_COPY); 498 LogMenuAction(MENU_ACTION_COPY);
(...skipping 448 matching lines...) Expand 10 before | Expand all | Expand 10 after
941 ->GetZoomPercent(); 947 ->GetZoomPercent();
942 } 948 }
943 zoom_label_ = l10n_util::GetStringFUTF16( 949 zoom_label_ = l10n_util::GetStringFUTF16(
944 IDS_ZOOM_PERCENT, base::IntToString16(zoom_percent)); 950 IDS_ZOOM_PERCENT, base::IntToString16(zoom_percent));
945 } 951 }
946 952
947 void AppMenuModel::OnZoomLevelChanged( 953 void AppMenuModel::OnZoomLevelChanged(
948 const content::HostZoomMap::ZoomLevelChange& change) { 954 const content::HostZoomMap::ZoomLevelChange& change) {
949 UpdateZoomControls(); 955 UpdateZoomControls();
950 } 956 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/toolbar/app_menu_model.h ('k') | tools/metrics/histograms/histograms.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698