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

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

Issue 348713004: Use a TestBrowserThreadBundle in the DeviceSettingsTestBase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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_manager_chromeos_unittest.cc
diff --git a/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc b/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc
index 1ad3778519c1cddfc11871649e5a24a0b2fa52f5..1dfedb5adc51480cc583dd7d2d38cb6b5406e599 100644
--- a/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc
+++ b/chrome/browser/chromeos/policy/device_cloud_policy_manager_chromeos_unittest.cc
@@ -69,7 +69,7 @@ class DeviceCloudPolicyManagerChromeOSTest
protected:
DeviceCloudPolicyManagerChromeOSTest()
: state_keys_broker_(&fake_session_manager_client_,
- loop_.message_loop_proxy()),
+ base::MessageLoopProxy::current()),
store_(NULL) {
EXPECT_CALL(mock_statistics_provider_,
GetMachineStatistic(_, _))
@@ -97,13 +97,14 @@ class DeviceCloudPolicyManagerChromeOSTest
// DBusThreadManager is set up in DeviceSettingsTestBase::SetUp().
install_attributes_.reset(new EnterpriseInstallAttributes(
chromeos::DBusThreadManager::Get()->GetCryptohomeClient()));
- store_ = new DeviceCloudPolicyStoreChromeOS(&device_settings_service_,
- install_attributes_.get(),
- loop_.message_loop_proxy());
+ store_ =
+ new DeviceCloudPolicyStoreChromeOS(&device_settings_service_,
+ install_attributes_.get(),
+ base::MessageLoopProxy::current());
manager_.reset(new DeviceCloudPolicyManagerChromeOS(
make_scoped_ptr(store_),
- loop_.message_loop_proxy(),
- loop_.message_loop_proxy(),
+ base::MessageLoopProxy::current(),
+ base::MessageLoopProxy::current(),
install_attributes_.get(),
&state_keys_broker_));
@@ -114,7 +115,7 @@ class DeviceCloudPolicyManagerChromeOSTest
// OAuth tokens, then writes the token to local state, encrypting it
// first with methods in CryptohomeTokenEncryptor.
request_context_getter_ = new net::TestURLRequestContextGetter(
- loop_.message_loop_proxy());
+ base::MessageLoopProxy::current());
TestingBrowserProcess::GetGlobal()->SetSystemRequestContext(
request_context_getter_.get());
TestingBrowserProcess::GetGlobal()->SetLocalState(&local_state_);

Powered by Google App Engine
This is Rietveld 408576698