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

Side by Side Diff: chrome/browser/sync/internal_api/base_transaction.cc

Issue 10147003: [Sync] Move 'syncapi_core' and 'sync_unit_tests' targets to sync/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix Win update errors Created 8 years, 8 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 | Annotate | Revision Log
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #include "chrome/browser/sync/internal_api/base_transaction.h"
6
7 #include "sync/syncable/syncable.h"
8 #include "sync/util/cryptographer.h"
9
10 using browser_sync::Cryptographer;
11
12 namespace sync_api {
13
14 //////////////////////////////////////////////////////////////////////////
15 // BaseTransaction member definitions
16 BaseTransaction::BaseTransaction(UserShare* share) {
17 DCHECK(share && share->directory.get());
18 directory_ = share->directory.get();
19 }
20 BaseTransaction::~BaseTransaction() {
21 }
22
23 browser_sync::Cryptographer* BaseTransaction::GetCryptographer() const {
24 return directory_->GetCryptographer(this->GetWrappedTrans());
25 }
26
27 syncable::ModelTypeSet GetEncryptedTypes(
28 const sync_api::BaseTransaction* trans) {
29 return trans->GetCryptographer()->GetEncryptedTypes();
30 }
31
32 } // namespace sync_api
OLDNEW
« no previous file with comments | « chrome/browser/sync/internal_api/base_transaction.h ('k') | chrome/browser/sync/internal_api/change_record.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698