OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. |
2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
3 // found in the LICENSE entry. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "chrome/browser/sync/engine/syncer_end_command.h" | 5 #include "chrome/browser/sync/engine/syncer_end_command.h" |
6 | 6 |
7 #include "chrome/browser/sync/engine/syncer_types.h" | 7 #include "chrome/browser/sync/engine/syncer_types.h" |
8 #include "chrome/browser/sync/sessions/sync_session.h" | 8 #include "chrome/browser/sync/sessions/sync_session.h" |
9 #include "chrome/browser/sync/syncable/directory_manager.h" | 9 #include "chrome/browser/sync/syncable/directory_manager.h" |
10 #include "chrome/browser/sync/util/event_sys-inl.h" | 10 #include "chrome/browser/sync/util/event_sys-inl.h" |
11 | 11 |
12 namespace browser_sync { | 12 namespace browser_sync { |
13 | 13 |
(...skipping 19 matching lines...) Expand all Loading... |
33 dir->set_initial_sync_ended(true); | 33 dir->set_initial_sync_ended(true); |
34 } | 34 } |
35 | 35 |
36 SyncerEvent event(SyncerEvent::SYNC_CYCLE_ENDED); | 36 SyncerEvent event(SyncerEvent::SYNC_CYCLE_ENDED); |
37 sessions::SyncSessionSnapshot snapshot(session->TakeSnapshot()); | 37 sessions::SyncSessionSnapshot snapshot(session->TakeSnapshot()); |
38 event.snapshot = &snapshot; | 38 event.snapshot = &snapshot; |
39 session->context()->syncer_event_channel()->NotifyListeners(event); | 39 session->context()->syncer_event_channel()->NotifyListeners(event); |
40 } | 40 } |
41 | 41 |
42 } // namespace browser_sync | 42 } // namespace browser_sync |
OLD | NEW |