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

Unified Diff: chrome/browser/profiles/profile_manager_unittest.cc

Issue 11275088: Remove implicit scoped_refptr operator T* Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 8 years, 2 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/profiles/profile_manager_unittest.cc
diff --git a/chrome/browser/profiles/profile_manager_unittest.cc b/chrome/browser/profiles/profile_manager_unittest.cc
index 0104271f09d5bf3bc9be7e87212722867e463830..42fd467e652c51cf44f6d7958f258a7d8fbfd3d8 100644
--- a/chrome/browser/profiles/profile_manager_unittest.cc
+++ b/chrome/browser/profiles/profile_manager_unittest.cc
@@ -96,7 +96,7 @@ class ProfileManagerTest : public testing::Test {
db_thread_(BrowserThread::DB, &message_loop_),
file_thread_(BrowserThread::FILE, &message_loop_),
io_thread_(local_state_.Get(), NULL,
- extension_event_router_forwarder_) {
+ extension_event_router_forwarder_.get()) {
#if defined(OS_MACOSX)
base::SystemMonitor::AllocateSystemIOPorts();
#endif
@@ -215,14 +215,16 @@ TEST_F(ProfileManagerTest, CreateAndUseTwoProfiles) {
// Force lazy-init of some profile services to simulate use.
profile1->CreateHistoryService(true, false);
EXPECT_TRUE(HistoryServiceFactory::GetForProfile(profile1,
- Profile::EXPLICIT_ACCESS));
+ Profile::EXPLICIT_ACCESS).
+ get());
profile1->CreateBookmarkModel(true);
EXPECT_TRUE(BookmarkModelFactory::GetForProfile(profile1));
profile2->CreateBookmarkModel(true);
EXPECT_TRUE(BookmarkModelFactory::GetForProfile(profile2));
profile2->CreateHistoryService(true, false);
EXPECT_TRUE(HistoryServiceFactory::GetForProfile(profile2,
- Profile::EXPLICIT_ACCESS));
+ Profile::EXPLICIT_ACCESS).
+ get());
// Make sure any pending tasks run before we destroy the profiles.
message_loop_.RunAllPending();
« no previous file with comments | « chrome/browser/profiles/profile_io_data.cc ('k') | chrome/browser/renderer_host/chrome_render_message_filter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698