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

Side by Side Diff: chrome/browser/history/archived_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
« no previous file with comments | « chrome/browser/history/archived_database.h ('k') | chrome/browser/history/download_database.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 <algorithm> 5 #include <algorithm>
6 #include <string> 6 #include <string>
7 7
8 #include "app/sql/transaction.h"
9 #include "base/string_util.h" 8 #include "base/string_util.h"
10 #include "chrome/browser/history/archived_database.h" 9 #include "chrome/browser/history/archived_database.h"
10 #include "sql/transaction.h"
11 11
12 namespace history { 12 namespace history {
13 13
14 namespace { 14 namespace {
15 15
16 static const int kCurrentVersionNumber = 3; 16 static const int kCurrentVersionNumber = 3;
17 static const int kCompatibleVersionNumber = 2; 17 static const int kCompatibleVersionNumber = 2;
18 18
19 } // namespace 19 } // namespace
20 20
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 // Put future migration cases here. 120 // Put future migration cases here.
121 121
122 // When the version is too old, we just try to continue anyway, there should 122 // When the version is too old, we just try to continue anyway, there should
123 // not be a released product that makes a database too old for us to handle. 123 // not be a released product that makes a database too old for us to handle.
124 LOG_IF(WARNING, cur_version < kCurrentVersionNumber) << 124 LOG_IF(WARNING, cur_version < kCurrentVersionNumber) <<
125 "Archived database version " << cur_version << " is too old to handle."; 125 "Archived database version " << cur_version << " is too old to handle.";
126 126
127 return sql::INIT_OK; 127 return sql::INIT_OK;
128 } 128 }
129 } // namespace history 129 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/archived_database.h ('k') | chrome/browser/history/download_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698