OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 file. | 3 // found in the LICENSE file. |
4 | 4 |
5 #include "components/sync/core_impl/test/sync_manager_for_profile_sync_test.h" | 5 #include "components/sync/core_impl/test/sync_manager_for_profile_sync_test.h" |
6 | 6 |
7 #include "components/sync/core/test/test_user_share.h" | 7 #include "components/sync/core/test/test_user_share.h" |
8 #include "components/sync/core/user_share.h" | 8 #include "components/sync/core/user_share.h" |
9 #include "components/sync/syncable/directory.h" | 9 #include "components/sync/syncable/directory.h" |
10 | 10 |
(...skipping 12 matching lines...) Expand all Loading... |
23 | 23 |
24 if (!init_callback_.is_null()) | 24 if (!init_callback_.is_null()) |
25 init_callback_.Run(); | 25 init_callback_.Run(); |
26 | 26 |
27 ModelTypeSet early_download_types; | 27 ModelTypeSet early_download_types; |
28 early_download_types.PutAll(ControlTypes()); | 28 early_download_types.PutAll(ControlTypes()); |
29 early_download_types.PutAll(PriorityUserTypes()); | 29 early_download_types.PutAll(PriorityUserTypes()); |
30 for (ModelTypeSet::Iterator it = early_download_types.First(); it.Good(); | 30 for (ModelTypeSet::Iterator it = early_download_types.First(); it.Good(); |
31 it.Inc()) { | 31 it.Inc()) { |
32 if (!directory->InitialSyncEndedForType(it.Get())) { | 32 if (!directory->InitialSyncEndedForType(it.Get())) { |
33 syncer::TestUserShare::CreateRoot(it.Get(), user_share); | 33 TestUserShare::CreateRoot(it.Get(), user_share); |
34 } | 34 } |
35 } | 35 } |
36 | 36 |
37 SyncManagerImpl::NotifyInitializationSuccess(); | 37 SyncManagerImpl::NotifyInitializationSuccess(); |
38 } | 38 } |
39 | 39 |
40 } // namespace syncer | 40 } // namespace syncer |
OLD | NEW |