chromeos: Fix StartupBrowserCreatorImpl::Launch crash.
[chromium-blink-merge.git] / sync / internal_api / write_transaction.cc
blobfe11adf6479d435bcc3640fb0002c2f55a163901
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.
5 #include "sync/internal_api/public/write_transaction.h"
7 #include "sync/syncable/write_transaction.h"
9 namespace syncer {
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 share->directory.get());
21 WriteTransaction::~WriteTransaction() {
22 delete transaction_;
25 syncable::BaseTransaction* WriteTransaction::GetWrappedTrans() const {
26 return transaction_;
29 } // namespace syncer