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

Unified Diff: components/ntp_snippets/physical_web_pages/physical_web_page_suggestions_provider.cc

Issue 2765713002: Associate a scan mode with Physical Web listeners (Closed)
Patch Set: Use key as parame to erase() Created 3 years, 9 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 | « no previous file | components/physical_web/data_source/fake_physical_web_data_source.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 3f32e9e453f0e8c8cc32a5ff1d8cd4c3ce5f590c..5398b22d65cf5e36eec8c2b99d5574a68736294c 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
@@ -98,7 +98,8 @@ PhysicalWebPageSuggestionsProvider::PhysicalWebPageSuggestionsProvider(
physical_web_data_source_(physical_web_data_source),
pref_service_(pref_service) {
observer->OnCategoryStatusChanged(this, provided_category_, category_status_);
- physical_web_data_source_->RegisterListener(this);
+ physical_web_data_source_->RegisterListener(this,
+ physical_web::BACKGROUND_INTERMITTENT);
// TODO(vitaliii): Rewrite initial fetch once crbug.com/667754 is resolved.
FetchPhysicalWebPages();
}
« no previous file with comments | « no previous file | components/physical_web/data_source/fake_physical_web_data_source.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698