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

Unified Diff: chrome/browser/ui/bookmarks/bookmark_utils.cc

Issue 1336823003: Move chrome::HostDesktopType to ui::HostDesktopType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@base_session_service_delegate_impl
Patch Set: Fix build on Mac and CrOS Created 5 years, 3 months 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 side-by-side diff with in-line comments
Download patch
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);

Powered by Google App Engine
This is Rietveld 408576698