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

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

Issue 2857103007: [Night Light] CL2: Ash and system tray work (Closed)
Patch Set: Update comment Created 3 years, 7 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/metrics/user_metrics_action.h ('k') | ash/resources/vector_icons/BUILD.gn » ('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/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/shell_window_ids.h" 10 #include "ash/public/cpp/shell_window_ids.h"
(...skipping 529 matching lines...) Expand 10 before | Expand all | Expand 10 after
540 break; 540 break;
541 case UMA_TOUCHSCREEN_TAP_DOWN: 541 case UMA_TOUCHSCREEN_TAP_DOWN:
542 RecordAction(UserMetricsAction("Touchscreen_Down")); 542 RecordAction(UserMetricsAction("Touchscreen_Down"));
543 break; 543 break;
544 case UMA_TRAY_HELP: 544 case UMA_TRAY_HELP:
545 RecordAction(UserMetricsAction("Tray_Help")); 545 RecordAction(UserMetricsAction("Tray_Help"));
546 break; 546 break;
547 case UMA_TRAY_LOCK_SCREEN: 547 case UMA_TRAY_LOCK_SCREEN:
548 RecordAction(UserMetricsAction("Tray_LockScreen")); 548 RecordAction(UserMetricsAction("Tray_LockScreen"));
549 break; 549 break;
550 case UMA_TRAY_NIGHT_LIGHT:
551 RecordAction(UserMetricsAction("Tray_NightLight"));
552 break;
550 case UMA_TRAY_OVERVIEW: 553 case UMA_TRAY_OVERVIEW:
551 RecordAction(UserMetricsAction("Tray_Overview")); 554 RecordAction(UserMetricsAction("Tray_Overview"));
552 break; 555 break;
553 case UMA_TRAY_SETTINGS: 556 case UMA_TRAY_SETTINGS:
554 RecordAction(UserMetricsAction("Tray_Settings")); 557 RecordAction(UserMetricsAction("Tray_Settings"));
555 break; 558 break;
556 case UMA_TRAY_SHUT_DOWN: 559 case UMA_TRAY_SHUT_DOWN:
557 RecordAction(UserMetricsAction("Tray_ShutDown")); 560 RecordAction(UserMetricsAction("Tray_ShutDown"));
558 break; 561 break;
559 case UMA_WINDOW_APP_CLOSE_BUTTON_CLICK: 562 case UMA_WINDOW_APP_CLOSE_BUTTON_CLICK:
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 return IsUserActive() && !IsKioskModeActive() && !IsArcKioskModeActive(); 658 return IsUserActive() && !IsKioskModeActive() && !IsArcKioskModeActive();
656 } 659 }
657 660
658 void UserMetricsRecorder::StartTimer() { 661 void UserMetricsRecorder::StartTimer() {
659 timer_.Start(FROM_HERE, 662 timer_.Start(FROM_HERE,
660 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds), 663 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds),
661 this, &UserMetricsRecorder::RecordPeriodicMetrics); 664 this, &UserMetricsRecorder::RecordPeriodicMetrics);
662 } 665 }
663 666
664 } // namespace ash 667 } // namespace ash
OLDNEW
« no previous file with comments | « ash/metrics/user_metrics_action.h ('k') | ash/resources/vector_icons/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698