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

Unified Diff: chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm

Issue 768413003: TEST ONLY - DO NOT SUBMIT - FOR TRYBOTS (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix bad merge Created 5 years, 11 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
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 0b1b39aa33e9b85c50c3a3b3910ed455dd36180e..b5d2516148364c7aaaf46386bdb28504c45ef163 100644
--- a/chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm
+++ b/chrome/browser/ui/cocoa/toolbar/toolbar_controller.mm
@@ -394,16 +394,7 @@ class NotificationBridge : public WrenchMenuBadgeController::Delegate {
- (void)focusLocationBar:(BOOL)selectAll {
if (locationBarView_.get()) {
- 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
- // the same functionality.
- locationBarView_->GetOmniboxView()->ShowURL();
- } else {
- locationBarView_->FocusLocation(selectAll ? true : false);
- }
+ locationBarView_->FocusLocation(selectAll ? true : false);
}
}
« no previous file with comments | « chrome/browser/ui/cocoa/omnibox/omnibox_view_mac_unittest.mm ('k') | chrome/browser/ui/location_bar/origin_chip_info.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698