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

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: Created 5 years, 8 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
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..1fe346134611984c3b3f3e30644cf1c4f761c964 100644
--- a/extensions/browser/sandboxed_unpacker_unittest.cc
+++ b/extensions/browser/sandboxed_unpacker_unittest.cc
@@ -10,6 +10,7 @@
#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 +90,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();

Powered by Google App Engine
This is Rietveld 408576698