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

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

Issue 2387553002: [Sync] Removing duplicated includes between cc and h files. (Closed)
Patch Set: Fixing DataTypeStatusTable Created 4 years, 2 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
« no previous file with comments | « components/sync/core/base_node.cc ('k') | components/sync/core/delete_journal.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/core/base_transaction.h" 5 #include "components/sync/core/base_transaction.h"
6 6
7 #include "components/sync/base/cryptographer.h"
8 #include "components/sync/syncable/directory.h" 7 #include "components/sync/syncable/directory.h"
9 #include "components/sync/syncable/nigori_handler.h" 8 #include "components/sync/syncable/nigori_handler.h"
10 9
11 namespace syncer { 10 namespace syncer {
12 11
13 ////////////////////////////////////////////////////////////////////////// 12 //////////////////////////////////////////////////////////////////////////
14 // BaseTransaction member definitions 13 // BaseTransaction member definitions
15 BaseTransaction::BaseTransaction(UserShare* share) : user_share_(share) { 14 BaseTransaction::BaseTransaction(UserShare* share) : user_share_(share) {
16 DCHECK(share && share->directory.get()); 15 DCHECK(share && share->directory.get());
17 } 16 }
18 17
19 BaseTransaction::~BaseTransaction() {} 18 BaseTransaction::~BaseTransaction() {}
20 19
21 Cryptographer* BaseTransaction::GetCryptographer() const { 20 Cryptographer* BaseTransaction::GetCryptographer() const {
22 return GetDirectory()->GetCryptographer(this->GetWrappedTrans()); 21 return GetDirectory()->GetCryptographer(this->GetWrappedTrans());
23 } 22 }
24 23
25 ModelTypeSet BaseTransaction::GetEncryptedTypes() const { 24 ModelTypeSet BaseTransaction::GetEncryptedTypes() const {
26 syncable::NigoriHandler* nigori_handler = GetDirectory()->GetNigoriHandler(); 25 syncable::NigoriHandler* nigori_handler = GetDirectory()->GetNigoriHandler();
27 return nigori_handler 26 return nigori_handler
28 ? nigori_handler->GetEncryptedTypes(this->GetWrappedTrans()) 27 ? nigori_handler->GetEncryptedTypes(this->GetWrappedTrans())
29 : ModelTypeSet(); 28 : ModelTypeSet();
30 } 29 }
31 30
32 } // namespace syncer 31 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/core/base_node.cc ('k') | components/sync/core/delete_journal.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698