| Index: chrome/browser/ui/bookmarks/bookmark_utils.cc
|
| diff --git a/chrome/browser/ui/bookmarks/bookmark_utils.cc b/chrome/browser/ui/bookmarks/bookmark_utils.cc
|
| index e178b9f2f294f0634022c3be3ef56d20d2cc4a8d..80c70efbf3f3e9360274ac9d721935c59bba8883 100644
|
| --- a/chrome/browser/ui/bookmarks/bookmark_utils.cc
|
| +++ b/chrome/browser/ui/bookmarks/bookmark_utils.cc
|
| @@ -354,22 +354,22 @@ base::string16 FormatBookmarkURLForDisplay(const GURL& url,
|
| }
|
|
|
| bool IsAppsShortcutEnabled(Profile* profile,
|
| - chrome::HostDesktopType host_desktop_type) {
|
| + ui::HostDesktopType host_desktop_type) {
|
| // Legacy supervised users can not have apps installed currently so there's no
|
| // need to show the apps shortcut.
|
| if (profile->IsLegacySupervised())
|
| return false;
|
|
|
| // Don't show the apps shortcut in ash since the app launcher is enabled.
|
| - if (host_desktop_type == chrome::HOST_DESKTOP_TYPE_ASH)
|
| + if (host_desktop_type == ui::HOST_DESKTOP_TYPE_ASH)
|
| return false;
|
|
|
| return search::IsInstantExtendedAPIEnabled() && !profile->IsOffTheRecord();
|
| }
|
|
|
| bool ShouldShowAppsShortcutInBookmarkBar(
|
| - Profile* profile,
|
| - chrome::HostDesktopType host_desktop_type) {
|
| + Profile* profile,
|
| + ui::HostDesktopType host_desktop_type) {
|
| return IsAppsShortcutEnabled(profile, host_desktop_type) &&
|
| profile->GetPrefs()->GetBoolean(
|
| bookmarks::prefs::kShowAppsShortcutInBookmarkBar);
|
|
|