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

Side by Side Diff: sql/meta_table.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/meta_table.h ('k') | sql/run_all_unittests.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) 2009 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/meta_table.h" 5 #include "sql/meta_table.h"
6 6
7 #include "app/sql/connection.h"
8 #include "app/sql/statement.h"
9 #include "base/logging.h" 7 #include "base/logging.h"
10 #include "base/string_util.h" 8 #include "base/string_util.h"
9 #include "sql/connection.h"
10 #include "sql/statement.h"
11 11
12 namespace sql { 12 namespace sql {
13 13
14 // Key used in our meta table for version numbers. 14 // Key used in our meta table for version numbers.
15 static const char kVersionKey[] = "version"; 15 static const char kVersionKey[] = "version";
16 static const char kCompatibleVersionKey[] = "last_compatible_version"; 16 static const char kCompatibleVersionKey[] = "last_compatible_version";
17 17
18 MetaTable::MetaTable() : db_(NULL) { 18 MetaTable::MetaTable() : db_(NULL) {
19 } 19 }
20 20
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 NOTREACHED() << db_->GetErrorMessage(); 143 NOTREACHED() << db_->GetErrorMessage();
144 return false; 144 return false;
145 } 145 }
146 statement->BindCString(0, key); 146 statement->BindCString(0, key);
147 if (!statement->Step()) 147 if (!statement->Step())
148 return false; 148 return false;
149 return true; 149 return true;
150 } 150 }
151 151
152 } // namespace sql 152 } // namespace sql
OLDNEW
« no previous file with comments | « sql/meta_table.h ('k') | sql/run_all_unittests.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698