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

Unified Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.cc

Issue 2242213008: Remove url_replacement logic from Omnibox/ToolbarModel (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_show_url
Patch Set: 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: chrome/browser/ui/views/omnibox/omnibox_view_views.cc
diff --git a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
index 7242a028688e09527a1199c4da22838ae539bafd..2665f48000ad186ec7717560bad38607c8ac7c97 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -233,10 +233,6 @@ void OmniboxViewViews::Update() {
security_level_;
UpdateSecurityLevel();
if (model()->UpdatePermanentText()) {
- // Something visibly changed. Re-enable URL replacement.
- controller()->GetToolbarModel()->set_url_replacement_enabled(true);
- model()->UpdatePermanentText();
-
// Select all the new text if the user had all the old text selected, or if
// there was no previous text (for new tab page URL replacement extensions).
// This makes one particular case better: the user clicks in the box to

Powered by Google App Engine
This is Rietveld 408576698