| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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/engine/nigori_util.h" | 5 #include "chrome/browser/sync/engine/nigori_util.h" |
| 6 | 6 |
| 7 #include <queue> | 7 #include <queue> |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "chrome/browser/sync/engine/syncapi.h" | |
| 12 #include "chrome/browser/sync/engine/syncer_util.h" | 11 #include "chrome/browser/sync/engine/syncer_util.h" |
| 12 #include "chrome/browser/sync/internal_api/write_node.h" |
| 13 #include "chrome/browser/sync/syncable/syncable.h" | 13 #include "chrome/browser/sync/syncable/syncable.h" |
| 14 #include "chrome/browser/sync/util/cryptographer.h" | 14 #include "chrome/browser/sync/util/cryptographer.h" |
| 15 | 15 |
| 16 namespace syncable { | 16 namespace syncable { |
| 17 void FillNigoriEncryptedTypes(const ModelTypeSet& types, | 17 void FillNigoriEncryptedTypes(const ModelTypeSet& types, |
| 18 sync_pb::NigoriSpecifics* nigori) { | 18 sync_pb::NigoriSpecifics* nigori) { |
| 19 DCHECK(nigori); | 19 DCHECK(nigori); |
| 20 nigori->set_encrypt_bookmarks(types.count(BOOKMARKS) > 0); | 20 nigori->set_encrypt_bookmarks(types.count(BOOKMARKS) > 0); |
| 21 nigori->set_encrypt_preferences(types.count(PREFERENCES) > 0); | 21 nigori->set_encrypt_preferences(types.count(PREFERENCES) > 0); |
| 22 nigori->set_encrypt_autofill_profile(types.count(AUTOFILL_PROFILE) > 0); | 22 nigori->set_encrypt_autofill_profile(types.count(AUTOFILL_PROFILE) > 0); |
| (...skipping 103 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 126 return false; | 126 return false; |
| 127 } | 127 } |
| 128 } | 128 } |
| 129 // Push the successor. | 129 // Push the successor. |
| 130 to_visit.push(child.Get(NEXT_ID)); | 130 to_visit.push(child.Get(NEXT_ID)); |
| 131 } | 131 } |
| 132 return true; | 132 return true; |
| 133 } | 133 } |
| 134 | 134 |
| 135 } // namespace syncable | 135 } // namespace syncable |
| OLD | NEW |