Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(132)

Side by Side Diff: components/sync/core_impl/sync_encryption_handler_impl.cc

Issue 2245073003: [Sync] Clean up intra-sync DEPS significantly. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Address comments/fix test. Created 4 years, 4 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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.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/sync_string_conversions.h"
27 #include "components/sync/base/time.h" 26 #include "components/sync/base/time.h"
28 #include "components/sync/core/read_node.h" 27 #include "components/sync/core/read_node.h"
29 #include "components/sync/core/read_transaction.h" 28 #include "components/sync/core/read_transaction.h"
30 #include "components/sync/core/user_share.h" 29 #include "components/sync/core/user_share.h"
31 #include "components/sync/core/write_node.h" 30 #include "components/sync/core/write_node.h"
32 #include "components/sync/core/write_transaction.h" 31 #include "components/sync/core/write_transaction.h"
32 #include "components/sync/engine/sync_string_conversions.h"
33 #include "components/sync/protocol/encryption.pb.h" 33 #include "components/sync/protocol/encryption.pb.h"
34 #include "components/sync/protocol/nigori_specifics.pb.h" 34 #include "components/sync/protocol/nigori_specifics.pb.h"
35 #include "components/sync/protocol/sync.pb.h" 35 #include "components/sync/protocol/sync.pb.h"
36 #include "components/sync/syncable/directory.h" 36 #include "components/sync/syncable/directory.h"
37 #include "components/sync/syncable/entry.h" 37 #include "components/sync/syncable/entry.h"
38 #include "components/sync/syncable/mutable_entry.h" 38 #include "components/sync/syncable/mutable_entry.h"
39 #include "components/sync/syncable/nigori_util.h" 39 #include "components/sync/syncable/nigori_util.h"
40 #include "components/sync/syncable/syncable_base_transaction.h" 40 #include "components/sync/syncable/syncable_base_transaction.h"
41 #include "components/sync/syncable/syncable_model_neutral_write_transaction.h" 41 #include "components/sync/syncable/syncable_model_neutral_write_transaction.h"
42 #include "components/sync/syncable/syncable_write_transaction.h" 42 #include "components/sync/syncable/syncable_write_transaction.h"
(...skipping 1596 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698