OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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 "chrome/browser/sync/internal_api/write_node.h" | 5 #include "sync/internal_api/write_node.h" |
6 | 6 |
7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
8 #include "base/values.h" | 8 #include "base/values.h" |
9 #include "chrome/browser/sync/internal_api/syncapi_internal.h" | |
10 #include "chrome/browser/sync/internal_api/base_transaction.h" | |
11 #include "chrome/browser/sync/internal_api/write_transaction.h" | |
12 #include "sync/engine/nigori_util.h" | 9 #include "sync/engine/nigori_util.h" |
| 10 #include "sync/internal_api/base_transaction.h" |
| 11 #include "sync/internal_api/syncapi_internal.h" |
| 12 #include "sync/internal_api/write_transaction.h" |
13 #include "sync/protocol/app_specifics.pb.h" | 13 #include "sync/protocol/app_specifics.pb.h" |
14 #include "sync/protocol/autofill_specifics.pb.h" | 14 #include "sync/protocol/autofill_specifics.pb.h" |
15 #include "sync/protocol/bookmark_specifics.pb.h" | 15 #include "sync/protocol/bookmark_specifics.pb.h" |
16 #include "sync/protocol/extension_specifics.pb.h" | 16 #include "sync/protocol/extension_specifics.pb.h" |
17 #include "sync/protocol/password_specifics.pb.h" | 17 #include "sync/protocol/password_specifics.pb.h" |
18 #include "sync/protocol/session_specifics.pb.h" | 18 #include "sync/protocol/session_specifics.pb.h" |
19 #include "sync/protocol/theme_specifics.pb.h" | 19 #include "sync/protocol/theme_specifics.pb.h" |
20 #include "sync/protocol/typed_url_specifics.pb.h" | 20 #include "sync/protocol/typed_url_specifics.pb.h" |
21 #include "sync/syncable/syncable.h" | 21 #include "sync/syncable/syncable.h" |
22 #include "sync/util/cryptographer.h" | 22 #include "sync/util/cryptographer.h" |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
494 sync_pb::BookmarkSpecifics new_value = GetBookmarkSpecifics(); | 494 sync_pb::BookmarkSpecifics new_value = GetBookmarkSpecifics(); |
495 new_value.set_favicon(bytes.empty() ? NULL : &bytes[0], bytes.size()); | 495 new_value.set_favicon(bytes.empty() ? NULL : &bytes[0], bytes.size()); |
496 SetBookmarkSpecifics(new_value); | 496 SetBookmarkSpecifics(new_value); |
497 } | 497 } |
498 | 498 |
499 void WriteNode::MarkForSyncing() { | 499 void WriteNode::MarkForSyncing() { |
500 syncable::MarkForSyncing(entry_); | 500 syncable::MarkForSyncing(entry_); |
501 } | 501 } |
502 | 502 |
503 } // namespace sync_api | 503 } // namespace sync_api |
OLD | NEW |