Index: chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelBase.java |
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelBase.java b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelBase.java |
index 91c3bd15963290015e1f15a1899d78ede66c7d96..e6deaa663411b57c2e7c4fc8c20733ac219fc227 100644 |
--- a/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelBase.java |
+++ b/chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelBase.java |
@@ -506,7 +506,6 @@ abstract class ContextualSearchPanelBase extends ContextualSearchPanelStateHandl |
private float mPromoContentHeight; |
private boolean mShouldHidePromoHeader; |
- private static final float DEFAULT_PROMO_HEIGHT_DP = 250.f; |
/** |
* Sets the height of the promo content. |
@@ -517,11 +516,10 @@ abstract class ContextualSearchPanelBase extends ContextualSearchPanelStateHandl |
} |
/** |
- * Gets the height of the promo content. |
+ * Gets the height of the promo content, or -1 if height has not been calculated. |
*/ |
public float getPromoContentHeight() { |
- return mPromoContentHeight > 0.0f |
- ? mPromoContentHeight : DEFAULT_PROMO_HEIGHT_DP; |
+ return mPromoContentHeight > 0.0f ? mPromoContentHeight : -1.f; |
} |
/** |