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

Unified Diff: chrome/browser/android/ntp/ntp_snippets_bridge.cc

Issue 2205233002: Combine all suggestions factories into ContentSuggestionsServiceFactory (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Bernhard's comments Created 4 years, 4 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 | « no previous file | chrome/browser/android/ntp/offline_page_suggestions_provider_factory.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/android/ntp/ntp_snippets_bridge.cc
diff --git a/chrome/browser/android/ntp/ntp_snippets_bridge.cc b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
index aca4af1fd5f6f91659713cf5bd04969af858f998..d8e811030f1acb0636d68f9840332018438bf904 100644
--- a/chrome/browser/android/ntp/ntp_snippets_bridge.cc
+++ b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
@@ -13,7 +13,6 @@
#include "base/callback.h"
#include "chrome/browser/history/history_service_factory.h"
#include "chrome/browser/ntp_snippets/content_suggestions_service_factory.h"
-#include "chrome/browser/ntp_snippets/ntp_snippets_service_factory.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/profiles/profile_android.h"
#include "chrome/browser/profiles/profile_manager.h"
@@ -60,8 +59,9 @@ static void FetchSnippets(JNIEnv* env,
const JavaParamRef<jclass>& caller,
jboolean j_force_request) {
Profile* profile = ProfileManager::GetLastUsedProfile();
- NTPSnippetsServiceFactory::GetForProfile(profile)->FetchSnippets(
- j_force_request);
+ ContentSuggestionsServiceFactory::GetForProfile(profile)
+ ->ntp_snippets_service()
+ ->FetchSnippets(j_force_request);
}
// Reschedules the fetching of snippets. Used to support different fetching
@@ -69,7 +69,9 @@ static void FetchSnippets(JNIEnv* env,
static void RescheduleFetching(JNIEnv* env,
const JavaParamRef<jclass>& caller) {
Profile* profile = ProfileManager::GetLastUsedProfile();
- NTPSnippetsServiceFactory::GetForProfile(profile)->RescheduleFetching();
+ ContentSuggestionsServiceFactory::GetForProfile(profile)
+ ->ntp_snippets_service()
+ ->RescheduleFetching();
}
NTPSnippetsBridge::NTPSnippetsBridge(JNIEnv* env,
« no previous file with comments | « no previous file | chrome/browser/android/ntp/offline_page_suggestions_provider_factory.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698