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

Unified Diff: sync/internal_api/base_transaction.cc

Issue 10911073: NOT FOR COMMIT: Add DeviceInfo type and ChangeProcessor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix several issues Created 8 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « sync/internal_api/base_node.cc ('k') | sync/internal_api/public/base/model_type.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sync/internal_api/base_transaction.cc
diff --git a/sync/internal_api/base_transaction.cc b/sync/internal_api/base_transaction.cc
index 11a8ca4321a0257211a68de25198f1ea7baac568..186e79356fd23137c1e7dd798d5a060f3591afa5 100644
--- a/sync/internal_api/base_transaction.cc
+++ b/sync/internal_api/base_transaction.cc
@@ -12,19 +12,19 @@ namespace syncer {
//////////////////////////////////////////////////////////////////////////
// BaseTransaction member definitions
-BaseTransaction::BaseTransaction(UserShare* share) {
+BaseTransaction::BaseTransaction(UserShare* share) :
+ user_share_(share) {
DCHECK(share && share->directory.get());
- directory_ = share->directory.get();
}
BaseTransaction::~BaseTransaction() {
}
Cryptographer* BaseTransaction::GetCryptographer() const {
- return directory_->GetCryptographer(this->GetWrappedTrans());
+ return GetDirectory()->GetCryptographer(this->GetWrappedTrans());
}
ModelTypeSet BaseTransaction::GetEncryptedTypes() const {
- return directory_->GetNigoriHandler()->GetEncryptedTypes(
+ return GetDirectory()->GetNigoriHandler()->GetEncryptedTypes(
this->GetWrappedTrans());
}
« no previous file with comments | « sync/internal_api/base_node.cc ('k') | sync/internal_api/public/base/model_type.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698