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

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: rebase Created 4 years, 3 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 b28def07e37abcb05b22fc45046d3db12cde6e3f..406fffa2d05fcd2b9f0a2ec2aafef66606f3b632 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
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_view_browsertest.cc ('k') | components/omnibox/browser/omnibox_edit_model.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698