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

Unified Diff: chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm

Issue 768413003: TEST ONLY - DO NOT SUBMIT - FOR TRYBOTS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years 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/cocoa/location_bar/location_icon_decoration.mm
diff --git a/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm b/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
index 85c6907c30189afd323a53fe9016ea5e21676aab..4c55cf84e0ada5c5f9815694262ac57dbabc1ba3 100644
--- a/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
+++ b/chrome/browser/ui/cocoa/location_bar/location_icon_decoration.mm
@@ -102,13 +102,8 @@ bool LocationIconDecoration::OnMousePressed(NSRect frame, NSPoint location) {
// bubble.
// Do not show page info if the user has been editing the location
- // bar, or the location bar is at the NTP. However, if the origin chip is
- // enabled, the omnibox will be empty by default, so the page info should be
- // shown in those cases as well.
- if (chrome::ShouldDisplayOriginChip() ?
- (owner_->GetOmniboxView()->model() &&
- owner_->GetOmniboxView()->model()->user_input_in_progress()) :
- owner_->GetOmniboxView()->IsEditingOrEmpty())
+ // bar, or the location bar is at the NTP.
+ if (owner_->GetOmniboxView()->IsEditingOrEmpty())
return true;
WebContents* tab = owner_->GetWebContents();

Powered by Google App Engine
This is Rietveld 408576698