Index: chrome/browser/policy/user_policy_signin_service_unittest.cc |
diff --git a/chrome/browser/policy/user_policy_signin_service_unittest.cc b/chrome/browser/policy/user_policy_signin_service_unittest.cc |
index 878c2b8ef68ef8a0b5a0f76235745b895a15efed..8a310f01d310a64cc1679c3f92c72af54a522e4a 100644 |
--- a/chrome/browser/policy/user_policy_signin_service_unittest.cc |
+++ b/chrome/browser/policy/user_policy_signin_service_unittest.cc |
@@ -77,7 +77,7 @@ class UserPolicySigninServiceTest : public testing::Test { |
local_state_.reset(new TestingPrefServiceSimple); |
chrome::RegisterLocalState(local_state_.get()); |
- static_cast<TestingBrowserProcess*>(g_browser_process)->SetLocalState( |
+ TestingBrowserProcess::GetGlobal()->SetLocalState( |
local_state_.get()); |
// Create a testing profile with cloud-policy-on-signin enabled, and bring |
@@ -110,7 +110,7 @@ class UserPolicySigninServiceTest : public testing::Test { |
// Free the profile before we clear out the browser prefs. |
profile_.reset(); |
TestingBrowserProcess* testing_browser_process = |
- static_cast<TestingBrowserProcess*>(g_browser_process); |
+ TestingBrowserProcess::GetGlobal(); |
testing_browser_process->SetLocalState(NULL); |
local_state_.reset(); |
testing_browser_process->SetBrowserPolicyConnector(NULL); |