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

Unified Diff: chrome/browser/ntp_snippets/content_suggestions_service_factory.h

Issue 2342673004: Clear browsing data from ContentSuggestionService only if exists. (Closed)
Patch Set: Created 4 years, 3 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: chrome/browser/ntp_snippets/content_suggestions_service_factory.h
diff --git a/chrome/browser/ntp_snippets/content_suggestions_service_factory.h b/chrome/browser/ntp_snippets/content_suggestions_service_factory.h
index fdd7d763684a844f9097f3c6506b0eb1ddfcbe80..d0d50a05ceb265c398124e0e8bcd04ad3afa00dd 100644
--- a/chrome/browser/ntp_snippets/content_suggestions_service_factory.h
+++ b/chrome/browser/ntp_snippets/content_suggestions_service_factory.h
@@ -27,6 +27,8 @@ class ContentSuggestionsServiceFactory
static ContentSuggestionsServiceFactory* GetInstance();
static ntp_snippets::ContentSuggestionsService* GetForProfile(
Profile* profile);
+ static ntp_snippets::ContentSuggestionsService* GetForProfileIfExists(
+ Profile* profile);
private:
friend struct base::DefaultSingletonTraits<ContentSuggestionsServiceFactory>;

Powered by Google App Engine
This is Rietveld 408576698