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

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

Issue 115113006: Rename Launcher to Shelf. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: ShelfTestAPI Created 7 years 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 | Annotate | Revision Log
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/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 342 matching lines...) Expand 10 before | Expand all | Expand 10 after
353 break; 353 break;
354 case ash::UMA_WINDOW_SELECTION: 354 case ash::UMA_WINDOW_SELECTION:
355 content::RecordAction( 355 content::RecordAction(
356 content::UserMetricsAction("WindowSelector_Selection")); 356 content::UserMetricsAction("WindowSelector_Selection"));
357 break; 357 break;
358 } 358 }
359 } 359 }
360 360
361 void UserMetricsRecorder::RecordPeriodicMetrics() { 361 void UserMetricsRecorder::RecordPeriodicMetrics() {
362 internal::ShelfLayoutManager* manager = 362 internal::ShelfLayoutManager* manager =
363 internal::ShelfLayoutManager::ForLauncher(Shell::GetPrimaryRootWindow()); 363 internal::ShelfLayoutManager::ForShelf(Shell::GetPrimaryRootWindow());
364 if (manager) { 364 if (manager) {
365 UMA_HISTOGRAM_ENUMERATION("Ash.ShelfAlignmentOverTime", 365 UMA_HISTOGRAM_ENUMERATION("Ash.ShelfAlignmentOverTime",
366 manager->SelectValueForShelfAlignment( 366 manager->SelectValueForShelfAlignment(
367 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_BOTTOM, 367 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_BOTTOM,
368 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_LEFT, 368 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_LEFT,
369 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_RIGHT, 369 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_RIGHT,
370 -1), 370 -1),
371 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_COUNT); 371 internal::SHELF_ALIGNMENT_UMA_ENUM_VALUE_COUNT);
372 } 372 }
373 } 373 }
374 374
375 } // namespace ash 375 } // namespace ash
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698