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

Unified Diff: components/toolbar/test_toolbar_model.cc

Issue 2232863002: Remove search::GetSearchTerms since it always returns empty string (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_query_extract
Patch Set: Android Created 4 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 | « components/toolbar/test_toolbar_model.h ('k') | components/toolbar/toolbar_model.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/toolbar/test_toolbar_model.cc
diff --git a/components/toolbar/test_toolbar_model.cc b/components/toolbar/test_toolbar_model.cc
index 6ad5b94d501cdbeb46baaae3191c8f24c020cd0a..0dda07cff3e300a62b264a7a8506314eda6e6a1c 100644
--- a/components/toolbar/test_toolbar_model.cc
+++ b/components/toolbar/test_toolbar_model.cc
@@ -8,8 +8,7 @@
#include "ui/gfx/vector_icons_public.h"
TestToolbarModel::TestToolbarModel()
- : perform_search_term_replacement_(false),
- security_level_(security_state::SecurityStateModel::NONE),
+ : security_level_(security_state::SecurityStateModel::NONE),
#if defined(TOOLKIT_VIEWS)
icon_(gfx::VectorIconId::LOCATION_BAR_HTTP),
#else
@@ -20,10 +19,6 @@ TestToolbarModel::TestToolbarModel()
TestToolbarModel::~TestToolbarModel() {}
-base::string16 TestToolbarModel::GetText() const {
- return text_;
-}
-
base::string16 TestToolbarModel::GetFormattedURL(size_t* prefix_end) const {
return text_;
}
@@ -32,11 +27,6 @@ GURL TestToolbarModel::GetURL() const {
return url_;
}
-bool TestToolbarModel::WouldPerformSearchTermReplacement(
- bool ignore_editing) const {
- return perform_search_term_replacement_;
-}
-
security_state::SecurityStateModel::SecurityLevel
TestToolbarModel::GetSecurityLevel(bool ignore_editing) const {
return security_level_;
« no previous file with comments | « components/toolbar/test_toolbar_model.h ('k') | components/toolbar/toolbar_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698