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

Unified Diff: chrome/browser/ui/browser.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_utils.cc ('k') | chrome/browser/ui/browser_browsertest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 6278531e45904a302317d239e27c12c506af1d41..ac738adafae528c8c6d15f2d785af3f18df44531 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -413,7 +413,7 @@ Browser::Browser(const CreateParams& params)
encoding_auto_detect_.Init(prefs::kWebKitUsesUniversalDetector,
profile_->GetPrefs());
- if (chrome::IsInstantExtendedAPIEnabled() && is_type_tabbed())
+ if (search::IsInstantExtendedAPIEnabled() && is_type_tabbed())
instant_controller_.reset(new BrowserInstantController(this));
if (extensions::HostedAppBrowserController::IsForHostedApp(this)) {
@@ -1037,7 +1037,7 @@ void Browser::ActiveTabChanged(WebContents* old_contents,
// Propagate the profile to the location bar.
UpdateToolbar((reason & CHANGE_REASON_REPLACED) == 0);
- if (chrome::IsInstantExtendedAPIEnabled())
+ if (search::IsInstantExtendedAPIEnabled())
search_delegate_->OnTabActivated(new_contents);
// Update reload/stop state.
@@ -1193,7 +1193,7 @@ bool Browser::ShouldPreserveAbortedURLs(WebContents* source) {
if (!profile || !source->GetController().GetLastCommittedEntry())
return false;
GURL committed_url(source->GetController().GetLastCommittedEntry()->GetURL());
- return chrome::IsNTPURL(committed_url, profile);
+ return search::IsNTPURL(committed_url, profile);
}
void Browser::SetFocusToLocationBar(bool select_all) {
@@ -1591,7 +1591,7 @@ bool Browser::ShouldFocusLocationBarByDefault(WebContents* source) {
}
}
- return chrome::NavEntryIsInstantNTP(source, entry);
+ return search::NavEntryIsInstantNTP(source, entry);
}
void Browser::ViewSourceForTab(WebContents* source, const GURL& page_url) {
@@ -1859,7 +1859,7 @@ gfx::Size Browser::GetSizeForNewRenderView(WebContents* web_contents) const {
const NavigationEntry* pending_entry =
web_contents->GetController().GetPendingEntry();
if (pending_entry &&
- !chrome::IsNTPURL(pending_entry->GetVirtualURL(), profile_)) {
+ !search::IsNTPURL(pending_entry->GetVirtualURL(), profile_)) {
size.Enlarge(
0, window()->GetRenderViewHeightInsetWithDetachedBookmarkBar());
}
« no previous file with comments | « chrome/browser/ui/bookmarks/bookmark_utils.cc ('k') | chrome/browser/ui/browser_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698