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

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

Issue 2568033005: [NTP::SectionOrder] Replace CategoryFactory with a category ranker. (Closed)
Patch Set: rebase. 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 40da2f820e093dabb4156d6c34d4a35a6711049c..c97035c6db53b7ca9519cc86111af0afc9308618 100644
--- a/components/ntp_snippets/remote/ntp_snippets_fetcher.h
+++ b/components/ntp_snippets/remote/ntp_snippets_fetcher.h
@@ -136,7 +136,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,
@@ -326,8 +325,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