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

Unified Diff: chrome/browser/ui/omnibox/omnibox_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: 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
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_view.h ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/omnibox/omnibox_view.cc
diff --git a/chrome/browser/ui/omnibox/omnibox_view.cc b/chrome/browser/ui/omnibox/omnibox_view.cc
index 79cafa012fd94d696091d6f8c4f791739164478a..a9dbbebd9cec1f86dc59ce19332c58f2b4de6441 100644
--- a/chrome/browser/ui/omnibox/omnibox_view.cc
+++ b/chrome/browser/ui/omnibox/omnibox_view.cc
@@ -115,6 +115,14 @@ void OmniboxView::SetUserText(const base::string16& text,
true);
}
+void OmniboxView::ShowURL() {
+ SetFocus();
+ controller_->GetToolbarModel()->set_url_replacement_enabled(false);
+ model_->UpdatePermanentText();
+ RevertWithoutResettingSearchTermReplacement();
+ SelectAll(true);
+}
+
void OmniboxView::RevertAll() {
controller_->GetToolbarModel()->set_url_replacement_enabled(true);
RevertWithoutResettingSearchTermReplacement();
@@ -160,10 +168,3 @@ void OmniboxView::TextChanged() {
if (model_.get())
model_->OnChanged();
}
-
-void OmniboxView::ShowURL() {
- controller_->GetToolbarModel()->set_url_replacement_enabled(false);
- model_->UpdatePermanentText();
- RevertWithoutResettingSearchTermReplacement();
- SelectAll(true);
-}
« no previous file with comments | « chrome/browser/ui/omnibox/omnibox_view.h ('k') | chrome/browser/ui/views/frame/browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698