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

Unified Diff: ash/metrics/user_metrics_recorder.cc

Issue 2169533002: mash: Migrate shelf app list button to wm common types (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase Created 4 years, 5 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ash/first_run/first_run_helper_impl.cc ('k') | ash/metrics/user_metrics_recorder_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ash/metrics/user_metrics_recorder.cc
diff --git a/ash/metrics/user_metrics_recorder.cc b/ash/metrics/user_metrics_recorder.cc
index 781f8b465f687b492b1e681039cdb8d494076353..8577b9992b07ac03017d380d803ae6717bc47d6b 100644
--- a/ash/metrics/user_metrics_recorder.cc
+++ b/ash/metrics/user_metrics_recorder.cc
@@ -161,8 +161,7 @@ void RecordShelfItemCounts() {
int pinned_item_count = 0;
int unpinned_item_count = 0;
- for (const ShelfItem& shelf_item :
- Shell::GetInstance()->shelf_model()->items()) {
+ for (const ShelfItem& shelf_item : WmShell::Get()->shelf_model()->items()) {
if (shelf_item.type != TYPE_APP_LIST) {
// Internal ash apps do not have an app id and thus will always be counted
// as unpinned.
« no previous file with comments | « ash/first_run/first_run_helper_impl.cc ('k') | ash/metrics/user_metrics_recorder_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698