| 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 928aaf08e45d460d14fff063195a882bd396d054..8780ce17bf3e28519f63be87d16d7e4db5ad1583 100644
|
| --- a/chrome/browser/android/ntp/ntp_snippets_bridge.cc
|
| +++ b/chrome/browser/android/ntp/ntp_snippets_bridge.cc
|
| @@ -164,9 +164,8 @@ NTPSnippetsBridge::NTPSnippetsBridge(JNIEnv* env,
|
| Profile* profile = ProfileAndroid::FromProfileAndroid(j_profile);
|
| content_suggestions_service_ =
|
| ContentSuggestionsServiceFactory::GetForProfile(profile);
|
| - history_service_ =
|
| - HistoryServiceFactory::GetForProfile(profile,
|
| - ServiceAccessType::EXPLICIT_ACCESS);
|
| + history_service_ = HistoryServiceFactory::GetForProfile(
|
| + profile, ServiceAccessType::EXPLICIT_ACCESS);
|
| content_suggestions_service_observer_.Add(content_suggestions_service_);
|
| }
|
|
|
| @@ -243,15 +242,16 @@ void NTPSnippetsBridge::Fetch(
|
|
|
| Category category = Category::FromIDValue(j_category_id);
|
| content_suggestions_service_->Fetch(
|
| - category, std::set<std::string>(known_suggestion_ids.begin(),
|
| - known_suggestion_ids.end()),
|
| + category,
|
| + std::set<std::string>(known_suggestion_ids.begin(),
|
| + known_suggestion_ids.end()),
|
| base::Bind(&NTPSnippetsBridge::OnSuggestionsFetched,
|
| weak_ptr_factory_.GetWeakPtr(), category));
|
| }
|
|
|
| void NTPSnippetsBridge::ReloadSuggestions(
|
| - JNIEnv* env,
|
| - const base::android::JavaParamRef<jobject>& obj) {
|
| + JNIEnv* env,
|
| + const base::android::JavaParamRef<jobject>& obj) {
|
| content_suggestions_service_->ReloadSuggestions();
|
| }
|
|
|
|
|