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

Unified Diff: chrome/browser/ui/toolbar/toolbar_model_impl.cc

Issue 105613002: Remove unused parameter to ToolbarModel::GetText. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding an Android call I missed earlier. Created 7 years 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/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 2f52f6bb5a8d6c8c0f697397890b29f282f8ea94..3fc3bd13d337f4d23d6d6b531237a44af2e5a107 100644
--- a/chrome/browser/ui/toolbar/toolbar_model_impl.cc
+++ b/chrome/browser/ui/toolbar/toolbar_model_impl.cc
@@ -95,12 +95,11 @@ ToolbarModel::SecurityLevel ToolbarModelImpl::GetSecurityLevelForWebContents(
}
// ToolbarModelImpl Implementation.
-string16 ToolbarModelImpl::GetText(bool allow_search_term_replacement) const {
- if (allow_search_term_replacement) {
- string16 search_terms(GetSearchTerms(false));
- if (!search_terms.empty())
- return search_terms;
- }
+string16 ToolbarModelImpl::GetText() const {
+ string16 search_terms(GetSearchTerms(false));
+ if (!search_terms.empty())
+ return search_terms;
+
std::string languages; // Empty if we don't have a |navigation_controller|.
Profile* profile = GetProfile();
if (profile)

Powered by Google App Engine
This is Rietveld 408576698