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

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

Issue 1939873002: Get rid of pre-focus call which was used for URL fading only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@2704
Patch Set: Created 4 years, 8 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 | no next file » | 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/LocationBarLayout.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
index 330c3e8859fcc28d1fc054ac4033e70c2b7deee2..df31b2800324fb5b68c20607766e7b427bb8c7c8 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/omnibox/LocationBarLayout.java
@@ -825,11 +825,7 @@ public class LocationBarLayout extends FrameLayout implements OnClickListener,
@Override
public void onUrlPreFocusChanged(boolean gainFocus) {
- if (mToolbarDataProvider == null || mToolbarDataProvider.getTab() == null) return;
-
- if (!mQueryInTheOmnibox && !TextUtils.isEmpty(mUrlBar.getText())) {
- mUrlBar.setUrl(getOnlineUrlFromTab(), null);
- }
+ // TODO(mariakhomenko): remove from the interface entirely as it's unused
}
@Override
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698