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

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

Issue 1933453002: Get rid of pre-focus call which was used for URL fading only. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
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 90880e3df335983c743732a1ea3f3cd3a7a3ca16..ff129170b5c8638717c70ff01290b86fa211988b 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
@@ -820,11 +820,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