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

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

Issue 2466463002: Revert of [Sync] IWYU cleanup. (Closed)
Patch Set: Created 4 years, 1 month 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
7 #include "base/guid.h" 12 #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"
8 16
9 using std::string; 17 using std::string;
10 18
11 namespace syncer { 19 namespace syncer {
12 20
13 namespace { 21 namespace {
14 22
15 // Returns true if and only if |client_entity| is a bookmark. 23 // Returns true if and only if |client_entity| is a bookmark.
16 bool IsBookmark(const sync_pb::SyncEntity& client_entity) { 24 bool IsBookmark(const sync_pb::SyncEntity& client_entity) {
17 return syncer::GetModelType(client_entity) == syncer::BOOKMARKS; 25 return syncer::GetModelType(client_entity) == syncer::BOOKMARKS;
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
132 140
133 sync_pb::UniquePosition* unique_position = proto->mutable_unique_position(); 141 sync_pb::UniquePosition* unique_position = proto->mutable_unique_position();
134 unique_position->CopyFrom(unique_position_); 142 unique_position->CopyFrom(unique_position_);
135 } 143 }
136 144
137 bool PersistentBookmarkEntity::IsFolder() const { 145 bool PersistentBookmarkEntity::IsFolder() const {
138 return is_folder_; 146 return is_folder_;
139 } 147 }
140 148
141 } // namespace syncer 149 } // namespace syncer
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698