#include "chrome/browser/ui/bookmarks/bookmark_stats.h"
#include "chrome/browser/profiles/profile.h"
#include "base/metrics/histogram_macros.h"
#include "base/metrics/user_metrics.h"
#include "components/bookmarks/browser/bookmark_model.h"
#include "components/bookmarks/browser/bookmark_node_data.h"
BookmarkNode;
namespace {
bool IsBookmarkBarLocation(BookmarkLaunchLocation location) { … }
auto GetMetricProfile(const Profile* profile) { … }
}
std::ostream& operator<<(std::ostream& out,
const BookmarkLaunchAction& launch_action) { … }
void RecordBookmarkLaunch(BookmarkLaunchLocation location,
profile_metrics::BrowserProfileType profile_type) { … }
void RecordBookmarkFolderLaunch(BookmarkLaunchLocation location) { … }
void RecordBookmarkFolderOpen(BookmarkLaunchLocation location) { … }
void RecordBookmarkAppsPageOpen(BookmarkLaunchLocation location) { … }
void RecordBookmarkEdited(BookmarkLaunchLocation location) { … }
void RecordBookmarkRemoved(BookmarkLaunchLocation location) { … }
void RecordBookmarksAdded(const Profile* profile) { … }
void RecordBookmarkAllTabsWithTabsCount(const Profile* profile, int count) { … }
void RecordBookmarkDropped(const bookmarks::BookmarkNodeData& data,
const bookmarks::BookmarkNode* parent_node,
bool is_reorder) { … }