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

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

Issue 2125403002: Added UMA metrics for the system update UI in the status area. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Merge branch 'master' into uma_update 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
« no previous file with comments | « ash/common/system/update/tray_update.cc ('k') | tools/metrics/actions/actions.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 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_OS_UPDATE_DEFAULT_SELECTED:
499 base::RecordAction(
500 base::UserMetricsAction("StatusArea_OS_Update_Default_Selected"));
501 break;
498 case UMA_STATUS_AREA_SHOW_NETWORK_CONNECTION_DETAILS: 502 case UMA_STATUS_AREA_SHOW_NETWORK_CONNECTION_DETAILS:
499 base::RecordAction( 503 base::RecordAction(
500 base::UserMetricsAction("StatusArea_Network_ConnectionDetails")); 504 base::UserMetricsAction("StatusArea_Network_ConnectionDetails"));
501 break; 505 break;
502 case UMA_STATUS_AREA_SHOW_VPN_CONNECTION_DETAILS: 506 case UMA_STATUS_AREA_SHOW_VPN_CONNECTION_DETAILS:
503 base::RecordAction( 507 base::RecordAction(
504 base::UserMetricsAction("StatusArea_VPN_ConnectionDetails")); 508 base::UserMetricsAction("StatusArea_VPN_ConnectionDetails"));
505 break; 509 break;
506 case UMA_STATUS_AREA_SIGN_OUT: 510 case UMA_STATUS_AREA_SIGN_OUT:
507 base::RecordAction(base::UserMetricsAction("StatusArea_SignOut")); 511 base::RecordAction(base::UserMetricsAction("StatusArea_SignOut"));
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 return IsUserActive() && !IsKioskModeActive(); 659 return IsUserActive() && !IsKioskModeActive();
656 } 660 }
657 661
658 void UserMetricsRecorder::StartTimer() { 662 void UserMetricsRecorder::StartTimer() {
659 timer_.Start(FROM_HERE, 663 timer_.Start(FROM_HERE,
660 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds), 664 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds),
661 this, &UserMetricsRecorder::RecordPeriodicMetrics); 665 this, &UserMetricsRecorder::RecordPeriodicMetrics);
662 } 666 }
663 667
664 } // namespace ash 668 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/system/update/tray_update.cc ('k') | tools/metrics/actions/actions.xml » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698