Chromium Code Reviews| 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( |