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

Side by Side Diff: sql/statement.cc

Issue 16358024: Use a direct include of strings headers in rlz/, sandbox/, skia/, sql/, sync/. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 6 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/statement.h ('k') | sync/api/sync_data.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 "sql/statement.h" 5 #include "sql/statement.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "base/string_util.h" 8 #include "base/strings/string_util.h"
9 #include "base/strings/utf_string_conversions.h" 9 #include "base/strings/utf_string_conversions.h"
10 #include "third_party/sqlite/sqlite3.h" 10 #include "third_party/sqlite/sqlite3.h"
11 11
12 namespace sql { 12 namespace sql {
13 13
14 // This empty constructor initializes our reference with an empty one so that 14 // This empty constructor initializes our reference with an empty one so that
15 // we don't have to NULL-check the ref_ to see if the statement is valid: we 15 // we don't have to NULL-check the ref_ to see if the statement is valid: we
16 // only have to check the ref's validity bit. 16 // only have to check the ref's validity bit.
17 Statement::Statement() 17 Statement::Statement()
18 : ref_(new Connection::StatementRef(NULL, NULL, false)), 18 : ref_(new Connection::StatementRef(NULL, NULL, false)),
(...skipping 288 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 307
308 int Statement::CheckError(int err) { 308 int Statement::CheckError(int err) {
309 // Please don't add DCHECKs here, OnSqliteError() already has them. 309 // Please don't add DCHECKs here, OnSqliteError() already has them.
310 succeeded_ = (err == SQLITE_OK || err == SQLITE_ROW || err == SQLITE_DONE); 310 succeeded_ = (err == SQLITE_OK || err == SQLITE_ROW || err == SQLITE_DONE);
311 if (!succeeded_ && ref_.get() && ref_->connection()) 311 if (!succeeded_ && ref_.get() && ref_->connection())
312 return ref_->connection()->OnSqliteError(err, this); 312 return ref_->connection()->OnSqliteError(err, this);
313 return err; 313 return err;
314 } 314 }
315 315
316 } // namespace sql 316 } // namespace sql
OLDNEW
« no previous file with comments | « sql/statement.h ('k') | sync/api/sync_data.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698