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

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

Issue 2446403003: chromeos: Convert bluetooth pairing dialog to work with mash, part 1 (Closed)
Patch Set: Created 4 years, 1 month 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_delegate.h" 8 #include "ash/common/shelf/shelf_delegate.h"
9 #include "ash/common/shelf/shelf_item_types.h" 9 #include "ash/common/shelf/shelf_item_types.h"
10 #include "ash/common/shelf/shelf_model.h" 10 #include "ash/common/shelf/shelf_model.h"
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 break; 325 break;
326 case UMA_STATUS_AREA_AUDIO_SWITCH_INPUT_DEVICE: 326 case UMA_STATUS_AREA_AUDIO_SWITCH_INPUT_DEVICE:
327 RecordAction(UserMetricsAction("StatusArea_Audio_SwitchInputDevice")); 327 RecordAction(UserMetricsAction("StatusArea_Audio_SwitchInputDevice"));
328 break; 328 break;
329 case UMA_STATUS_AREA_AUDIO_SWITCH_OUTPUT_DEVICE: 329 case UMA_STATUS_AREA_AUDIO_SWITCH_OUTPUT_DEVICE:
330 RecordAction(UserMetricsAction("StatusArea_Audio_SwitchOutputDevice")); 330 RecordAction(UserMetricsAction("StatusArea_Audio_SwitchOutputDevice"));
331 break; 331 break;
332 case UMA_STATUS_AREA_BRIGHTNESS_CHANGED: 332 case UMA_STATUS_AREA_BRIGHTNESS_CHANGED:
333 RecordAction(UserMetricsAction("StatusArea_BrightnessChanged")); 333 RecordAction(UserMetricsAction("StatusArea_BrightnessChanged"));
334 break; 334 break;
335 case UMA_STATUS_AREA_BLUETOOTH_CONNECT_KNOWN_DEVICE:
336 RecordAction(UserMetricsAction("StatusArea_Bluetooth_Connect_Known"));
337 break;
338 case UMA_STATUS_AREA_BLUETOOTH_CONNECT_UNKNOWN_DEVICE:
339 RecordAction(UserMetricsAction("StatusArea_Bluetooth_Connect_Unknown"));
340 break;
341 case UMA_STATUS_AREA_BLUETOOTH_DISABLED: 335 case UMA_STATUS_AREA_BLUETOOTH_DISABLED:
342 RecordAction(UserMetricsAction("StatusArea_Bluetooth_Disabled")); 336 RecordAction(UserMetricsAction("StatusArea_Bluetooth_Disabled"));
343 break; 337 break;
344 case UMA_STATUS_AREA_BLUETOOTH_ENABLED: 338 case UMA_STATUS_AREA_BLUETOOTH_ENABLED:
345 RecordAction(UserMetricsAction("StatusArea_Bluetooth_Enabled")); 339 RecordAction(UserMetricsAction("StatusArea_Bluetooth_Enabled"));
346 break; 340 break;
347 case UMA_STATUS_AREA_CAPS_LOCK_DETAILED: 341 case UMA_STATUS_AREA_CAPS_LOCK_DETAILED:
348 RecordAction(UserMetricsAction("StatusArea_CapsLock_Detailed")); 342 RecordAction(UserMetricsAction("StatusArea_CapsLock_Detailed"));
349 break; 343 break;
350 case UMA_STATUS_AREA_CAPS_LOCK_DISABLED_BY_CLICK: 344 case UMA_STATUS_AREA_CAPS_LOCK_DISABLED_BY_CLICK:
(...skipping 308 matching lines...) Expand 10 before | Expand all | Expand 10 after
659 return IsUserActive() && !IsKioskModeActive() && !IsArcKioskModeActive(); 653 return IsUserActive() && !IsKioskModeActive() && !IsArcKioskModeActive();
660 } 654 }
661 655
662 void UserMetricsRecorder::StartTimer() { 656 void UserMetricsRecorder::StartTimer() {
663 timer_.Start(FROM_HERE, 657 timer_.Start(FROM_HERE,
664 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds), 658 base::TimeDelta::FromSeconds(kAshPeriodicMetricsTimeInSeconds),
665 this, &UserMetricsRecorder::RecordPeriodicMetrics); 659 this, &UserMetricsRecorder::RecordPeriodicMetrics);
666 } 660 }
667 661
668 } // namespace ash 662 } // namespace ash
OLDNEW
« no previous file with comments | « ash/common/metrics/user_metrics_action.h ('k') | chrome/browser/chromeos/bluetooth/bluetooth_pairing_dialog.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698