| 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 c22b563dee7cc1091ed21cff1b90558e5738d360..b03d0488a29a2bf0a8e1aa985bea6066d9d68813 100644
|
| --- a/components/ntp_snippets/ntp_snippets_service.cc
|
| +++ b/components/ntp_snippets/ntp_snippets_service.cc
|
| @@ -254,6 +254,11 @@ void NTPSnippetsService::OnJsonError(const std::string& snippets_json,
|
|
|
| void NTPSnippetsService::FetchSnippetsImpl(
|
| const std::vector<std::string>& hosts) {
|
| + if (base::CommandLine::ForCurrentProcess()->HasSwitch(
|
| + switches::kDontRestrict)) {
|
| + snippets_fetcher_->FetchSnippets(std::vector<std::string>());
|
| + return;
|
| + }
|
| if (!hosts.empty())
|
| snippets_fetcher_->FetchSnippets(hosts);
|
| }
|
|
|