OLD | NEW |
---|---|
1 // Copyright (c) 2014 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2014 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_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_ | 5 #ifndef CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_ |
6 #define CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_ | 6 #define CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_ |
7 | 7 |
8 // Put utility functions only used by //chrome code here. If a function declared | 8 // Put utility functions only used by //chrome code here. If a function declared |
9 // here would be meaningfully shared with other platforms, consider moving it to | 9 // here would be meaningfully shared with other platforms, consider moving it to |
10 // components/content_settings/core/browser/content_settings_utils.h. | 10 // components/content_settings/core/browser/content_settings_utils.h. |
(...skipping 20 matching lines...) Expand all Loading... | |
31 PLUGINS_ACTION_DISPLAYED_BUBBLE, | 31 PLUGINS_ACTION_DISPLAYED_BUBBLE, |
32 PLUGINS_ACTION_CLICKED_RUN_ALL_PLUGINS_THIS_TIME, | 32 PLUGINS_ACTION_CLICKED_RUN_ALL_PLUGINS_THIS_TIME, |
33 PLUGINS_ACTION_CLICKED_ALWAYS_ALLOW_PLUGINS_ON_ORIGIN, | 33 PLUGINS_ACTION_CLICKED_ALWAYS_ALLOW_PLUGINS_ON_ORIGIN, |
34 PLUGINS_ACTION_CLICKED_MANAGE_PLUGIN_BLOCKING, | 34 PLUGINS_ACTION_CLICKED_MANAGE_PLUGIN_BLOCKING, |
35 PLUGINS_ACTION_CLICKED_LEARN_MORE, | 35 PLUGINS_ACTION_CLICKED_LEARN_MORE, |
36 PLUGINS_ACTION_COUNT | 36 PLUGINS_ACTION_COUNT |
37 }; | 37 }; |
38 | 38 |
39 void RecordPluginsAction(PluginsAction action); | 39 void RecordPluginsAction(PluginsAction action); |
40 | 40 |
41 // UMA histogram for the pop-ups broken puzzle piece. The enum values | |
dominickn
2016/12/20 05:31:48
Nit: change the comment to be:
"The different act
charleszhao
2016/12/20 22:43:50
Done.
| |
42 // correspond to histogram entries, so do not remove any existing values. | |
43 enum PopupsAction { | |
44 POPUPS_ACTION_DISPLAYED_BLOCKED_ICON_IN_OMNIBOX = 0, | |
45 POPUPS_ACTION_DISPLAYED_BUBBLE, | |
46 POPUPS_ACTION_SELECTED_ALWAYS_ALLOW_POPUPS_FROM, | |
47 POPUPS_ACTION_CLICKED_LIST_ITEM_CLICKED, | |
48 POPUPS_ACTION_CLICKED_MANAGE_POPUPS_BLOCKING, | |
49 POPUPS_ACTION_COUNT | |
50 }; | |
51 | |
52 void RecordPopupsAction(PopupsAction action); | |
dominickn
2016/12/20 05:31:48
Nit: newline before the } that closes the namespac
charleszhao
2016/12/20 22:43:50
Done.
| |
41 } // namespace content_settings | 53 } // namespace content_settings |
42 | 54 |
43 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_ | 55 #endif // CHROME_BROWSER_CONTENT_SETTINGS_CHROME_CONTENT_SETTINGS_UTILS_H_ |
OLD | NEW |