| 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/syncapi_internal.h" | 5 #include "chrome/browser/sync/engine/syncapi_internal.h" |
| 6 | 6 |
| 7 #include "base/memory/scoped_ptr.h" | 7 #include "base/memory/scoped_ptr.h" |
| 8 #include "chrome/browser/sync/util/cryptographer.h" | 8 #include "chrome/browser/sync/encryption/cryptographer.h" |
| 9 #include "chrome/browser/sync/protocol/password_specifics.pb.h" | 9 #include "chrome/browser/sync/protocol/password_specifics.pb.h" |
| 10 | 10 |
| 11 using browser_sync::Cryptographer; | 11 using browser_sync::Cryptographer; |
| 12 | 12 |
| 13 namespace sync_api { | 13 namespace sync_api { |
| 14 | 14 |
| 15 sync_pb::PasswordSpecificsData* DecryptPasswordSpecifics( | 15 sync_pb::PasswordSpecificsData* DecryptPasswordSpecifics( |
| 16 const sync_pb::EntitySpecifics& specifics, Cryptographer* crypto) { | 16 const sync_pb::EntitySpecifics& specifics, Cryptographer* crypto) { |
| 17 if (!specifics.HasExtension(sync_pb::password)) | 17 if (!specifics.HasExtension(sync_pb::password)) |
| 18 return NULL; | 18 return NULL; |
| (...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 78 } else { | 78 } else { |
| 79 right_plaintext = right.SerializeAsString(); | 79 right_plaintext = right.SerializeAsString(); |
| 80 } | 80 } |
| 81 if (left_plaintext == right_plaintext) { | 81 if (left_plaintext == right_plaintext) { |
| 82 return true; | 82 return true; |
| 83 } | 83 } |
| 84 return false; | 84 return false; |
| 85 } | 85 } |
| 86 | 86 |
| 87 } // namespace sync_api | 87 } // namespace sync_api |
| OLD | NEW |