| Index: chrome/browser/ui/webui/popular_sites_internals_message_handler.cc
|
| diff --git a/chrome/browser/ui/webui/popular_sites_internals_message_handler.cc b/chrome/browser/ui/webui/popular_sites_internals_message_handler.cc
|
| index afb9019527ec1f0d679e816115421774c8470842..2b3455d033f8858969299b81a65804f68b7be20e 100644
|
| --- a/chrome/browser/ui/webui/popular_sites_internals_message_handler.cc
|
| +++ b/chrome/browser/ui/webui/popular_sites_internals_message_handler.cc
|
| @@ -61,10 +61,10 @@ void PopularSitesInternalsMessageHandler::HandleRegisterForEvents(
|
|
|
| Profile* profile = Profile::FromWebUI(web_ui());
|
| popular_sites_.reset(new PopularSites(
|
| - profile->GetPrefs(), TemplateURLServiceFactory::GetForProfile(profile),
|
| + content::BrowserThread::GetBlockingPool(), profile->GetPrefs(),
|
| + TemplateURLServiceFactory::GetForProfile(profile),
|
| g_browser_process->variations_service(), profile->GetRequestContext(),
|
| - ChromePopularSites::GetDirectory(), std::string(), std::string(),
|
| - false,
|
| + ChromePopularSites::GetDirectory(), std::string(), std::string(), false,
|
| base::Bind(&PopularSitesInternalsMessageHandler::OnPopularSitesAvailable,
|
| base::Unretained(this), false)));
|
| }
|
| @@ -97,13 +97,15 @@ void PopularSitesInternalsMessageHandler::HandleUpdate(
|
| args->GetString(0, &url);
|
| if (!url.empty()) {
|
| popular_sites_.reset(new PopularSites(
|
| - prefs, profile->GetRequestContext(), ChromePopularSites::GetDirectory(),
|
| + content::BrowserThread::GetBlockingPool(), prefs,
|
| + profile->GetRequestContext(), ChromePopularSites::GetDirectory(),
|
| url_formatter::FixupURL(url, std::string()), callback));
|
| return;
|
| }
|
|
|
| popular_sites_.reset(new PopularSites(
|
| - prefs, TemplateURLServiceFactory::GetForProfile(profile),
|
| + content::BrowserThread::GetBlockingPool(), prefs,
|
| + TemplateURLServiceFactory::GetForProfile(profile),
|
| g_browser_process->variations_service(), profile->GetRequestContext(),
|
| ChromePopularSites::GetDirectory(), std::string(), std::string(), true,
|
| callback));
|
|
|