| Index: chrome/browser/extensions/api/image_writer_private/operation_manager.cc
|
| diff --git a/chrome/browser/extensions/api/image_writer_private/operation_manager.cc b/chrome/browser/extensions/api/image_writer_private/operation_manager.cc
|
| index 327c99c7f73ef623796cb8d887e8e7b117192350..a62d5004e7c59527fef580793a3625b3dd16d50e 100644
|
| --- a/chrome/browser/extensions/api/image_writer_private/operation_manager.cc
|
| +++ b/chrome/browser/extensions/api/image_writer_private/operation_manager.cc
|
| @@ -19,7 +19,6 @@
|
| #include "chrome/browser/profiles/profile.h"
|
| #include "content/public/browser/browser_thread.h"
|
| #include "content/public/browser/notification_service.h"
|
| -#include "content/public/browser/storage_partition.h"
|
| #include "extensions/browser/event_router.h"
|
| #include "extensions/browser/extension_host.h"
|
| #include "extensions/browser/extension_registry.h"
|
| @@ -80,14 +79,13 @@
|
| return callback.Run(false, error::kOperationAlreadyInProgress);
|
| }
|
|
|
| - scoped_refptr<Operation> operation(new WriteFromUrlOperation(
|
| - weak_factory_.GetWeakPtr(),
|
| - extension_id,
|
| - content::BrowserContext::GetDefaultStoragePartition(browser_context_)->
|
| - GetURLRequestContext(),
|
| - url,
|
| - hash,
|
| - device_path));
|
| + scoped_refptr<Operation> operation(
|
| + new WriteFromUrlOperation(weak_factory_.GetWeakPtr(),
|
| + extension_id,
|
| + browser_context_->GetRequestContext(),
|
| + url,
|
| + hash,
|
| + device_path));
|
| operations_[extension_id] = operation;
|
| BrowserThread::PostTask(BrowserThread::FILE,
|
| FROM_HERE,
|
|
|