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

Side by Side Diff: sql/meta_table.cc

Issue 1533283002: Switch to standard integer types in xxx/. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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 | « sql/connection_unittest.cc ('k') | sql/meta_table_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) 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/meta_table.h" 5 #include "sql/meta_table.h"
6 6
7 #include <stdint.h>
8
7 #include "base/logging.h" 9 #include "base/logging.h"
8 #include "base/metrics/histogram.h" 10 #include "base/metrics/histogram.h"
9 #include "base/strings/string_util.h" 11 #include "base/strings/string_util.h"
10 #include "sql/connection.h" 12 #include "sql/connection.h"
11 #include "sql/statement.h" 13 #include "sql/statement.h"
12 #include "sql/transaction.h" 14 #include "sql/transaction.h"
13 15
14 namespace { 16 namespace {
15 17
16 // Keys understood directly by sql:MetaTable. 18 // Keys understood directly by sql:MetaTable.
(...skipping 247 matching lines...) Expand 10 before | Expand all | Expand 10 after
264 266
265 bool MetaTable::PrepareGetStatement(Statement* statement, const char* key) { 267 bool MetaTable::PrepareGetStatement(Statement* statement, const char* key) {
266 DCHECK(db_ && statement); 268 DCHECK(db_ && statement);
267 statement->Assign(db_->GetCachedStatement(SQL_FROM_HERE, 269 statement->Assign(db_->GetCachedStatement(SQL_FROM_HERE,
268 "SELECT value FROM meta WHERE key=?")); 270 "SELECT value FROM meta WHERE key=?"));
269 statement->BindCString(0, key); 271 statement->BindCString(0, key);
270 return statement->Step(); 272 return statement->Step();
271 } 273 }
272 274
273 } // namespace sql 275 } // namespace sql
OLDNEW
« no previous file with comments | « sql/connection_unittest.cc ('k') | sql/meta_table_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698