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

Side by Side Diff: chrome/browser/webdata/web_database.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
OLDNEW
1 // Copyright (c) 2011 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 "chrome/browser/webdata/web_database.h" 5 #include "chrome/browser/webdata/web_database.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "app/sql/statement.h"
10 #include "app/sql/transaction.h"
11 #include "chrome/browser/diagnostics/sqlite_diagnostics.h" 9 #include "chrome/browser/diagnostics/sqlite_diagnostics.h"
12 #include "content/common/notification_service.h" 10 #include "content/common/notification_service.h"
11 #include "sql/statement.h"
12 #include "sql/transaction.h"
13 13
14 namespace { 14 namespace {
15 15
16 // Current version number. Note: when changing the current version number, 16 // Current version number. Note: when changing the current version number,
17 // corresponding changes must happen in the unit tests, and new migration test 17 // corresponding changes must happen in the unit tests, and new migration test
18 // added. See |WebDatabaseMigrationTest::kCurrentTestedVersionNumber|. 18 // added. See |WebDatabaseMigrationTest::kCurrentTestedVersionNumber|.
19 const int kCurrentVersionNumber = 38; 19 const int kCurrentVersionNumber = 38;
20 const int kCompatibleVersionNumber = 38; 20 const int kCompatibleVersionNumber = 38;
21 21
22 // Change the version number and possibly the compatibility version of 22 // Change the version number and possibly the compatibility version of
(...skipping 265 matching lines...) Expand 10 before | Expand all | Expand 10 after
288 288
289 // Add successive versions here. Each should set the version number and 289 // Add successive versions here. Each should set the version number and
290 // compatible version number as appropriate, then fall through to the next 290 // compatible version number as appropriate, then fall through to the next
291 // case. 291 // case.
292 292
293 case kCurrentVersionNumber: 293 case kCurrentVersionNumber:
294 // No migration needed. 294 // No migration needed.
295 return sql::INIT_OK; 295 return sql::INIT_OK;
296 } 296 }
297 } 297 }
OLDNEW
« no previous file with comments | « chrome/browser/webdata/web_database.h ('k') | chrome/browser/webdata/web_database_migration_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698