Chromium Code Reviews| 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/shelf/shelf_layout_manager.h" | 7 #include "ash/shelf/shelf_layout_manager.h" |
| 8 #include "ash/shelf/shelf_view.h" | 8 #include "ash/shelf/shelf_view.h" |
| 9 #include "ash/shelf/shelf_widget.h" | 9 #include "ash/shelf/shelf_widget.h" |
| 10 #include "ash/shell.h" | 10 #include "ash/shell.h" |
| (...skipping 210 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 221 base::UserMetricsAction("StatusArea_MagnifierDisabled")); | 221 base::UserMetricsAction("StatusArea_MagnifierDisabled")); |
| 222 break; | 222 break; |
| 223 case ash::UMA_STATUS_AREA_DISABLE_SPOKEN_FEEDBACK: | 223 case ash::UMA_STATUS_AREA_DISABLE_SPOKEN_FEEDBACK: |
| 224 base::RecordAction( | 224 base::RecordAction( |
| 225 base::UserMetricsAction("StatusArea_SpokenFeedbackDisabled")); | 225 base::UserMetricsAction("StatusArea_SpokenFeedbackDisabled")); |
| 226 break; | 226 break; |
| 227 case ash::UMA_STATUS_AREA_DISABLE_WIFI: | 227 case ash::UMA_STATUS_AREA_DISABLE_WIFI: |
| 228 base::RecordAction( | 228 base::RecordAction( |
| 229 base::UserMetricsAction("StatusArea_Network_WifiDisabled")); | 229 base::UserMetricsAction("StatusArea_Network_WifiDisabled")); |
| 230 break; | 230 break; |
| 231 case ash::UMA_STATUS_AREA_DISABLE_VIRTUAL_KEYBOARD: | |
|
Daniel Erat
2014/02/04 22:05:19
nit: please keep this list alphabetized (this shou
kevers
2014/02/04 22:37:57
Done.
| |
| 232 base::RecordAction( | |
| 233 base::UserMetricsAction("StatusArea_VirtualKeyboardDisabled")); | |
| 234 break; | |
| 231 case ash::UMA_STATUS_AREA_DRIVE_CANCEL_OPERATION: | 235 case ash::UMA_STATUS_AREA_DRIVE_CANCEL_OPERATION: |
| 232 base::RecordAction( | 236 base::RecordAction( |
| 233 base::UserMetricsAction("StatusArea_Drive_CancelOperation")); | 237 base::UserMetricsAction("StatusArea_Drive_CancelOperation")); |
| 234 break; | 238 break; |
| 235 case ash::UMA_STATUS_AREA_DRIVE_SETTINGS: | 239 case ash::UMA_STATUS_AREA_DRIVE_SETTINGS: |
| 236 base::RecordAction( | 240 base::RecordAction( |
| 237 base::UserMetricsAction("StatusArea_Drive_Settings")); | 241 base::UserMetricsAction("StatusArea_Drive_Settings")); |
| 238 break; | 242 break; |
| 239 case ash::UMA_STATUS_AREA_ENABLE_AUTO_CLICK: | 243 case ash::UMA_STATUS_AREA_ENABLE_AUTO_CLICK: |
| 240 base::RecordAction( | 244 base::RecordAction( |
| (...skipping 12 matching lines...) Expand all Loading... | |
| 253 base::UserMetricsAction("StatusArea_MagnifierEnabled")); | 257 base::UserMetricsAction("StatusArea_MagnifierEnabled")); |
| 254 break; | 258 break; |
| 255 case ash::UMA_STATUS_AREA_ENABLE_SPOKEN_FEEDBACK: | 259 case ash::UMA_STATUS_AREA_ENABLE_SPOKEN_FEEDBACK: |
| 256 base::RecordAction( | 260 base::RecordAction( |
| 257 base::UserMetricsAction("StatusArea_SpokenFeedbackEnabled")); | 261 base::UserMetricsAction("StatusArea_SpokenFeedbackEnabled")); |
| 258 break; | 262 break; |
| 259 case ash::UMA_STATUS_AREA_ENABLE_WIFI: | 263 case ash::UMA_STATUS_AREA_ENABLE_WIFI: |
| 260 base::RecordAction( | 264 base::RecordAction( |
| 261 base::UserMetricsAction("StatusArea_Network_WifiEnabled")); | 265 base::UserMetricsAction("StatusArea_Network_WifiEnabled")); |
| 262 break; | 266 break; |
| 267 case ash::UMA_STATUS_AREA_ENABLE_VIRTUAL_KEYBOARD: | |
|
Daniel Erat
2014/02/04 22:05:19
same here
kevers
2014/02/04 22:37:57
Done.
| |
| 268 base::RecordAction( | |
| 269 base::UserMetricsAction("StatusArea_VirtualKeyboardEnabled")); | |
| 270 break; | |
| 263 case ash::UMA_STATUS_AREA_IME_SHOW_DETAILED: | 271 case ash::UMA_STATUS_AREA_IME_SHOW_DETAILED: |
| 264 base::RecordAction( | 272 base::RecordAction( |
| 265 base::UserMetricsAction("StatusArea_IME_Detailed")); | 273 base::UserMetricsAction("StatusArea_IME_Detailed")); |
| 266 break; | 274 break; |
| 267 case ash::UMA_STATUS_AREA_IME_SWITCH_MODE: | 275 case ash::UMA_STATUS_AREA_IME_SWITCH_MODE: |
| 268 base::RecordAction( | 276 base::RecordAction( |
| 269 base::UserMetricsAction("StatusArea_IME_SwitchMode")); | 277 base::UserMetricsAction("StatusArea_IME_SwitchMode")); |
| 270 break; | 278 break; |
| 271 case ash::UMA_STATUS_AREA_MENU_OPENED: | 279 case ash::UMA_STATUS_AREA_MENU_OPENED: |
| 272 base::RecordAction( | 280 base::RecordAction( |
| (...skipping 152 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 425 active_window_show_type = ACTIVE_WINDOW_SHOW_TYPE_OTHER; | 433 active_window_show_type = ACTIVE_WINDOW_SHOW_TYPE_OTHER; |
| 426 break; | 434 break; |
| 427 } | 435 } |
| 428 } | 436 } |
| 429 UMA_HISTOGRAM_ENUMERATION("Ash.ActiveWindowShowTypeOverTime", | 437 UMA_HISTOGRAM_ENUMERATION("Ash.ActiveWindowShowTypeOverTime", |
| 430 active_window_show_type, | 438 active_window_show_type, |
| 431 ACTIVE_WINDOW_SHOW_TYPE_COUNT); | 439 ACTIVE_WINDOW_SHOW_TYPE_COUNT); |
| 432 } | 440 } |
| 433 | 441 |
| 434 } // namespace ash | 442 } // namespace ash |
| OLD | NEW |