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

Unified Diff: chrome/browser/policy/user_policy_signin_service_unittest.cc

Issue 11759019: Update other unittests to use newly added TestingBrowserProcess::GetGlobal(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: simpler codez Created 7 years, 12 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/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);

Powered by Google App Engine
This is Rietveld 408576698