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

Side by Side Diff: components/sync/syncable/syncable_delete_journal.cc

Issue 2389063002: [Sync] Fixing easy lint violations. (Closed)
Patch Set: Updated for Max's comments. Created 4 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 unified diff | Download patch
OLDNEW
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
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
OLDNEW
« no previous file with comments | « components/sync/syncable/syncable_delete_journal.h ('k') | components/sync/syncable/write_transaction_info.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698