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

Unified Diff: components/ntp_snippets/remote/ntp_snippets_fetcher.h

Issue 2568033005: [NTP::SectionOrder] Replace CategoryFactory with a category ranker. (Closed)
Patch Set: download provider tests. Created 4 years 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/remote/ntp_snippets_fetcher.h
diff --git a/components/ntp_snippets/remote/ntp_snippets_fetcher.h b/components/ntp_snippets/remote/ntp_snippets_fetcher.h
index f3befcb8bac97b043b1201737dfb3e19947cecf1..240028a416fe6b265ec17990507d308f0e229910 100644
--- a/components/ntp_snippets/remote/ntp_snippets_fetcher.h
+++ b/components/ntp_snippets/remote/ntp_snippets_fetcher.h
@@ -138,7 +138,6 @@ class NTPSnippetsFetcher : public OAuth2TokenService::Consumer,
OAuth2TokenService* token_service,
scoped_refptr<net::URLRequestContextGetter> url_request_context_getter,
PrefService* pref_service,
- CategoryFactory* category_factory,
translate::LanguageModel* language_model,
const ParseJSONCallback& parse_json_callback,
const std::string& api_key,
@@ -328,8 +327,7 @@ class NTPSnippetsFetcher : public OAuth2TokenService::Consumer,
std::queue<std::pair<RequestBuilder, SnippetsAvailableCallback>>
pending_requests_;
- // Weak references, not owned.
- CategoryFactory* const category_factory_;
+ // Weak reference, not owned.
translate::LanguageModel* const language_model_;
const ParseJSONCallback parse_json_callback_;

Powered by Google App Engine
This is Rietveld 408576698