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

Unified Diff: chrome/browser/sync/test/integration/performance/sessions_sync_perf_test.cc

Issue 7966020: [Sync] Fix Session's handling of windows. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Comments Created 9 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/sync/test/integration/performance/sessions_sync_perf_test.cc
diff --git a/chrome/browser/sync/test/integration/performance/sessions_sync_perf_test.cc b/chrome/browser/sync/test/integration/performance/sessions_sync_perf_test.cc
index 8b3e79bd6486d481f3199269897b49d641aa8256..4081065f60e848f399bb5dd122799ed6fc155c28 100644
--- a/chrome/browser/sync/test/integration/performance/sessions_sync_perf_test.cc
+++ b/chrome/browser/sync/test/integration/performance/sessions_sync_perf_test.cc
@@ -12,6 +12,8 @@
using sessions_helper::GetLocalSession;
using sessions_helper::GetSessionData;
using sessions_helper::OpenMultipleTabs;
+using sessions_helper::SyncedSessionVector;
+using sessions_helper::SessionWindowMap;
using sessions_helper::WaitForTabsToLoad;
static const int kNumTabs = 150;
@@ -89,10 +91,10 @@ int SessionsSyncPerfTest::GetTabCount(int profile) {
sessions.push_back(local_session);
for (SyncedSessionVector::const_iterator it = sessions.begin();
it != sessions.end(); ++it) {
- for (SessionWindowVector::const_iterator win_it = (*it)->windows.begin();
+ for (SessionWindowMap::const_iterator win_it = (*it)->windows.begin();
win_it != (*it)->windows.end();
++win_it) {
- tab_count += (*win_it)->tabs.size();
+ tab_count += win_it->second->tabs.size();
}
}
return tab_count;

Powered by Google App Engine
This is Rietveld 408576698