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

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

Issue 2744253004: NTP: clang-format (Closed)
Patch Set: rebase Created 3 years, 9 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
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();
}
« no previous file with comments | « chrome/browser/android/ntp/ntp_snippets_bridge.h ('k') | chrome/browser/android/ntp/ntp_snippets_launcher.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698