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

Side by Side Diff: ash/shelf/shelf_application_menu_model.cc

Issue 2736573002: chromeos: Move files in //ash/common to //ash, part 2 (Closed)
Patch Set: Created 3 years, 9 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
OLDNEW
1 // Copyright 2017 The Chromium Authors. All rights reserved. 1 // Copyright 2017 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/common/shelf/shelf_application_menu_model.h" 5 #include "ash/shelf/shelf_application_menu_model.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include <limits> 9 #include <limits>
10 #include <utility> 10 #include <utility>
11 11
12 #include "ash/common/shelf/shelf_item_delegate.h"
13 #include "ash/public/cpp/shelf_application_menu_item.h" 12 #include "ash/public/cpp/shelf_application_menu_item.h"
13 #include "ash/shelf/shelf_item_delegate.h"
14 #include "base/metrics/histogram_macros.h" 14 #include "base/metrics/histogram_macros.h"
15 15
16 namespace { 16 namespace {
17 17
18 const int kInvalidCommandId = std::numeric_limits<int>::max(); 18 const int kInvalidCommandId = std::numeric_limits<int>::max();
19 19
20 } // namespace 20 } // namespace
21 21
22 namespace ash { 22 namespace ash {
23 23
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 void ShelfApplicationMenuModel::RecordMenuItemSelectedMetrics( 65 void ShelfApplicationMenuModel::RecordMenuItemSelectedMetrics(
66 int command_id, 66 int command_id,
67 int num_menu_items_enabled) { 67 int num_menu_items_enabled) {
68 UMA_HISTOGRAM_COUNTS_100("Ash.Shelf.Menu.SelectedMenuItemIndex", command_id); 68 UMA_HISTOGRAM_COUNTS_100("Ash.Shelf.Menu.SelectedMenuItemIndex", command_id);
69 UMA_HISTOGRAM_COUNTS_100("Ash.Shelf.Menu.NumItemsEnabledUponSelection", 69 UMA_HISTOGRAM_COUNTS_100("Ash.Shelf.Menu.NumItemsEnabledUponSelection",
70 num_menu_items_enabled); 70 num_menu_items_enabled);
71 } 71 }
72 72
73 } // namespace ash 73 } // namespace ash
OLDNEW
« no previous file with comments | « ash/shelf/shelf_application_menu_model.h ('k') | ash/shelf/shelf_application_menu_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698