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

Unified Diff: components/toolbar/toolbar_model_impl.h

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: Mac 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
Index: components/toolbar/toolbar_model_impl.h
diff --git a/components/toolbar/toolbar_model_impl.h b/components/toolbar/toolbar_model_impl.h
index 4b823f6324bfc1f009173fe7fac866d22c08d897..45f098909e9426e5174e5c358a23afa4e4f31eab 100644
--- a/components/toolbar/toolbar_model_impl.h
+++ b/components/toolbar/toolbar_model_impl.h
@@ -17,10 +17,6 @@
class ToolbarModelDelegate;
-namespace net {
-class X509Certificate;
-}
-
// This class is the model used by the toolbar, location bar and autocomplete
// edit. It populates its states from the current navigation entry retrieved
// from the navigation controller returned by GetNavigationController().
@@ -35,7 +31,6 @@ class ToolbarModelImpl : public ToolbarModel {
base::string16 GetText() const override;
base::string16 GetFormattedURL(size_t* prefix_end) const override;
GURL GetURL() const override;
- bool WouldPerformSearchTermReplacement(bool ignore_editing) const override;
security_state::SecurityStateModel::SecurityLevel GetSecurityLevel(
bool ignore_editing) const override;
int GetIcon() const override;
@@ -43,12 +38,6 @@ class ToolbarModelImpl : public ToolbarModel {
base::string16 GetEVCertName() const override;
bool ShouldDisplayURL() const override;
- // Returns search terms as in search::GetSearchTerms() if such terms should
- // appear in the omnibox (i.e. the page is sufficiently secure, search term
- // replacement is enabled, editing is not in progress, etc.). If
- // |ignore_editing| is true, the "editing not in progress" check is skipped.
- base::string16 GetSearchTerms(bool ignore_editing) const;
-
ToolbarModelDelegate* delegate_;
const size_t max_url_display_chars_;

Powered by Google App Engine
This is Rietveld 408576698