| OLD | NEW |
| 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/metrics/desktop_task_switch_metric_recorder.h" | 7 #include "ash/metrics/desktop_task_switch_metric_recorder.h" |
| 8 #include "ash/metrics/pointer_metrics_recorder.h" | 8 #include "ash/metrics/pointer_metrics_recorder.h" |
| 9 #include "ash/public/cpp/shelf_item.h" | 9 #include "ash/public/cpp/shelf_item.h" |
| 10 #include "ash/public/cpp/shelf_model.h" | 10 #include "ash/public/cpp/shelf_model.h" |
| (...skipping 488 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 499 break; | 499 break; |
| 500 case UMA_STATUS_AREA_SIGN_OUT: | 500 case UMA_STATUS_AREA_SIGN_OUT: |
| 501 RecordAction(UserMetricsAction("StatusArea_SignOut")); | 501 RecordAction(UserMetricsAction("StatusArea_SignOut")); |
| 502 break; | 502 break; |
| 503 case UMA_STATUS_AREA_SMS_DETAILED_DISMISS_MSG: | 503 case UMA_STATUS_AREA_SMS_DETAILED_DISMISS_MSG: |
| 504 RecordAction(UserMetricsAction("StatusArea_SMS_Detailed_DismissMsg")); | 504 RecordAction(UserMetricsAction("StatusArea_SMS_Detailed_DismissMsg")); |
| 505 break; | 505 break; |
| 506 case UMA_STATUS_AREA_SMS_NOTIFICATION_DISMISS_MSG: | 506 case UMA_STATUS_AREA_SMS_NOTIFICATION_DISMISS_MSG: |
| 507 RecordAction(UserMetricsAction("StatusArea_SMS_Notification_DismissMsg")); | 507 RecordAction(UserMetricsAction("StatusArea_SMS_Notification_DismissMsg")); |
| 508 break; | 508 break; |
| 509 case UMA_STATUS_AREA_SYSTEM_TRAY_SWIPE_TO_OPEN: |
| 510 RecordAction(UserMetricsAction("StatusArea_SystemTray_SwipeToOpen")); |
| 511 break; |
| 509 case UMA_STATUS_AREA_TRACING_DEFAULT_SELECTED: | 512 case UMA_STATUS_AREA_TRACING_DEFAULT_SELECTED: |
| 510 RecordAction(UserMetricsAction("StatusArea_Tracing_Default_Selected")); | 513 RecordAction(UserMetricsAction("StatusArea_Tracing_Default_Selected")); |
| 511 break; | 514 break; |
| 512 case UMA_STATUS_AREA_VPN_ADD_BUILT_IN_CLICKED: | 515 case UMA_STATUS_AREA_VPN_ADD_BUILT_IN_CLICKED: |
| 513 RecordAction(UserMetricsAction("StatusArea_VPN_AddBuiltIn")); | 516 RecordAction(UserMetricsAction("StatusArea_VPN_AddBuiltIn")); |
| 514 break; | 517 break; |
| 515 case UMA_STATUS_AREA_VPN_ADD_THIRD_PARTY_CLICKED: | 518 case UMA_STATUS_AREA_VPN_ADD_THIRD_PARTY_CLICKED: |
| 516 RecordAction(UserMetricsAction("StatusArea_VPN_AddThirdParty")); | 519 RecordAction(UserMetricsAction("StatusArea_VPN_AddThirdParty")); |
| 517 break; | 520 break; |
| 518 case UMA_STATUS_AREA_VPN_DISCONNECT_CLICKED: | 521 case UMA_STATUS_AREA_VPN_DISCONNECT_CLICKED: |
| (...skipping 144 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 663 return IsUserActive() && !IsKioskModeActive() && !IsArcKioskModeActive(); | 666 return IsUserActive() && !IsKioskModeActive() && !IsArcKioskModeActive(); |
| 664 } | 667 } |
| 665 | 668 |
| 666 void UserMetricsRecorder::StartTimer() { | 669 void UserMetricsRecorder::StartTimer() { |
| 667 timer_.Start(FROM_HERE, | 670 timer_.Start(FROM_HERE, |
| 668 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds), | 671 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds), |
| 669 this, &UserMetricsRecorder::RecordPeriodicMetrics); | 672 this, &UserMetricsRecorder::RecordPeriodicMetrics); |
| 670 } | 673 } |
| 671 | 674 |
| 672 } // namespace ash | 675 } // namespace ash |
| OLD | NEW |