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

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

Issue 7633077: Refactor syncapi.h (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: This patch has compiled from a clean build Created 9 years, 4 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
« no previous file with comments | « chrome/browser/sync/internal_api/write_transaction.h ('k') | chrome/browser/sync/js/DEPS » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
1 // Copyright (c) 2011 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/write_transaction.h"
6
7 #include "chrome/browser/sync/syncable/syncable.h"
8
9 namespace sync_api {
10
11 //////////////////////////////////////////////////////////////////////////
12 // WriteTransaction member definitions
13 WriteTransaction::WriteTransaction(const tracked_objects::Location& from_here,
14 UserShare* share)
15 : BaseTransaction(share),
16 transaction_(NULL) {
17 transaction_ = new syncable::WriteTransaction(from_here, syncable::SYNCAPI,
18 GetLookup());
19 }
20
21 WriteTransaction::~WriteTransaction() {
22 delete transaction_;
23 }
24
25 syncable::BaseTransaction* WriteTransaction::GetWrappedTrans() const {
26 return transaction_;
27 }
28
29 } // namespace sync_api
OLDNEW
« no previous file with comments | « chrome/browser/sync/internal_api/write_transaction.h ('k') | chrome/browser/sync/js/DEPS » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698