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

Side by Side Diff: components/sync/syncable/read_transaction.cc

Issue 2427803002: [Sync] Replacing NULL with nullptr in code and null in comments for components/sync/ (Closed)
Patch Set: Fixing start of sentence capitlization. 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/syncable/read_node.cc ('k') | components/sync/syncable/sync_db_util.h » ('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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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/syncable/read_transaction.h" 5 #include "components/sync/syncable/read_transaction.h"
6 6
7 #include "components/sync/syncable/directory.h" 7 #include "components/sync/syncable/directory.h"
8 #include "components/sync/syncable/syncable_read_transaction.h" 8 #include "components/sync/syncable/syncable_read_transaction.h"
9 9
10 namespace syncer { 10 namespace syncer {
11 11
12 ////////////////////////////////////////////////////////////////////////// 12 //////////////////////////////////////////////////////////////////////////
13 // ReadTransaction member definitions 13 // ReadTransaction member definitions
14 ReadTransaction::ReadTransaction(const tracked_objects::Location& from_here, 14 ReadTransaction::ReadTransaction(const tracked_objects::Location& from_here,
15 UserShare* share) 15 UserShare* share)
16 : BaseTransaction(share), transaction_(NULL), close_transaction_(true) { 16 : BaseTransaction(share), transaction_(nullptr), close_transaction_(true) {
17 transaction_ = 17 transaction_ =
18 new syncable::ReadTransaction(from_here, share->directory.get()); 18 new syncable::ReadTransaction(from_here, share->directory.get());
19 } 19 }
20 20
21 ReadTransaction::ReadTransaction(UserShare* share, 21 ReadTransaction::ReadTransaction(UserShare* share,
22 syncable::BaseTransaction* trans) 22 syncable::BaseTransaction* trans)
23 : BaseTransaction(share), transaction_(trans), close_transaction_(false) {} 23 : BaseTransaction(share), transaction_(trans), close_transaction_(false) {}
24 24
25 ReadTransaction::~ReadTransaction() { 25 ReadTransaction::~ReadTransaction() {
26 if (close_transaction_) { 26 if (close_transaction_) {
(...skipping 20 matching lines...) Expand all
47 AttachmentIdList* ids) const { 47 AttachmentIdList* ids) const {
48 DCHECK(ids); 48 DCHECK(ids);
49 transaction_->directory()->GetAttachmentIdsToUpload(transaction_, type, ids); 49 transaction_->directory()->GetAttachmentIdsToUpload(transaction_, type, ids);
50 } 50 }
51 51
52 std::string ReadTransaction::GetStoreBirthday() const { 52 std::string ReadTransaction::GetStoreBirthday() const {
53 return transaction_->directory()->store_birthday(); 53 return transaction_->directory()->store_birthday();
54 } 54 }
55 55
56 } // namespace syncer 56 } // namespace syncer
OLDNEW
« no previous file with comments | « components/sync/syncable/read_node.cc ('k') | components/sync/syncable/sync_db_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698