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

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

Issue 290623002: [OriginChip] Re-enable the chip if the text changes during an Update(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 088bab5048d99f63cb04e88d36f0639d81db7063..a676b1c1447ed33939e68f6b028f83b4093c1ecd 100644
--- a/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
+++ b/chrome/browser/ui/views/omnibox/omnibox_view_views.cc
@@ -229,6 +229,7 @@ void OmniboxViewViews::Update() {
if (model()->UpdatePermanentText()) {
// Something visibly changed. Re-enable URL replacement.
controller()->GetToolbarModel()->set_url_replacement_enabled(true);
+ controller()->GetToolbarModel()->set_origin_chip_enabled(true);
model()->UpdatePermanentText();
// Select all the new text if the user had all the old text selected, or if
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698