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

Unified Diff: chrome/browser/ui/views/frame/browser_view.cc

Issue 111873004: [OriginChip] Show and select the URL on alt-d/ctrl-l. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: All files this time. Created 7 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/views/frame/browser_view.cc
diff --git a/chrome/browser/ui/views/frame/browser_view.cc b/chrome/browser/ui/views/frame/browser_view.cc
index 614912143d273fc68672fa3752c4b488d8c4dad5..8e2d46ad78bd4d05dea0039393dbfa9754925255 100644
--- a/chrome/browser/ui/views/frame/browser_view.cc
+++ b/chrome/browser/ui/views/frame/browser_view.cc
@@ -1050,7 +1050,10 @@ void BrowserView::SetFocusToLocationBar(bool select_all) {
LocationBarView* location_bar = GetLocationBarView();
if (location_bar->omnibox_view()->IsFocusable()) {
// Location bar got focus.
- location_bar->FocusLocation(select_all);
+ if (chrome::ShouldDisplayOriginChip())
+ location_bar->omnibox_view()->ShowURL();
+ else
+ location_bar->FocusLocation(select_all);
} else {
// If none of location bar got focus, then clear focus.
views::FocusManager* focus_manager = GetFocusManager();

Powered by Google App Engine
This is Rietveld 408576698