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

Unified Diff: chrome/browser/ntp_tiles/chrome_popular_sites_factory.cc

Issue 2946143002: Remove legacy popular sites cache cleaning (Closed)
Patch Set: Remove unused imports Created 3 years, 6 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
« no previous file with comments | « no previous file | components/ntp_tiles/most_visited_sites_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ntp_tiles/chrome_popular_sites_factory.cc
diff --git a/chrome/browser/ntp_tiles/chrome_popular_sites_factory.cc b/chrome/browser/ntp_tiles/chrome_popular_sites_factory.cc
index 7edc4727bbdd9f93dc13e0c8b151d50ba6bb6090..0368cd6418cafbf678b43157c880b40d4ba9f87c 100644
--- a/chrome/browser/ntp_tiles/chrome_popular_sites_factory.cc
+++ b/chrome/browser/ntp_tiles/chrome_popular_sites_factory.cc
@@ -6,23 +6,17 @@
#include "base/bind.h"
#include "base/memory/ptr_util.h"
-#include "base/path_service.h"
-#include "base/threading/sequenced_worker_pool.h"
#include "chrome/browser/browser_process.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/search_engines/template_url_service_factory.h"
-#include "chrome/common/chrome_paths.h"
#include "components/ntp_tiles/popular_sites_impl.h"
#include "components/safe_json/safe_json_parser.h"
#include "content/public/browser/browser_thread.h"
std::unique_ptr<ntp_tiles::PopularSites>
ChromePopularSitesFactory::NewForProfile(Profile* profile) {
- base::FilePath directory; // remains empty if PathService::Get() fails.
- PathService::Get(chrome::DIR_USER_DATA, &directory);
return base::MakeUnique<ntp_tiles::PopularSitesImpl>(
- content::BrowserThread::GetBlockingPool(), profile->GetPrefs(),
- TemplateURLServiceFactory::GetForProfile(profile),
+ profile->GetPrefs(), TemplateURLServiceFactory::GetForProfile(profile),
g_browser_process->variations_service(), profile->GetRequestContext(),
- directory, base::Bind(safe_json::SafeJsonParser::Parse));
+ base::Bind(safe_json::SafeJsonParser::Parse));
}
« no previous file with comments | « no previous file | components/ntp_tiles/most_visited_sites_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698