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

Side by Side Diff: sql/transaction.cc

Issue 7353026: Move app/sql/* files to sql/ directory. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebased Created 9 years, 5 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 | « sql/transaction.h ('k') | sql/transaction_unittest.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) 2010 The Chromium Authors. All rights reserved. 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 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 "app/sql/transaction.h" 5 #include "sql/transaction.h"
6 6
7 #include "app/sql/connection.h"
8 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "sql/connection.h"
9 9
10 namespace sql { 10 namespace sql {
11 11
12 Transaction::Transaction(Connection* connection) 12 Transaction::Transaction(Connection* connection)
13 : connection_(connection), 13 : connection_(connection),
14 is_open_(false) { 14 is_open_(false) {
15 } 15 }
16 16
17 Transaction::~Transaction() { 17 Transaction::~Transaction() {
18 if (is_open_) 18 if (is_open_)
(...skipping 23 matching lines...) Expand all
42 if (!is_open_) { 42 if (!is_open_) {
43 NOTREACHED() << "Attempting to commit a nonexistent transaction. " 43 NOTREACHED() << "Attempting to commit a nonexistent transaction. "
44 << "Did you remember to call Begin() and check its return?"; 44 << "Did you remember to call Begin() and check its return?";
45 return false; 45 return false;
46 } 46 }
47 is_open_ = false; 47 is_open_ = false;
48 return connection_->CommitTransaction(); 48 return connection_->CommitTransaction();
49 } 49 }
50 50
51 } // namespace sql 51 } // namespace sql
OLDNEW
« no previous file with comments | « sql/transaction.h ('k') | sql/transaction_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698