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

Unified Diff: chrome/browser/sync/test/integration/sessions_helper.cc

Issue 74653002: sync: Add --enable-sync-sessions-v2 and necessary plumbing to use SessionsSyncManager. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: review Created 7 years, 1 month 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/sync/test/integration/sessions_helper.cc
diff --git a/chrome/browser/sync/test/integration/sessions_helper.cc b/chrome/browser/sync/test/integration/sessions_helper.cc
index fa90917599a093825010293b324fbf099f466083..c315a694c4601ba376dcddd63a6961d3d1b19631 100644
--- a/chrome/browser/sync/test/integration/sessions_helper.cc
+++ b/chrome/browser/sync/test/integration/sessions_helper.cc
@@ -51,8 +51,8 @@ void ScopedWindowMap::Reset(SessionWindowMap* windows) {
bool GetLocalSession(int index, const browser_sync::SyncedSession** session) {
return ProfileSyncServiceFactory::GetInstance()->GetForProfile(
- test()->GetProfile(index))->GetSessionModelAssociator()->GetLocalSession(
- session);
+ test()->GetProfile(index))->GetSessionModelAssociatorDeprecated()->
+ GetLocalSession(session);
}
bool ModelAssociatorHasTabWithUrl(int index, const GURL& url) {
@@ -136,7 +136,7 @@ bool WaitForTabsToLoad(int index, const std::vector<GURL>& urls) {
}
if (!found) {
ProfileSyncServiceFactory::GetInstance()->GetForProfile(
- test()->GetProfile(index))->GetSessionModelAssociator()->
+ test()->GetProfile(index))->GetSessionModelAssociatorDeprecated()->
BlockUntilLocalChangeForTest(TestTimeouts::action_max_timeout());
content::RunMessageLoop();
}
@@ -200,16 +200,20 @@ int GetNumForeignSessions(int index) {
SyncedSessionVector sessions;
if (!ProfileSyncServiceFactory::GetInstance()->GetForProfile(
test()->GetProfile(index))->
- GetSessionModelAssociator()->GetAllForeignSessions(&sessions))
+ GetSessionModelAssociatorDeprecated()->GetAllForeignSessions(
+ &sessions)) {
return 0;
+ }
return sessions.size();
}
bool GetSessionData(int index, SyncedSessionVector* sessions) {
if (!ProfileSyncServiceFactory::GetInstance()->GetForProfile(
test()->GetProfile(index))->
- GetSessionModelAssociator()->GetAllForeignSessions(sessions))
+ GetSessionModelAssociatorDeprecated()->GetAllForeignSessions(
+ sessions)) {
return false;
+ }
SortSyncedSessions(sessions);
return true;
}
@@ -313,7 +317,7 @@ bool CheckForeignSessionsAgainst(
void DeleteForeignSession(int index, std::string session_tag) {
ProfileSyncServiceFactory::GetInstance()->GetForProfile(
test()->GetProfile(index))->
- GetSessionModelAssociator()->DeleteForeignSession(session_tag);
+ GetSessionModelAssociatorDeprecated()->DeleteForeignSession(session_tag);
}
} // namespace sessions_helper

Powered by Google App Engine
This is Rietveld 408576698