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

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

Issue 2744253004: NTP: clang-format (Closed)
Patch Set: 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 e8e554cfd08dda415f0eba16973dfb4ec89d6a6c..9335756d180a7a5a94e7e60f5f98579f7e59f465 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();
}

Powered by Google App Engine
This is Rietveld 408576698