| Index: components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
|
| diff --git a/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc b/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
|
| index 978deb7c5431ba1b2d20c6e0e9cbd237d67abfef..9afd1fb244848c16fb0a14e62f07d9408b5887bd 100644
|
| --- a/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
|
| +++ b/components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc
|
| @@ -28,7 +28,9 @@ PhysicalWebPageSuggestionsProvider::PhysicalWebPageSuggestionsProvider(
|
| : ContentSuggestionsProvider(observer, category_factory),
|
| category_status_(CategoryStatus::AVAILABLE_LOADING),
|
| provided_category_(category_factory->FromKnownCategory(
|
| - KnownCategories::PHYSICAL_WEB_PAGES)) {}
|
| + KnownCategories::PHYSICAL_WEB_PAGES)) {
|
| + observer->OnCategoryStatusChanged(this, provided_category_, category_status_);
|
| +}
|
|
|
| PhysicalWebPageSuggestionsProvider::~PhysicalWebPageSuggestionsProvider() {}
|
|
|
| @@ -55,11 +57,6 @@ void PhysicalWebPageSuggestionsProvider::OnDisplayableUrlsChanged(
|
| std::move(suggestions));
|
| }
|
|
|
| -std::vector<Category>
|
| -PhysicalWebPageSuggestionsProvider::GetProvidedCategories() {
|
| - return std::vector<Category>({provided_category_});
|
| -}
|
| -
|
| CategoryStatus PhysicalWebPageSuggestionsProvider::GetCategoryStatus(
|
| Category category) {
|
| return category_status_;
|
|
|