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

Unified Diff: components/ntp_snippets/ntp_snippets_service.h

Issue 1978513002: Getting the personalization info in chrome://snippets-internals correct. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: After code review #2 Created 4 years, 7 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 | « components/ntp_snippets/ntp_snippets_fetcher.cc ('k') | components/ntp_snippets/ntp_snippets_service.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/ntp_snippets/ntp_snippets_service.h
diff --git a/components/ntp_snippets/ntp_snippets_service.h b/components/ntp_snippets/ntp_snippets_service.h
index e5aba948ca57a5f6701015caefbccbf0ef1916fa..ed7b50d6319c8a97adae9607ef24bfa131c88f26 100644
--- a/components/ntp_snippets/ntp_snippets_service.h
+++ b/components/ntp_snippets/ntp_snippets_service.h
@@ -85,14 +85,8 @@ class NTPSnippetsService : public KeyedService {
return discarded_snippets_;
}
- // Returns the last status message from the snippets fetcher.
- const std::string& last_status() const {
- return snippets_fetcher_->last_status();
- }
-
- // Returns the last json from the snippets fetcher.
- const std::string& last_json() const {
- return snippets_fetcher_->last_json();
+ const NTPSnippetsFetcher* snippets_fetcher() const {
+ return snippets_fetcher_.get();
}
// (Re)schedules the periodic fetching of snippets. This is necessary because
« no previous file with comments | « components/ntp_snippets/ntp_snippets_fetcher.cc ('k') | components/ntp_snippets/ntp_snippets_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698