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

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: Fix nits, rebase. 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 2872751720cb2e1d9edd682d1b0f04e072375bc1..6e062b03e593894aaaf11bcc879aff178580e7c8 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