Index: chrome/browser/sessions/session_service_factory.h |
diff --git a/chrome/browser/sessions/session_service_factory.h b/chrome/browser/sessions/session_service_factory.h |
index 2c73d5725bf074f5f24d6a992fee0079f9f10808..c0db39ca9da87cc58ab5fffd1169430b69a43364 100644 |
--- a/chrome/browser/sessions/session_service_factory.h |
+++ b/chrome/browser/sessions/session_service_factory.h |
@@ -44,10 +44,11 @@ class SessionServiceFactory : public BrowserContextKeyedServiceFactory { |
#if defined(UNIT_TEST) |
// For test use: force setting of the session service for a given profile. |
// This will delete a previous session service for this profile if it exists. |
- static void SetForTestProfile(Profile* profile, SessionService* service) { |
+ static void SetForTestProfile(Profile* profile, |
+ scoped_ptr<SessionService> service) { |
GetInstance()->BrowserContextShutdown(profile); |
GetInstance()->BrowserContextDestroyed(profile); |
- GetInstance()->Associate(profile, service); |
+ GetInstance()->Associate(profile, service.Pass()); |
} |
#endif |