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

Unified Diff: chrome/browser/ui/bookmarks/bookmark_prompt_controller_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/ui/bookmarks/bookmark_prompt_controller_unittest.cc
diff --git a/chrome/browser/ui/bookmarks/bookmark_prompt_controller_unittest.cc b/chrome/browser/ui/bookmarks/bookmark_prompt_controller_unittest.cc
index 3b9bcd961a3d1dc9fec05ec004d6b1aeb8eaa539..350fe1a1de80a8d741b7fa6843b590bf7b7afc90 100644
--- a/chrome/browser/ui/bookmarks/bookmark_prompt_controller_unittest.cc
+++ b/chrome/browser/ui/bookmarks/bookmark_prompt_controller_unittest.cc
@@ -62,7 +62,7 @@ class BookmarkPromptControllerTest : public BrowserWithTestWindowTest {
virtual void SetUp() OVERRIDE {
set_window(new MyTestBrowserWindow);
- static_cast<TestingBrowserProcess*>(g_browser_process)->
+ TestingBrowserProcess::GetGlobal()->
SetBookmarkPromptController(new BookmarkPromptController);
BrowserWithTestWindowTest::SetUp();
static_cast<TestingProfile*>(browser()->profile())->
@@ -74,7 +74,7 @@ class BookmarkPromptControllerTest : public BrowserWithTestWindowTest {
}
virtual void TearDown() OVERRIDE {
- static_cast<TestingBrowserProcess*>(g_browser_process)->
+ TestingBrowserProcess::GetGlobal()->
SetBookmarkPromptController(NULL);
static_cast<TestingProfile*>(browser()->profile())->
DestroyHistoryService();
« no previous file with comments | « chrome/browser/signin/signin_names_io_thread_unittest.cc ('k') | chrome/browser/ui/browser_command_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698