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

Unified Diff: components/sync_sessions/session_data_type_controller.cc

Issue 2712743006: Reland v5 of Sessions Refactor (Closed)
Patch Set: Fix typo Created 3 years, 10 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: components/sync_sessions/session_data_type_controller.cc
diff --git a/components/sync_sessions/session_data_type_controller.cc b/components/sync_sessions/session_data_type_controller.cc
index 07705c3c1a26ff0e8eb3f44e1fda12188afb00e7..4ec2abc5aa2762dd191bfb0bfd6d8cbb62f6703c 100644
--- a/components/sync_sessions/session_data_type_controller.cc
+++ b/components/sync_sessions/session_data_type_controller.cc
@@ -44,11 +44,10 @@ bool SessionDataTypeController::StartModels() {
DCHECK(CalledOnValidThread());
SyncedWindowDelegatesGetter* synced_window_getter =
sync_client_->GetSyncSessionsClient()->GetSyncedWindowDelegatesGetter();
- std::set<const SyncedWindowDelegate*> window =
+ SyncedWindowDelegatesGetter::SyncedWindowDelegateMap windows =
synced_window_getter->GetSyncedWindowDelegates();
- for (std::set<const SyncedWindowDelegate*>::const_iterator i = window.begin();
- i != window.end(); ++i) {
- if ((*i)->IsSessionRestoreInProgress()) {
+ for (const auto& window_iter_pair : windows) {
+ if (window_iter_pair.second->IsSessionRestoreInProgress()) {
waiting_on_session_restore_ = true;
break;
}
« no previous file with comments | « components/sync/protocol/session_specifics.proto ('k') | components/sync_sessions/session_data_type_controller_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698