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

Unified Diff: chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm

Issue 181383017: [OriginChip, OSX] Hide on focus is switchable (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Now with proper formatting. Created 6 years, 10 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/cocoa/omnibox/omnibox_view_mac.mm
diff --git a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
index 1777998887526adcc8cceccf1b949b828f4d40ce..cd0e9f1f1baab24817ae84c140a5e20f7c084d10 100644
--- a/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
+++ b/chrome/browser/ui/cocoa/omnibox/omnibox_view_mac.mm
@@ -775,7 +775,8 @@ void OmniboxViewMac::OnSetFocus(bool control_down) {
model()->OnSetFocus(control_down);
controller()->OnSetFocus();
- if (chrome::ShouldDisplayOriginChipV2()) {
+ if (chrome::GetOriginChipV2HideTrigger() ==
+ chrome::ORIGIN_CHIP_V2_HIDE_ON_MOUSE_RELEASE) {
controller()->GetToolbarModel()->set_origin_chip_enabled(false);
controller()->OnChanged();
}
« 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