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

Unified Diff: chrome/test/live_sync/live_sessions_sync_test.cc

Issue 6901031: Profile shouldn't own Session/TabRestore services. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase again and hope upload works this time Created 9 years, 8 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
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/test/testing_profile.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/test/live_sync/live_sessions_sync_test.cc
diff --git a/chrome/test/live_sync/live_sessions_sync_test.cc b/chrome/test/live_sync/live_sessions_sync_test.cc
index 82b1caa7ae432a893e04aa5fb489f73e6c2c7d44..4b1045d8da3974778050674095d3c020b53ace05 100644
--- a/chrome/test/live_sync/live_sessions_sync_test.cc
+++ b/chrome/test/live_sync/live_sessions_sync_test.cc
@@ -6,6 +6,7 @@
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/sessions/session_service.h"
+#include "chrome/browser/sessions/session_service_factory.h"
#include "chrome/browser/sync/profile_sync_service.h"
#include "chrome/browser/sync/glue/session_model_associator.h"
#include "chrome/test/ui_test_utils.h"
@@ -104,7 +105,7 @@ LiveSessionsSyncTest::LiveSessionsSyncTest(TestType test_type)
LiveSessionsSyncTest::~LiveSessionsSyncTest() {}
SessionService* LiveSessionsSyncTest::GetSessionService(int index) {
- return GetProfile(index)->GetSessionService();
+ return SessionServiceFactory::GetForProfile(GetProfile(index));
}
TestSessionService* LiveSessionsSyncTest::GetHelper(int index) {
« no previous file with comments | « chrome/chrome_browser.gypi ('k') | chrome/test/testing_profile.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698