Chromium Code Reviews| OLD | NEW |
|---|---|
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/ntp_snippets/ntp_snippets_service_factory.h" | 5 #include "chrome/browser/ntp_snippets/ntp_snippets_service_factory.h" |
| 6 | 6 |
| 7 #include "base/feature_list.h" | 7 #include "base/feature_list.h" |
| 8 #include "base/files/file_path.h" | 8 #include "base/files/file_path.h" |
| 9 #include "base/memory/ptr_util.h" | 9 #include "base/memory/ptr_util.h" |
| 10 #include "base/memory/singleton.h" | 10 #include "base/memory/singleton.h" |
| (...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
| 126 signin_manager, token_service, request_context, | 126 signin_manager, token_service, request_context, |
| 127 profile->GetPrefs(), | 127 profile->GetPrefs(), |
| 128 base::Bind(&safe_json::SafeJsonParser::Parse), | 128 base::Bind(&safe_json::SafeJsonParser::Parse), |
| 129 chrome::GetChannel() == version_info::Channel::STABLE), | 129 chrome::GetChannel() == version_info::Channel::STABLE), |
| 130 base::MakeUnique<ImageFetcherImpl>( | 130 base::MakeUnique<ImageFetcherImpl>( |
| 131 base::MakeUnique<ImageDecoderImpl>(), request_context.get()), | 131 base::MakeUnique<ImageDecoderImpl>(), request_context.get()), |
| 132 base::MakeUnique<ImageDecoderImpl>(), | 132 base::MakeUnique<ImageDecoderImpl>(), |
| 133 base::MakeUnique<ntp_snippets::NTPSnippetsDatabase>(database_dir, | 133 base::MakeUnique<ntp_snippets::NTPSnippetsDatabase>(database_dir, |
| 134 task_runner), | 134 task_runner), |
| 135 base::MakeUnique<ntp_snippets::NTPSnippetsStatusService>( | 135 base::MakeUnique<ntp_snippets::NTPSnippetsStatusService>( |
| 136 signin_manager, sync_service, profile->GetPrefs())); | 136 signin_manager, sync_service, profile->GetPrefs()), |
| 137 content_suggestions_service->category_factory()); | |
|
Marc Treib
2016/07/28 11:41:45
misaligned
Philipp Keck
2016/07/28 13:50:53
That's what the formatter does and I believe it's
Marc Treib
2016/07/28 14:31:16
Ah true, I missed a paren.
This ctor has WAY too m
| |
| 137 | 138 |
| 138 if (content_suggestions_service->state() == | 139 if (content_suggestions_service->state() == |
| 139 ContentSuggestionsService::State::ENABLED) { | 140 ContentSuggestionsService::State::ENABLED) { |
| 140 content_suggestions_service->RegisterProvider(ntp_snippets_service); | 141 content_suggestions_service->RegisterProvider(ntp_snippets_service); |
| 141 } | 142 } |
| 142 return ntp_snippets_service; | 143 return ntp_snippets_service; |
| 143 } | 144 } |
| OLD | NEW |