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/syncable/syncable_delete_journal.h" | 5 #include "components/sync/syncable/syncable_delete_journal.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
| 9 #include <utility> |
| 10 |
9 #include "base/memory/ptr_util.h" | 11 #include "base/memory/ptr_util.h" |
10 #include "components/sync/base/model_type.h" | 12 #include "components/sync/base/model_type.h" |
11 | 13 |
12 namespace syncer { | 14 namespace syncer { |
13 namespace syncable { | 15 namespace syncable { |
14 | 16 |
15 DeleteJournal::DeleteJournal(std::unique_ptr<JournalIndex> initial_journal) { | 17 DeleteJournal::DeleteJournal(std::unique_ptr<JournalIndex> initial_journal) { |
16 CHECK(initial_journal); | 18 CHECK(initial_journal); |
17 delete_journals_.swap(*initial_journal); | 19 delete_journals_.swap(*initial_journal); |
18 } | 20 } |
(...skipping 117 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
136 switch (type) { | 138 switch (type) { |
137 case BOOKMARKS: | 139 case BOOKMARKS: |
138 return true; | 140 return true; |
139 default: | 141 default: |
140 return false; | 142 return false; |
141 } | 143 } |
142 } | 144 } |
143 | 145 |
144 } // namespace syncable | 146 } // namespace syncable |
145 } // namespace syncer | 147 } // namespace syncer |
OLD | NEW |