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

Side by Side Diff: chrome/browser/bookmarks/bookmark_stats.h

Issue 49283004: Add UMA stats for tracking bookmark depth (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sky Created 7 years, 1 month 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
« no previous file with comments | « no previous file | chrome/browser/bookmarks/bookmark_stats.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_STATS_H_ 5 #ifndef CHROME_BROWSER_BOOKMARKS_BOOKMARK_STATS_H_
6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_STATS_H_ 6 #define CHROME_BROWSER_BOOKMARKS_BOOKMARK_STATS_H_
7 7
8 class BookmarkNode;
9
8 // This enum is used for the Bookmarks.EntryPoint histogram. 10 // This enum is used for the Bookmarks.EntryPoint histogram.
9 enum BookmarkEntryPoint { 11 enum BookmarkEntryPoint {
10 BOOKMARK_ENTRY_POINT_ACCELERATOR, 12 BOOKMARK_ENTRY_POINT_ACCELERATOR,
11 BOOKMARK_ENTRY_POINT_STAR_GESTURE, 13 BOOKMARK_ENTRY_POINT_STAR_GESTURE,
12 BOOKMARK_ENTRY_POINT_STAR_KEY, 14 BOOKMARK_ENTRY_POINT_STAR_KEY,
13 BOOKMARK_ENTRY_POINT_STAR_MOUSE, 15 BOOKMARK_ENTRY_POINT_STAR_MOUSE,
14 16
15 BOOKMARK_ENTRY_POINT_LIMIT // Keep this last. 17 BOOKMARK_ENTRY_POINT_LIMIT // Keep this last.
16 }; 18 };
17 19
(...skipping 13 matching lines...) Expand all
31 BOOKMARK_LAUNCH_LOCATION_WRENCH_MENU, 33 BOOKMARK_LAUNCH_LOCATION_WRENCH_MENU,
32 // Bookmark manager. 34 // Bookmark manager.
33 BOOKMARK_LAUNCH_LOCATION_MANAGER, 35 BOOKMARK_LAUNCH_LOCATION_MANAGER,
34 // Autocomplete suggestion. 36 // Autocomplete suggestion.
35 BOOKMARK_LAUNCH_LOCATION_OMNIBOX, 37 BOOKMARK_LAUNCH_LOCATION_OMNIBOX,
36 38
37 BOOKMARK_LAUNCH_LOCATION_LIMIT // Keep this last. 39 BOOKMARK_LAUNCH_LOCATION_LIMIT // Keep this last.
38 }; 40 };
39 41
40 // Records the launch of a bookmark for UMA purposes. 42 // Records the launch of a bookmark for UMA purposes.
41 void RecordBookmarkLaunch(BookmarkLaunchLocation location); 43 void RecordBookmarkLaunch(const BookmarkNode* node,
44 BookmarkLaunchLocation location);
42 45
43 // Records the user opening a folder of bookmarks for UMA purposes. 46 // Records the user opening a folder of bookmarks for UMA purposes.
44 void RecordBookmarkFolderOpen(BookmarkLaunchLocation location); 47 void RecordBookmarkFolderOpen(BookmarkLaunchLocation location);
45 48
46 // Records the user opening the apps page for UMA purposes. 49 // Records the user opening the apps page for UMA purposes.
47 void RecordBookmarkAppsPageOpen(BookmarkLaunchLocation location); 50 void RecordBookmarkAppsPageOpen(BookmarkLaunchLocation location);
48 51
49 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_STATS_H_ 52 #endif // CHROME_BROWSER_BOOKMARKS_BOOKMARK_STATS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/bookmarks/bookmark_stats.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698