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

Side by Side Diff: components/sync/engine_impl/loopback_server/persistent_bookmark_entity.cc

Issue 2662453008: [Sync] Fix sync lint errors/includes, update presubmit. (Closed)
Patch Set: Rebase 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 unified diff | Download patch
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/engine_impl/loopback_server/persistent_bookmark_entity .h" 5 #include "components/sync/engine_impl/loopback_server/persistent_bookmark_entity .h"
6 6
7 #include <stdint.h>
8
9 #include <memory>
10 #include <string>
11
12 #include "base/guid.h" 7 #include "base/guid.h"
13 #include "components/sync/base/model_type.h"
14 #include "components/sync/engine_impl/loopback_server/loopback_server_entity.h"
15 #include "components/sync/protocol/sync.pb.h"
16 8
17 using std::string; 9 using std::string;
18 10
19 namespace syncer { 11 namespace syncer {
20 12
21 namespace { 13 namespace {
22 14
23 // Returns true if and only if |client_entity| is a bookmark. 15 // Returns true if and only if |client_entity| is a bookmark.
24 bool IsBookmark(const sync_pb::SyncEntity& client_entity) { 16 bool IsBookmark(const sync_pb::SyncEntity& client_entity) {
25 return syncer::GetModelType(client_entity) == syncer::BOOKMARKS; 17 return syncer::GetModelType(client_entity) == syncer::BOOKMARKS;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
140 132
141 sync_pb::UniquePosition* unique_position = proto->mutable_unique_position(); 133 sync_pb::UniquePosition* unique_position = proto->mutable_unique_position();
142 unique_position->CopyFrom(unique_position_); 134 unique_position->CopyFrom(unique_position_);
143 } 135 }
144 136
145 bool PersistentBookmarkEntity::IsFolder() const { 137 bool PersistentBookmarkEntity::IsFolder() const {
146 return is_folder_; 138 return is_folder_;
147 } 139 }
148 140
149 } // namespace syncer 141 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698