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

Unified Diff: chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc

Issue 1118773004: [chrome/browser/chromeos/policy] Replace MessageLoopProxy usage with ThreadTaskRunnerHandle (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed Review Comments->2 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/policy/device_cloud_policy_store_chromeos_unittest.cc
diff --git a/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc b/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc
index 024217c218a4060dc3de8f90259a6222ed63baee..7f4fab476178560e4806684f74662b433a851ba0 100644
--- a/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc
+++ b/chrome/browser/chromeos/policy/device_cloud_policy_store_chromeos_unittest.cc
@@ -10,8 +10,8 @@
#include "base/basictypes.h"
#include "base/compiler_specific.h"
#include "base/memory/scoped_ptr.h"
-#include "base/message_loop/message_loop_proxy.h"
#include "base/run_loop.h"
+#include "base/thread_task_runner_handle.h"
#include "chrome/browser/chromeos/policy/enterprise_install_attributes.h"
#include "chrome/browser/chromeos/policy/proto/chrome_device_policy.pb.h"
#include "chrome/browser/chromeos/settings/device_settings_test_helper.h"
@@ -52,8 +52,7 @@ class DeviceCloudPolicyStoreChromeOSTest
store_(new DeviceCloudPolicyStoreChromeOS(
&device_settings_service_,
install_attributes_.get(),
- base::MessageLoopProxy::current())) {
- }
+ base::ThreadTaskRunnerHandle::Get())) {}
void SetUp() override {
DeviceSettingsTestBase::SetUp();
@@ -135,10 +134,9 @@ class DeviceCloudPolicyStoreChromeOSTest
std::string());
install_attributes_.reset(
new EnterpriseInstallAttributes(fake_cryptohome_client_));
- store_.reset(
- new DeviceCloudPolicyStoreChromeOS(&device_settings_service_,
- install_attributes_.get(),
- base::MessageLoopProxy::current()));
+ store_.reset(new DeviceCloudPolicyStoreChromeOS(
+ &device_settings_service_, install_attributes_.get(),
+ base::ThreadTaskRunnerHandle::Get()));
}
ScopedTestingLocalState local_state_;

Powered by Google App Engine
This is Rietveld 408576698