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

Unified Diff: components/ntp_snippets/ntp_snippets_fetcher.h

Issue 2061803002: 📰 The Status card reports disabled sync states (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@simplifyBridge
Patch Set: Address comments Created 4 years, 6 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
Index: components/ntp_snippets/ntp_snippets_fetcher.h
diff --git a/components/ntp_snippets/ntp_snippets_fetcher.h b/components/ntp_snippets/ntp_snippets_fetcher.h
index d4e3b3720bdab6eae6719aa747bccb35f4c5b73a..c020e0d0f5359c9dbf44852100696c47e12e8f24 100644
--- a/components/ntp_snippets/ntp_snippets_fetcher.h
+++ b/components/ntp_snippets/ntp_snippets_fetcher.h
@@ -115,6 +115,10 @@ class NTPSnippetsFetcher : public OAuth2TokenService::Consumer,
tick_clock_ = std::move(tick_clock);
}
+ void SetPersonalizationForTesting(Personalization personalization) {
+ personalization_ = personalization;
+ }
+
private:
void FetchSnippetsImpl(const GURL& url,
const std::string& auth_header,

Powered by Google App Engine
This is Rietveld 408576698