Commit a9a51c15 authored by Devlin Cronin's avatar Devlin Cronin Committed by Commit Bot

[Task Migration][Extensions] Update ExtensionDownloader

Update the ExtensionDownloader class to use the new task scheduling API,
as well as the dedicated Extensions-related file task runner.

Bug: 689520
Bug: 750122

Change-Id: I201adece7ae5d5f7a24f535faa86958d4fcff632
Reviewed-on: https://chromium-review.googlesource.com/594833Reviewed-by: default avatarKaran Bhatia <karandeepb@chromium.org>
Commit-Queue: Devlin <rdevlin.cronin@chromium.org>
Cr-Commit-Position: refs/heads/master@{#491522}
parent 1737b40c
......@@ -22,9 +22,9 @@
#include "base/time/time.h"
#include "base/version.h"
#include "components/update_client/update_query_params.h"
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/notification_details.h"
#include "content/public/browser/notification_service.h"
#include "extensions/browser/extension_file_task_runner.h"
#include "extensions/browser/extensions_browser_client.h"
#include "extensions/browser/notification_types.h"
#include "extensions/browser/updater/extension_cache.h"
......@@ -46,7 +46,6 @@
using base::Time;
using base::TimeDelta;
using content::BrowserThread;
using update_client::UpdateQueryParams;
namespace extensions {
......@@ -858,7 +857,7 @@ void ExtensionDownloader::CreateExtensionFetcher() {
// processed in memory, so it is fetched into a string.
if (fetch->id != kBlacklistAppID) {
extension_fetcher_->SaveResponseToTemporaryFile(
BrowserThread::GetTaskRunnerForThread(BrowserThread::FILE));
GetExtensionFileTaskRunner());
}
if (fetch->credentials == ExtensionFetch::CREDENTIALS_OAUTH2_TOKEN &&
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment