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

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: Fix sync_client.cc 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
« no previous file with comments | « chrome/chrome_tests_unit.gypi ('k') | sync/internal_api/public/base_transaction.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..cbfb246ed6ad6eb38a7f721f2877eab3833a71a7 100644
--- a/sync/internal_api/base_transaction.cc
+++ b/sync/internal_api/base_transaction.cc
@@ -12,19 +12,20 @@ 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 | « chrome/chrome_tests_unit.gypi ('k') | sync/internal_api/public/base_transaction.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698