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

Side by Side Diff: components/sync/syncable/base_transaction.cc

Issue 2294913009: Fill the un-encrypted metadata field in password specifics. (Closed)
Patch Set: rebased Created 4 years, 1 month 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/syncable/base_transaction.h ('k') | components/sync/syncable/write_node.cc » ('j') | 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/syncable/base_transaction.h" 5 #include "components/sync/syncable/base_transaction.h"
6 6
7 #include "components/sync/syncable/directory.h" 7 #include "components/sync/syncable/directory.h"
8 #include "components/sync/syncable/nigori_handler.h" 8 #include "components/sync/syncable/nigori_handler.h"
9 9
10 namespace syncer { 10 namespace syncer {
(...skipping 10 matching lines...) Expand all
21 return GetDirectory()->GetCryptographer(this->GetWrappedTrans()); 21 return GetDirectory()->GetCryptographer(this->GetWrappedTrans());
22 } 22 }
23 23
24 ModelTypeSet BaseTransaction::GetEncryptedTypes() const { 24 ModelTypeSet BaseTransaction::GetEncryptedTypes() const {
25 syncable::NigoriHandler* nigori_handler = GetDirectory()->GetNigoriHandler(); 25 syncable::NigoriHandler* nigori_handler = GetDirectory()->GetNigoriHandler();
26 return nigori_handler 26 return nigori_handler
27 ? nigori_handler->GetEncryptedTypes(this->GetWrappedTrans()) 27 ? nigori_handler->GetEncryptedTypes(this->GetWrappedTrans())
28 : ModelTypeSet(); 28 : ModelTypeSet();
29 } 29 }
30 30
31 PassphraseType BaseTransaction::GetPassphraseType() const {
32 syncable::NigoriHandler* nigori_handler = GetDirectory()->GetNigoriHandler();
33 return nigori_handler
34 ? nigori_handler->GetPassphraseType(this->GetWrappedTrans())
35 : PassphraseType::IMPLICIT_PASSPHRASE;
36 }
37
31 } // namespace syncer 38 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/syncable/base_transaction.h ('k') | components/sync/syncable/write_node.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698