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> | 12 #include <string> |
13 | 13 |
14 #include "base/base64.h" | 14 #include "base/base64.h" |
15 #include "base/bind.h" | 15 #include "base/bind.h" |
16 #include "base/json/json_string_value_serializer.h" | 16 #include "base/json/json_string_value_serializer.h" |
17 #include "base/location.h" | 17 #include "base/location.h" |
18 #include "base/metrics/histogram.h" | 18 #include "base/metrics/histogram_macros.h" |
19 #include "base/single_thread_task_runner.h" | 19 #include "base/single_thread_task_runner.h" |
20 #include "base/threading/thread_task_runner_handle.h" | 20 #include "base/threading/thread_task_runner_handle.h" |
21 #include "base/time/time.h" | 21 #include "base/time/time.h" |
22 #include "base/tracked_objects.h" | 22 #include "base/tracked_objects.h" |
23 #include "components/sync/base/cryptographer.h" | 23 #include "components/sync/base/cryptographer.h" |
24 #include "components/sync/base/encryptor.h" | 24 #include "components/sync/base/encryptor.h" |
25 #include "components/sync/base/experiments.h" | 25 #include "components/sync/base/experiments.h" |
26 #include "components/sync/base/time.h" | 26 #include "components/sync/base/time.h" |
27 #include "components/sync/core/read_node.h" | 27 #include "components/sync/core/read_node.h" |
28 #include "components/sync/core/read_transaction.h" | 28 #include "components/sync/core/read_transaction.h" |
(...skipping 1610 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1639 | 1639 |
1640 base::Time SyncEncryptionHandlerImpl::GetExplicitPassphraseTime() const { | 1640 base::Time SyncEncryptionHandlerImpl::GetExplicitPassphraseTime() const { |
1641 if (passphrase_type_ == FROZEN_IMPLICIT_PASSPHRASE) | 1641 if (passphrase_type_ == FROZEN_IMPLICIT_PASSPHRASE) |
1642 return migration_time(); | 1642 return migration_time(); |
1643 else if (passphrase_type_ == CUSTOM_PASSPHRASE) | 1643 else if (passphrase_type_ == CUSTOM_PASSPHRASE) |
1644 return custom_passphrase_time(); | 1644 return custom_passphrase_time(); |
1645 return base::Time(); | 1645 return base::Time(); |
1646 } | 1646 } |
1647 | 1647 |
1648 } // namespace syncer | 1648 } // namespace syncer |
OLD | NEW |