Index: chrome/browser/ui/omnibox/omnibox_view.cc |
diff --git a/chrome/browser/ui/omnibox/omnibox_view.cc b/chrome/browser/ui/omnibox/omnibox_view.cc |
index f41f4f50e437dafc257ca446076a2349f3a76a69..983a59e60314f513d66f96cdf7e1a574a7aef565 100644 |
--- a/chrome/browser/ui/omnibox/omnibox_view.cc |
+++ b/chrome/browser/ui/omnibox/omnibox_view.cc |
@@ -88,20 +88,15 @@ OmniboxView::~OmniboxView() { |
} |
void OmniboxView::HandleOriginChipMouseRelease() { |
- // HIDE_ON_MOUSE_RELEASE only hides if there isn't any current text in the |
- // Omnibox (e.g. search terms). |
- if ((chrome::GetOriginChipV2Condition() == |
- chrome::ORIGIN_CHIP_V2_HIDE_ON_MOUSE_RELEASE) && |
- controller()->GetToolbarModel()->GetText().empty()) { |
+ // Only hide if there isn't any current text in the Omnibox (e.g. search |
+ // terms). |
+ if (controller()->GetToolbarModel()->GetText().empty()) |
controller()->HideOriginChip(); |
- } |
} |
void OmniboxView::OnDidKillFocus() { |
- if (chrome::ShouldDisplayOriginChipV2() && |
- !model()->user_input_in_progress()) { |
+ if (chrome::ShouldDisplayOriginChip() && !model()->user_input_in_progress()) |
controller()->ShowOriginChip(); |
- } |
} |
void OmniboxView::OpenMatch(const AutocompleteMatch& match, |