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

Side by Side Diff: chrome/browser/ntp_tiles/chrome_popular_sites_factory.cc

Issue 2691263002: Revert of Remove header dependencies from sequence_checker.h to sequenced_worker_pool.h (Closed)
Patch Set: Created 3 years, 10 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 unified diff | Download patch
OLDNEW
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_tiles/chrome_popular_sites_factory.h" 5 #include "chrome/browser/ntp_tiles/chrome_popular_sites_factory.h"
6 6
7 #include "base/bind.h" 7 #include "base/bind.h"
8 #include "base/memory/ptr_util.h" 8 #include "base/memory/ptr_util.h"
9 #include "base/path_service.h" 9 #include "base/path_service.h"
10 #include "base/threading/sequenced_worker_pool.h"
11 #include "chrome/browser/browser_process.h" 10 #include "chrome/browser/browser_process.h"
12 #include "chrome/browser/profiles/profile.h" 11 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/search_engines/template_url_service_factory.h" 12 #include "chrome/browser/search_engines/template_url_service_factory.h"
14 #include "chrome/common/chrome_paths.h" 13 #include "chrome/common/chrome_paths.h"
15 #include "components/ntp_tiles/popular_sites_impl.h" 14 #include "components/ntp_tiles/popular_sites_impl.h"
16 #include "components/safe_json/safe_json_parser.h" 15 #include "components/safe_json/safe_json_parser.h"
17 #include "content/public/browser/browser_thread.h" 16 #include "content/public/browser/browser_thread.h"
18 17
19 std::unique_ptr<ntp_tiles::PopularSites> 18 std::unique_ptr<ntp_tiles::PopularSites>
20 ChromePopularSitesFactory::NewForProfile(Profile* profile) { 19 ChromePopularSitesFactory::NewForProfile(Profile* profile) {
21 base::FilePath directory; // remains empty if PathService::Get() fails. 20 base::FilePath directory; // remains empty if PathService::Get() fails.
22 PathService::Get(chrome::DIR_USER_DATA, &directory); 21 PathService::Get(chrome::DIR_USER_DATA, &directory);
23 return base::MakeUnique<ntp_tiles::PopularSitesImpl>( 22 return base::MakeUnique<ntp_tiles::PopularSitesImpl>(
24 content::BrowserThread::GetBlockingPool(), profile->GetPrefs(), 23 content::BrowserThread::GetBlockingPool(), profile->GetPrefs(),
25 TemplateURLServiceFactory::GetForProfile(profile), 24 TemplateURLServiceFactory::GetForProfile(profile),
26 g_browser_process->variations_service(), profile->GetRequestContext(), 25 g_browser_process->variations_service(), profile->GetRequestContext(),
27 directory, base::Bind(safe_json::SafeJsonParser::Parse)); 26 directory, base::Bind(safe_json::SafeJsonParser::Parse));
28 } 27 }
OLDNEW
« no previous file with comments | « chrome/browser/ntp_snippets/content_suggestions_service_factory.cc ('k') | chrome/browser/platform_util_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698