| Index: components/ntp_snippets/ntp_snippets_service.cc
|
| diff --git a/components/ntp_snippets/ntp_snippets_service.cc b/components/ntp_snippets/ntp_snippets_service.cc
|
| index 02524508ceca77bf9620436e54bc6604c47ab25e..589a77772989ac62adddaccf66b641814c92dc84 100644
|
| --- a/components/ntp_snippets/ntp_snippets_service.cc
|
| +++ b/components/ntp_snippets/ntp_snippets_service.cc
|
| @@ -186,7 +186,7 @@ void NTPSnippetsService::Init(bool enabled) {
|
| enabled_ = enabled;
|
| if (enabled_) {
|
| // |suggestions_service_| can be null in tests.
|
| - if (suggestions_service_) {
|
| + if (snippets_fetcher_->UseHostRestriction() && suggestions_service_) {
|
| suggestions_service_subscription_ = suggestions_service_->AddCallback(
|
| base::Bind(&NTPSnippetsService::OnSuggestionsChanged,
|
| base::Unretained(this)));
|
|
|