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

Unified Diff: chrome/browser/ui/toolbar/toolbar_model_impl.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/toolbar/toolbar_model_impl.h ('k') | chrome/browser/ui/toolbar/toolbar_model_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/toolbar/toolbar_model_impl.cc
diff --git a/chrome/browser/ui/toolbar/toolbar_model_impl.cc b/chrome/browser/ui/toolbar/toolbar_model_impl.cc
index 6a17942f731ec0e660e37f7aed1fedc33b99d5c1..083b11b0ef5ac7cddc89b1cf3f02e71b2a4396f0 100644
--- a/chrome/browser/ui/toolbar/toolbar_model_impl.cc
+++ b/chrome/browser/ui/toolbar/toolbar_model_impl.cc
@@ -190,7 +190,7 @@ bool ToolbarModelImpl::ShouldDisplayURL() const {
}
}
- return !chrome::IsInstantNTP(delegate_->GetActiveWebContents());
+ return !search::IsInstantNTP(delegate_->GetActiveWebContents());
}
NavigationController* ToolbarModelImpl::GetNavigationController() const {
@@ -213,7 +213,7 @@ base::string16 ToolbarModelImpl::GetSearchTerms(bool ignore_editing) const {
return base::string16();
const WebContents* web_contents = delegate_->GetActiveWebContents();
- base::string16 search_terms(chrome::GetSearchTerms(web_contents));
+ base::string16 search_terms(search::GetSearchTerms(web_contents));
if (search_terms.empty()) {
// We mainly do this to enforce the subsequent DCHECK.
return base::string16();
« no previous file with comments | « chrome/browser/ui/toolbar/toolbar_model_impl.h ('k') | chrome/browser/ui/toolbar/toolbar_model_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698