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

Side by Side Diff: chrome/browser/ui/toolbar/action_box_button_controller.h

Issue 11017042: Added UMA metrics for ActionBox (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Change after revised button/menu implementation Created 8 years, 2 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_UI_TOOLBAR_ACTION_BOX_BUTTON_CONTROLLER_H_ 5 #ifndef CHROME_BROWSER_UI_TOOLBAR_ACTION_BOX_BUTTON_CONTROLLER_H_
6 #define CHROME_BROWSER_UI_TOOLBAR_ACTION_BOX_BUTTON_CONTROLLER_H_ 6 #define CHROME_BROWSER_UI_TOOLBAR_ACTION_BOX_BUTTON_CONTROLLER_H_
7 7
8 #include <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 10
(...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after
85 85
86 // The command ID to assign to the next extension that needs one. 86 // The command ID to assign to the next extension that needs one.
87 int next_extension_command_id_; 87 int next_extension_command_id_;
88 88
89 // The extension IDs that have commands associated with them. 89 // The extension IDs that have commands associated with them.
90 typedef std::map<std::string, int> ExtensionIdCommandMap; 90 typedef std::map<std::string, int> ExtensionIdCommandMap;
91 ExtensionIdCommandMap extension_command_ids_; 91 ExtensionIdCommandMap extension_command_ids_;
92 92
93 content::NotificationRegistrar registrar_; 93 content::NotificationRegistrar registrar_;
94 94
95 // This indicates we need to send UMA data about the number of
96 // "Share with X" commands shown in the menu after user tried to
97 // find share extensions from web store or the first use of action
98 // box after browser starts.
99 bool should_send_uma_;
100
95 DISALLOW_COPY_AND_ASSIGN(ActionBoxButtonController); 101 DISALLOW_COPY_AND_ASSIGN(ActionBoxButtonController);
96 }; 102 };
97 103
98 #endif // CHROME_BROWSER_UI_TOOLBAR_ACTION_BOX_BUTTON_CONTROLLER_H_ 104 #endif // CHROME_BROWSER_UI_TOOLBAR_ACTION_BOX_BUTTON_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698