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

Unified Diff: chrome/browser/chromeos/app_mode/kiosk_app_update_service_browsertest.cc

Issue 1119803007: [chrome/browser/chromeos] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Comments & removed fake_provided_file_system.cc due to cancelable_task_tracker dependeā€¦ 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 | « no previous file | chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/chromeos/app_mode/kiosk_app_update_service_browsertest.cc
diff --git a/chrome/browser/chromeos/app_mode/kiosk_app_update_service_browsertest.cc b/chrome/browser/chromeos/app_mode/kiosk_app_update_service_browsertest.cc
index 4e662135b7bee6e7e925833e6beacc9fe7acedb9..e9269264c6bd593d90d8148ce1e3809b1ed4e580 100644
--- a/chrome/browser/chromeos/app_mode/kiosk_app_update_service_browsertest.cc
+++ b/chrome/browser/chromeos/app_mode/kiosk_app_update_service_browsertest.cc
@@ -17,12 +17,12 @@
#include "base/location.h"
#include "base/memory/ref_counted.h"
#include "base/memory/scoped_ptr.h"
-#include "base/message_loop/message_loop_proxy.h"
#include "base/prefs/pref_service.h"
#include "base/run_loop.h"
#include "base/single_thread_task_runner.h"
#include "base/strings/string_number_conversions.h"
#include "base/test/scoped_path_override.h"
+#include "base/thread_task_runner_handle.h"
#include "base/threading/sequenced_worker_pool.h"
#include "base/time/time.h"
#include "chrome/browser/apps/app_browsertest_util.h"
@@ -103,10 +103,8 @@ class KioskAppUpdateServiceTest
// |SequenceToken| and waiting for it to finish.
worker_pool->PostSequencedWorkerTask(
worker_pool->GetNamedSequenceToken("automatic-reboot-manager"),
- FROM_HERE,
- base::Bind(&RunCallback,
- base::MessageLoopProxy::current(),
- run_loop.QuitClosure()));
+ FROM_HERE, base::Bind(&RunCallback, base::ThreadTaskRunnerHandle::Get(),
+ run_loop.QuitClosure()));
run_loop.Run();
// Ensure that the |automatic_reboot_manager_| has had a chance to fully
// process the result of the task posted to the blocking pool.
« no previous file with comments | « no previous file | chrome/browser/chromeos/file_system_provider/fileapi/buffering_file_stream_reader_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698