| 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 76487bacf535c51c1d5912d7b0e76e43217bf8dd..f1bdbb092dac21c0982dce7be1ea919cf3e20499 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
|
| @@ -28,17 +28,8 @@ public class SearchActivityLocationBarLayout extends LocationBarLayout {
|
| private Delegate mDelegate;
|
|
|
| public SearchActivityLocationBarLayout(Context context, AttributeSet attrs) {
|
| - super(context, attrs);
|
| + super(context, attrs, R.layout.location_bar_base);
|
| setUrlBarFocusable(true);
|
| -
|
| - // TODO(dfalcantara): Get rid of any possibility of inflating the G in a layout.
|
| - View gContainer = findViewById(R.id.google_g_container);
|
| - if (gContainer != null) gContainer.setVisibility(View.GONE);
|
| -
|
| - // TODO(dfalcantara): Find the correct way to do this.
|
| - int spacingLarge =
|
| - getResources().getDimensionPixelSize(R.dimen.contextual_search_peek_promo_padding);
|
| - setPadding(spacingLarge, 0, spacingLarge, 0);
|
| }
|
|
|
| /** Set the {@link Delegate}. */
|
| @@ -88,6 +79,13 @@ public class SearchActivityLocationBarLayout extends LocationBarLayout {
|
| }
|
| }
|
|
|
| + @Override
|
| + protected void updateButtonVisibility() {
|
| + super.updateButtonVisibility();
|
| + updateMicButtonVisibility(1.0f);
|
| + findViewById(R.id.url_action_container).setVisibility(View.VISIBLE);
|
| + }
|
| +
|
| private void focusTextBox() {
|
| if (mNativeInitialized) onUrlFocusChange(true);
|
|
|
|
|