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

Unified Diff: chrome/browser/ui/search/instant_controller.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
Index: chrome/browser/ui/search/instant_controller.cc
diff --git a/chrome/browser/ui/search/instant_controller.cc b/chrome/browser/ui/search/instant_controller.cc
index 26c0917eef95a10536082fb47a6748ffe26739ae..33020d5fa69b8c0813850691d80725c479af987c 100644
--- a/chrome/browser/ui/search/instant_controller.cc
+++ b/chrome/browser/ui/search/instant_controller.cc
@@ -47,7 +47,7 @@ void EnsureSearchTermsAreSet(content::WebContents* contents,
// If search terms are already correct or there is already a transient entry
// (there shouldn't be), bail out early.
- if (chrome::GetSearchTerms(contents) == search_terms ||
+ if (search::GetSearchTerms(contents) == search_terms ||
controller->GetTransientEntry())
return;
@@ -108,7 +108,7 @@ void InstantController::ActiveTabChanged() {
void InstantController::TabDeactivated(content::WebContents* contents) {
// If user is deactivating an NTP tab, log the number of mouseovers for this
// NTP session.
- if (chrome::IsInstantNTP(contents))
+ if (search::IsInstantNTP(contents))
InstantTab::EmitNtpStatistics(contents);
}
« no previous file with comments | « chrome/browser/ui/omnibox/chrome_omnibox_client.cc ('k') | chrome/browser/ui/search/instant_extended_interactive_uitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698