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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/compositor/bottombar/contextualsearch/ContextualSearchPanelBase.java

Issue 1403813003: [Contextual Search] Fixes ContentView regressions. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: fix Created 5 years, 2 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
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 b8f4752311e47d9457431dbe61e083e50c185679..f3f8b95a1bd5d1d17688bc646a80f077d2902bf2 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
@@ -269,7 +269,7 @@ abstract class ContextualSearchPanelBase implements ContextualSearchPromoHost {
* Event notification that the Panel did get closed.
* @param reason The reason the panel is closing.
*/
- protected abstract void onClose(StateChangeReason reason);
+ protected abstract void onClosed(StateChangeReason reason);
/**
* @return The height of the Peek Promo in the peeked state, in pixels.
@@ -823,8 +823,7 @@ abstract class ContextualSearchPanelBase implements ContextualSearchPromoHost {
if (state == PanelState.CLOSED) {
mIsShowing = false;
- destroyPromoView();
- onClose(reason);
+ onClosed(reason);
} else if (state == PanelState.EXPANDED && isFullscreenSizePanel()
|| (state == PanelState.MAXIMIZED && !isFullscreenSizePanel())) {
showPromoViewAtYPosition(getPromoYPx());

Powered by Google App Engine
This is Rietveld 408576698