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

Unified Diff: chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetContent.java

Issue 2806153005: Notify the remote suggestions scheduler when pulling up the Chrome Home sheet. (Closed)
Patch Set: add bug 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
Index: chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetContent.java
diff --git a/chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetContent.java b/chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetContent.java
index 30c67d0db37c07fca935b934cba221dc8a44a84e..5eaba600bbd10e921d3e9f5aa1f417e1246ec1e9 100644
--- a/chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetContent.java
+++ b/chrome/android/java/src/org/chromium/chrome/browser/suggestions/SuggestionsBottomSheetContent.java
@@ -75,15 +75,18 @@ public class SuggestionsBottomSheetContent implements BottomSheet.BottomSheetCon
mContextMenuManager, mTileGroupDelegate);
mRecyclerView.init(uiConfig, mContextMenuManager, adapter);
+ final SuggestionsSource suggestionsSource = mSuggestionsManager.getSuggestionsSource();
activity.getBottomSheet().addObserver(new EmptyBottomSheetObserver() {
@Override
public void onSheetOpened() {
// TODO(https://crbug.com/689962) Ensure this call does not discard all suggestions
// every time the sheet is opened.
adapter.refreshSuggestions();
+ suggestionsSource.onNtpInitialized();
}
});
adapter.refreshSuggestions();
+ suggestionsSource.onNtpInitialized();
jkrcal 2017/04/11 05:29:43 Does this line mean that the signal is sent also i
mShadowView = (FadingShadowView) mView.findViewById(R.id.shadow);
mShadowView.init(

Powered by Google App Engine
This is Rietveld 408576698