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

Unified Diff: chrome/browser/chromeos/drive/job_scheduler_unittest.cc

Issue 1124813003: [chrome/browser/chromeos/drive] Avoid use of MessageLoopProxy by use of TTRH (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: chrome/browser/chromeos/drive/job_scheduler_unittest.cc
diff --git a/chrome/browser/chromeos/drive/job_scheduler_unittest.cc b/chrome/browser/chromeos/drive/job_scheduler_unittest.cc
index dd8070fd8edae0dac3721c24b2c98ab559387a19..37d9a252abd0979488134f802107c03686f99c64 100644
--- a/chrome/browser/chromeos/drive/job_scheduler_unittest.cc
+++ b/chrome/browser/chromeos/drive/job_scheduler_unittest.cc
@@ -11,8 +11,10 @@
#include "base/files/scoped_temp_dir.h"
#include "base/prefs/testing_pref_service.h"
#include "base/run_loop.h"
+#include "base/single_thread_task_runner.h"
#include "base/stl_util.h"
#include "base/strings/stringprintf.h"
+#include "base/thread_task_runner_handle.h"
#include "chrome/browser/chromeos/drive/test_util.h"
#include "chrome/browser/drive/event_logger.h"
#include "chrome/browser/drive/fake_drive_service.h"
@@ -142,10 +144,9 @@ class JobSchedulerTest : public testing::Test {
test_util::SetUpTestEntries(fake_drive_service_.get());
fake_drive_service_->LoadAppListForDriveApi("drive/applist.json");
- scheduler_.reset(new JobScheduler(pref_service_.get(),
- logger_.get(),
+ scheduler_.reset(new JobScheduler(pref_service_.get(), logger_.get(),
fake_drive_service_.get(),
- base::MessageLoopProxy::current().get()));
+ base::ThreadTaskRunnerHandle::Get()));
scheduler_->SetDisableThrottling(true);
}

Powered by Google App Engine
This is Rietveld 408576698