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

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

Issue 1260033003: Partially componentize //chrome/browser/search/search.{h,cc} (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix compilation on iOS Created 5 years, 4 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
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_tab_helper.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 0956cc020e5c11b78244eaf0bd76172c04fdc725..f2f4bc17963136bab90a2520711000b987a3559e 100644
--- a/chrome/browser/ui/bookmarks/bookmark_utils.cc
+++ b/chrome/browser/ui/bookmarks/bookmark_utils.cc
@@ -295,8 +295,8 @@ bool HasBookmarkURLsAllowedInIncognitoMode(
GURL GetURLToBookmark(content::WebContents* web_contents) {
DCHECK(web_contents);
- return IsInstantNTP(web_contents) ?
- GURL(kChromeUINewTabURL) : web_contents->GetURL();
+ return search::IsInstantNTP(web_contents) ? GURL(kChromeUINewTabURL)
+ : web_contents->GetURL();
}
void GetURLAndTitleToBookmark(content::WebContents* web_contents,
@@ -342,7 +342,7 @@ bool IsAppsShortcutEnabled(Profile* profile,
if (host_desktop_type == chrome::HOST_DESKTOP_TYPE_ASH)
return false;
- return chrome::IsInstantExtendedAPIEnabled() && !profile->IsOffTheRecord();
+ return search::IsInstantExtendedAPIEnabled() && !profile->IsOffTheRecord();
}
bool ShouldShowAppsShortcutInBookmarkBar(
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_tab_helper.cc ('k') | chrome/browser/ui/browser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698