| Index: chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm
|
| diff --git a/chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm b/chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm
|
| index 023442911e33bb7a21c26e776514320dee668f48..d1580aa7f1b40f888066d95fe846ac415c461470 100644
|
| --- a/chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm
|
| +++ b/chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm
|
| @@ -399,7 +399,8 @@ class NotificationBridge
|
|
|
| - (void)focusLocationBar:(BOOL)selectAll {
|
| if (locationBarView_.get()) {
|
| - if (chrome::ShouldDisplayOriginChip() && selectAll) {
|
| + if (selectAll &&
|
| + locationBarView_->GetToolbarModel()->WouldOmitURLDueToOriginChip()) {
|
| // select_all is true when it's expected that the user may want to copy
|
| // the URL to the clipboard. If the origin chip is being displayed (and
|
| // thus the URL is not being shown in the Omnibox) show it now to support
|
|
|