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

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

Issue 2132773002: Added UMA metrics for screen capture UI in the status area. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Removed using statements from UserMetricsRecorder::RecordUserMetricsAction(). Created 4 years, 5 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
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/common/session/session_state_delegate.h" 7 #include "ash/common/session/session_state_delegate.h"
8 #include "ash/common/shelf/shelf_item_types.h" 8 #include "ash/common/shelf/shelf_item_types.h"
9 #include "ash/common/shelf/shelf_model.h" 9 #include "ash/common/shelf/shelf_model.h"
10 #include "ash/common/shell_window_ids.h" 10 #include "ash/common/shell_window_ids.h"
(...skipping 477 matching lines...) Expand 10 before | Expand all | Expand 10 after
488 base::RecordAction(base::UserMetricsAction("StatusArea_MenuOpened")); 488 base::RecordAction(base::UserMetricsAction("StatusArea_MenuOpened"));
489 break; 489 break;
490 case UMA_STATUS_AREA_NETWORK_JOIN_OTHER_CLICKED: 490 case UMA_STATUS_AREA_NETWORK_JOIN_OTHER_CLICKED:
491 base::RecordAction( 491 base::RecordAction(
492 base::UserMetricsAction("StatusArea_Network_JoinOther")); 492 base::UserMetricsAction("StatusArea_Network_JoinOther"));
493 break; 493 break;
494 case UMA_STATUS_AREA_NETWORK_SETTINGS_CLICKED: 494 case UMA_STATUS_AREA_NETWORK_SETTINGS_CLICKED:
495 base::RecordAction( 495 base::RecordAction(
496 base::UserMetricsAction("StatusArea_Network_Settings")); 496 base::UserMetricsAction("StatusArea_Network_Settings"));
497 break; 497 break;
498 case UMA_STATUS_AREA_SCREEN_CAPTURE_DEFAULT_STOP:
499 base::RecordAction(
500 base::UserMetricsAction("StatusArea_ScreenCapture_Default_Stop"));
501 break;
502 case UMA_STATUS_AREA_SCREEN_CAPTURE_NOTIFICATION_STOP:
503 base::RecordAction(base::UserMetricsAction(
504 "StatusArea_ScreenCapture_Notification_Stop"));
505 break;
498 case UMA_STATUS_AREA_SHOW_NETWORK_CONNECTION_DETAILS: 506 case UMA_STATUS_AREA_SHOW_NETWORK_CONNECTION_DETAILS:
499 base::RecordAction( 507 base::RecordAction(
500 base::UserMetricsAction("StatusArea_Network_ConnectionDetails")); 508 base::UserMetricsAction("StatusArea_Network_ConnectionDetails"));
501 break; 509 break;
502 case UMA_STATUS_AREA_SHOW_VPN_CONNECTION_DETAILS: 510 case UMA_STATUS_AREA_SHOW_VPN_CONNECTION_DETAILS:
503 base::RecordAction( 511 base::RecordAction(
504 base::UserMetricsAction("StatusArea_VPN_ConnectionDetails")); 512 base::UserMetricsAction("StatusArea_VPN_ConnectionDetails"));
505 break; 513 break;
506 case UMA_STATUS_AREA_SIGN_OUT: 514 case UMA_STATUS_AREA_SIGN_OUT:
507 base::RecordAction(base::UserMetricsAction("StatusArea_SignOut")); 515 base::RecordAction(base::UserMetricsAction("StatusArea_SignOut"));
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 return IsUserActive() && !IsKioskModeActive(); 663 return IsUserActive() && !IsKioskModeActive();
656 } 664 }
657 665
658 void UserMetricsRecorder::StartTimer() { 666 void UserMetricsRecorder::StartTimer() {
659 timer_.Start(FROM_HERE, 667 timer_.Start(FROM_HERE,
660 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds), 668 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds),
661 this, &UserMetricsRecorder::RecordPeriodicMetrics); 669 this, &UserMetricsRecorder::RecordPeriodicMetrics);
662 } 670 }
663 671
664 } // namespace ash 672 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698