| OLD | NEW |
| 1 // Copyright 2012 The Chromium Authors. All rights reserved. | 1 // Copyright 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 "components/sync/core_impl/sync_encryption_handler_impl.h" | 5 #include "components/sync/core_impl/sync_encryption_handler_impl.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 #include <stdint.h> | 8 #include <stdint.h> |
| 9 | 9 |
| 10 #include <memory> | 10 #include <memory> |
| 11 #include <queue> | 11 #include <queue> |
| 12 #include <string> | |
| 13 | 12 |
| 14 #include "base/base64.h" | 13 #include "base/base64.h" |
| 15 #include "base/bind.h" | 14 #include "base/bind.h" |
| 16 #include "base/json/json_string_value_serializer.h" | 15 #include "base/json/json_string_value_serializer.h" |
| 17 #include "base/location.h" | 16 #include "base/location.h" |
| 18 #include "base/metrics/histogram_macros.h" | 17 #include "base/metrics/histogram_macros.h" |
| 19 #include "base/single_thread_task_runner.h" | 18 #include "base/single_thread_task_runner.h" |
| 20 #include "base/threading/thread_task_runner_handle.h" | 19 #include "base/threading/thread_task_runner_handle.h" |
| 21 #include "base/time/time.h" | |
| 22 #include "base/tracked_objects.h" | 20 #include "base/tracked_objects.h" |
| 23 #include "components/sync/base/cryptographer.h" | |
| 24 #include "components/sync/base/encryptor.h" | 21 #include "components/sync/base/encryptor.h" |
| 25 #include "components/sync/base/experiments.h" | 22 #include "components/sync/base/experiments.h" |
| 26 #include "components/sync/base/passphrase_type.h" | 23 #include "components/sync/base/passphrase_type.h" |
| 27 #include "components/sync/base/time.h" | 24 #include "components/sync/base/time.h" |
| 28 #include "components/sync/core/read_node.h" | 25 #include "components/sync/core/read_node.h" |
| 29 #include "components/sync/core/read_transaction.h" | 26 #include "components/sync/core/read_transaction.h" |
| 30 #include "components/sync/core/user_share.h" | 27 #include "components/sync/core/user_share.h" |
| 31 #include "components/sync/core/write_node.h" | 28 #include "components/sync/core/write_node.h" |
| 32 #include "components/sync/core/write_transaction.h" | 29 #include "components/sync/core/write_transaction.h" |
| 33 #include "components/sync/engine/sync_string_conversions.h" | 30 #include "components/sync/engine/sync_string_conversions.h" |
| (...skipping 1629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1663 base::Time SyncEncryptionHandlerImpl::GetExplicitPassphraseTime( | 1660 base::Time SyncEncryptionHandlerImpl::GetExplicitPassphraseTime( |
| 1664 PassphraseType passphrase_type) const { | 1661 PassphraseType passphrase_type) const { |
| 1665 if (passphrase_type == PassphraseType::FROZEN_IMPLICIT_PASSPHRASE) | 1662 if (passphrase_type == PassphraseType::FROZEN_IMPLICIT_PASSPHRASE) |
| 1666 return migration_time(); | 1663 return migration_time(); |
| 1667 else if (passphrase_type == PassphraseType::CUSTOM_PASSPHRASE) | 1664 else if (passphrase_type == PassphraseType::CUSTOM_PASSPHRASE) |
| 1668 return custom_passphrase_time(); | 1665 return custom_passphrase_time(); |
| 1669 return base::Time(); | 1666 return base::Time(); |
| 1670 } | 1667 } |
| 1671 | 1668 |
| 1672 } // namespace syncer | 1669 } // namespace syncer |
| OLD | NEW |