| Index: chrome/browser/bookmarks/bookmark_utils.cc
|
| diff --git a/chrome/browser/bookmarks/bookmark_utils.cc b/chrome/browser/bookmarks/bookmark_utils.cc
|
| index 2e647ddf262aaaf43378455dc1a17785c39911af..5f35ce64b1e4d12cf0079a6df3eb820e175d3b94 100644
|
| --- a/chrome/browser/bookmarks/bookmark_utils.cc
|
| +++ b/chrome/browser/bookmarks/bookmark_utils.cc
|
| @@ -440,6 +440,9 @@ void RegisterUserPrefs(PrefRegistrySyncable* registry) {
|
| registry->RegisterBooleanPref(prefs::kEditBookmarksEnabled,
|
| true,
|
| PrefRegistrySyncable::UNSYNCABLE_PREF);
|
| + registry->RegisterBooleanPref(prefs::kShowAppsShortcutInBookmarkBar,
|
| + true,
|
| + PrefRegistrySyncable::SYNCABLE_PREF);
|
| }
|
|
|
| const BookmarkNode* GetParentForNewNodes(
|
| @@ -520,6 +523,13 @@ void RecordBookmarkLaunch(BookmarkLaunchLocation location) {
|
| UMA_HISTOGRAM_ENUMERATION("Bookmarks.LaunchLocation", location, LAUNCH_LIMIT);
|
| }
|
|
|
| +void RecordAppsPageOpen(BookmarkLaunchLocation location) {
|
| + if (location == LAUNCH_DETACHED_BAR || location == LAUNCH_ATTACHED_BAR) {
|
| + content::RecordAction(
|
| + UserMetricsAction("ClickedBookmarkBarAppsShortcutButton"));
|
| + }
|
| +}
|
| +
|
| #if defined(OS_WIN) || defined(OS_CHROMEOS) || defined(USE_AURA)
|
| void DisableBookmarkBarViewAnimationsForTesting(bool disabled) {
|
| g_bookmark_bar_view_animations_disabled = disabled;
|
|
|