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

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: 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 485 matching lines...) Expand 10 before | Expand all | Expand 10 after
496 base::RecordAction( 496 base::RecordAction(
497 base::UserMetricsAction("StatusArea_Network_ConnectionDetails")); 497 base::UserMetricsAction("StatusArea_Network_ConnectionDetails"));
498 break; 498 break;
499 case UMA_STATUS_AREA_SHOW_VPN_CONNECTION_DETAILS: 499 case UMA_STATUS_AREA_SHOW_VPN_CONNECTION_DETAILS:
500 base::RecordAction( 500 base::RecordAction(
501 base::UserMetricsAction("StatusArea_VPN_ConnectionDetails")); 501 base::UserMetricsAction("StatusArea_VPN_ConnectionDetails"));
502 break; 502 break;
503 case UMA_STATUS_AREA_SIGN_OUT: 503 case UMA_STATUS_AREA_SIGN_OUT:
504 base::RecordAction(base::UserMetricsAction("StatusArea_SignOut")); 504 base::RecordAction(base::UserMetricsAction("StatusArea_SignOut"));
505 break; 505 break;
506 case UMA_STATUS_AREA_UPDATE_DEFAULT_CLICKED:
507 base::RecordAction(
508 base::UserMetricsAction("StatusArea_Update_Default_Clicked"));
tdanderson 2016/07/07 21:36:43 nit: consider dropping "_Clicked" from the action
bruthig 2016/07/08 17:49:44 Acknowledged.
509 break;
506 case UMA_STATUS_AREA_VPN_ADD_BUILT_IN_CLICKED: 510 case UMA_STATUS_AREA_VPN_ADD_BUILT_IN_CLICKED:
507 base::RecordAction(base::UserMetricsAction("StatusArea_VPN_AddBuiltIn")); 511 base::RecordAction(base::UserMetricsAction("StatusArea_VPN_AddBuiltIn"));
508 break; 512 break;
509 case UMA_STATUS_AREA_VPN_ADD_THIRD_PARTY_CLICKED: 513 case UMA_STATUS_AREA_VPN_ADD_THIRD_PARTY_CLICKED:
510 base::RecordAction( 514 base::RecordAction(
511 base::UserMetricsAction("StatusArea_VPN_AddThirdParty")); 515 base::UserMetricsAction("StatusArea_VPN_AddThirdParty"));
512 break; 516 break;
513 case UMA_STATUS_AREA_VPN_DISCONNECT_CLICKED: 517 case UMA_STATUS_AREA_VPN_DISCONNECT_CLICKED:
514 base::RecordAction(base::UserMetricsAction("StatusArea_VPN_Disconnect")); 518 base::RecordAction(base::UserMetricsAction("StatusArea_VPN_Disconnect"));
515 break; 519 break;
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 return IsUserActive() && !IsKioskModeActive(); 640 return IsUserActive() && !IsKioskModeActive();
637 } 641 }
638 642
639 void UserMetricsRecorder::StartTimer() { 643 void UserMetricsRecorder::StartTimer() {
640 timer_.Start(FROM_HERE, 644 timer_.Start(FROM_HERE,
641 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds), 645 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds),
642 this, &UserMetricsRecorder::RecordPeriodicMetrics); 646 this, &UserMetricsRecorder::RecordPeriodicMetrics);
643 } 647 }
644 648
645 } // namespace ash 649 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698