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

Side by Side Diff: components/sync/test/fake_sync_encryption_handler.cc

Issue 2279753003: Move definition of PasswordType enum to a separate header. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@passphrase-type-enum-class
Patch Set: D2279753003 Created 4 years, 3 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
« no previous file with comments | « components/sync/engine/sync_string_conversions.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 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/test/fake_sync_encryption_handler.h" 5 #include "components/sync/test/fake_sync_encryption_handler.h"
6 6
7 #include "components/sync/base/passphrase_type.h"
7 #include "components/sync/protocol/nigori_specifics.pb.h" 8 #include "components/sync/protocol/nigori_specifics.pb.h"
8 #include "components/sync/syncable/nigori_util.h" 9 #include "components/sync/syncable/nigori_util.h"
9 10
10 namespace syncer { 11 namespace syncer {
11 12
12 FakeSyncEncryptionHandler::FakeSyncEncryptionHandler() 13 FakeSyncEncryptionHandler::FakeSyncEncryptionHandler()
13 : encrypted_types_(SensitiveTypes()), 14 : encrypted_types_(SensitiveTypes()),
14 encrypt_everything_(false), 15 encrypt_everything_(false),
15 passphrase_type_(PassphraseType::IMPLICIT_PASSPHRASE), 16 passphrase_type_(PassphraseType::IMPLICIT_PASSPHRASE),
16 cryptographer_(&encryptor_) {} 17 cryptographer_(&encryptor_) {}
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
116 117
117 bool FakeSyncEncryptionHandler::IsEncryptEverythingEnabled() const { 118 bool FakeSyncEncryptionHandler::IsEncryptEverythingEnabled() const {
118 return encrypt_everything_; 119 return encrypt_everything_;
119 } 120 }
120 121
121 PassphraseType FakeSyncEncryptionHandler::GetPassphraseType() const { 122 PassphraseType FakeSyncEncryptionHandler::GetPassphraseType() const {
122 return passphrase_type_; 123 return passphrase_type_;
123 } 124 }
124 125
125 } // namespace syncer 126 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/engine/sync_string_conversions.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698