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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarPhone.java

Issue 2672513002: [Android] Scroll to the TLD in the omnibox for http sites. (Closed)
Patch Set: Created 3 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
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/omnibox/UrlBar.java » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarPhone.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarPhone.java b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarPhone.java
index 5006857d0ce1749243c51ae4c33fd1ac6c211af4..537b86952c94dad1ec386b8ac36955390d32b4d4 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarPhone.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarPhone.java
@@ -214,7 +214,9 @@ public class LocationBarPhone extends LocationBarLayout {
// by a command line intent)
// 3.) Simultaneously moving one of the selection handles left and right. This will
// occasionally throw an AssertionError on the bounds of the selection.
- Selection.setSelection(mUrlBar.getText(), 0);
+ if (!mUrlBar.scrollToTLD()) {
+ Selection.setSelection(mUrlBar.getText(), 0);
+ }
// The animation rendering may not yet be 100% complete and hiding the keyboard makes
// the animation quite choppy.
« no previous file with comments | « no previous file | chrome/android/java/src/org/chromium/chrome/browser/omnibox/UrlBar.java » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698