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

Unified Diff: chrome/browser/ui/cocoa/cocoa_profile_test.mm

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/ui/cocoa/cocoa_profile_test.mm
diff --git a/chrome/browser/ui/cocoa/cocoa_profile_test.mm b/chrome/browser/ui/cocoa/cocoa_profile_test.mm
index f236bccbfdcb7a5131593ed060b8bfc45f8a8aa4..de09de8a7c2dce5c4c920863b25fa1cabee5ee1b 100644
--- a/chrome/browser/ui/cocoa/cocoa_profile_test.mm
+++ b/chrome/browser/ui/cocoa/cocoa_profile_test.mm
@@ -17,7 +17,7 @@ using content::BrowserThread;
CocoaProfileTest::CocoaProfileTest()
: ui_thread_(BrowserThread::UI, &message_loop_),
- profile_manager_(static_cast<TestingBrowserProcess*>(g_browser_process)),
+ profile_manager_(TestingBrowserProcess::GetGlobal()),
profile_(NULL),
file_user_blocking_thread_(new content::TestBrowserThread(
BrowserThread::FILE_USER_BLOCKING, &message_loop_)),
@@ -37,7 +37,7 @@ CocoaProfileTest::~CocoaProfileTest() {
// thread. If the scoper in TestingBrowserProcess, owned by ChromeTestSuite,
// were to delete the ProfileManager, the UI thread would at that point no
// longer exist.
- static_cast<TestingBrowserProcess*>(g_browser_process)->SetProfileManager(
+ TestingBrowserProcess::GetGlobal()->SetProfileManager(
NULL);
// Make sure any pending tasks run before we destroy other threads.

Powered by Google App Engine
This is Rietveld 408576698