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

Unified Diff: extensions/browser/sandboxed_unpacker_unittest.cc

Issue 1120793007: [extensions] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Dependency over component module by removing file Created 5 years, 7 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 | « extensions/browser/api/declarative/declarative_api.cc ('k') | extensions/common/one_shot_event.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/browser/sandboxed_unpacker_unittest.cc
diff --git a/extensions/browser/sandboxed_unpacker_unittest.cc b/extensions/browser/sandboxed_unpacker_unittest.cc
index f85d41dd247d10e692c1a3117621f3471f4989f1..02fceaf6806b4f3dc68b14d344db89e3cc6a50d8 100644
--- a/extensions/browser/sandboxed_unpacker_unittest.cc
+++ b/extensions/browser/sandboxed_unpacker_unittest.cc
@@ -6,10 +6,10 @@
#include "base/command_line.h"
#include "base/files/file_util.h"
#include "base/memory/ref_counted.h"
-#include "base/message_loop/message_loop.h"
#include "base/path_service.h"
#include "base/run_loop.h"
#include "base/strings/string_util.h"
+#include "base/thread_task_runner_handle.h"
#include "base/values.h"
#include "content/public/test/test_browser_thread_bundle.h"
#include "content/public/test/test_utils.h"
@@ -89,9 +89,9 @@ class SandboxedUnpackerTest : public ExtensionsTest {
sandboxed_unpacker_ = new SandboxedUnpacker(
extensions::CRXFileInfo(std::string(), original_path, package_hash),
Manifest::INTERNAL, Extension::NO_FLAGS, extensions_dir_.path(),
- base::MessageLoopProxy::current(), client_);
+ base::ThreadTaskRunnerHandle::Get(), client_);
- base::MessageLoopProxy::current()->PostTask(
+ base::ThreadTaskRunnerHandle::Get()->PostTask(
FROM_HERE,
base::Bind(&SandboxedUnpacker::Start, sandboxed_unpacker_.get()));
client_->WaitForUnpack();
« no previous file with comments | « extensions/browser/api/declarative/declarative_api.cc ('k') | extensions/common/one_shot_event.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698