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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheet.java

Issue 2844993003: [Home] Remove BottomSheetObservers that are no longer used (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 | « chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetContent.java ('k') | 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/widget/bottomsheet/BottomSheet.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheet.java b/chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheet.java
index ede7e626e835e6cc31653b71692edf5e9def8100..3c7903a433ff7db45546e914aa3b0e0ff3268ba5 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheet.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/widget/bottomsheet/BottomSheet.java
@@ -1060,6 +1060,14 @@ public class BottomSheet
}
/**
+ * Removes an observer to the bottom sheet.
+ * @param observer The observer to remove.
+ */
+ public void removeObserver(BottomSheetObserver observer) {
+ mObservers.removeObserver(observer);
+ }
+
+ /**
* Gets the target state of the sheet based on the sheet's height and velocity.
* @param sheetHeight The current height of the sheet.
* @param yVelocity The current Y velocity of the sheet. This is only used for determining the
« no previous file with comments | « chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetContent.java ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698