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

Unified Diff: sync/internal_api/base_transaction.cc

Issue 11360259: Sync: Add DeviceInfo's ChangeProcessor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 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 side-by-side diff with in-line comments
Download patch
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) {
Nicolas Zea 2012/11/16 19:42:27 colon on this line if full initializer doesn't fit
rlarocque 2012/11/17 00:07:21 Done.
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());
}

Powered by Google App Engine
This is Rietveld 408576698