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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivityLocationBarLayout.java

Issue 2799343005: 🔍 Switch to using the generic LocationBarLayout (Closed)
Patch Set: Created 3 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/searchwidget/SearchActivityLocationBarLayout.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivityLocationBarLayout.java b/chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivityLocationBarLayout.java
index 42ae712890faa58ffed024ce22fbd24e87eb648f..6d6ab8d335dd799cf935250f904b48512bcbf1c8 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivityLocationBarLayout.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/searchwidget/SearchActivityLocationBarLayout.java
@@ -10,10 +10,9 @@ import android.view.View;
import org.chromium.chrome.R;
import org.chromium.chrome.browser.omnibox.LocationBarLayout;
-import org.chromium.chrome.browser.omnibox.LocationBarPhone;
/** Implementation of the {@link LocationBarLayout} that is displayed for widget searches. */
-public class SearchActivityLocationBarLayout extends LocationBarPhone {
+public class SearchActivityLocationBarLayout extends LocationBarLayout {
/** Delegates calls out to the containing Activity. */
public static interface Delegate {
/** Load a URL in the associated tab. */
@@ -27,7 +26,8 @@ public class SearchActivityLocationBarLayout extends LocationBarPhone {
public SearchActivityLocationBarLayout(Context context, AttributeSet attrs) {
super(context, attrs);
- findViewById(R.id.google_g_container).setVisibility(View.GONE);
+ View gContainer = findViewById(R.id.google_g_container);
+ if (gContainer != null) gContainer.setVisibility(View.GONE);
}
/** Set the {@link Delegate}. */
« 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