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

Unified Diff: components/omnibox/browser/omnibox_view.cc

Issue 2256613002: Remove ShowURL/HideURL from OmniboxView and LocationBarView (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_search_terms
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
« no previous file with comments | « components/omnibox/browser/omnibox_view.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/omnibox/browser/omnibox_view.cc
diff --git a/components/omnibox/browser/omnibox_view.cc b/components/omnibox/browser/omnibox_view.cc
index c92730f03337167fa96512a737b685be95034197..ab062677182c790717b90860959396593e13833f 100644
--- a/components/omnibox/browser/omnibox_view.cc
+++ b/components/omnibox/browser/omnibox_view.cc
@@ -112,20 +112,6 @@ void OmniboxView::SetUserText(const base::string16& text,
SetWindowTextAndCaretPos(text, text.length(), update_popup, true);
}
-void OmniboxView::ShowURL() {
- SetFocus();
- controller_->GetToolbarModel()->set_url_replacement_enabled(false);
Peter Kasting 2016/08/18 08:32:19 This was the only place outside tests that set thi
Marc Treib 2016/08/18 09:10:38 Ah, I hadn't noticed that yet, thanks! Next CL inc
- model_->UpdatePermanentText();
- RevertWithoutResettingSearchTermReplacement();
- SelectAll(true);
-}
-
-void OmniboxView::HideURL() {
- controller_->GetToolbarModel()->set_url_replacement_enabled(true);
- model_->UpdatePermanentText();
- RevertWithoutResettingSearchTermReplacement();
-}
-
void OmniboxView::RevertAll() {
controller_->GetToolbarModel()->set_url_replacement_enabled(true);
RevertWithoutResettingSearchTermReplacement();
« no previous file with comments | « components/omnibox/browser/omnibox_view.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698