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

Side by Side Diff: chrome/browser/history/archived_database.cc

Issue 2819063: Cleanup: Remove unneeded headers from app/ (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: forward declare Created 10 years, 4 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/first_run_gtk.cc ('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) 2009 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/statement.h"
9 #include "app/sql/transaction.h" 8 #include "app/sql/transaction.h"
10 #include "base/string_util.h" 9 #include "base/string_util.h"
11 #include "chrome/browser/history/archived_database.h" 10 #include "chrome/browser/history/archived_database.h"
12 11
13 namespace history { 12 namespace history {
14 13
15 namespace { 14 namespace {
16 15
17 static const int kCurrentVersionNumber = 2; 16 static const int kCurrentVersionNumber = 2;
18 static const int kCompatibleVersionNumber = 2; 17 static const int kCompatibleVersionNumber = 2;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
114 // Put future migration cases here. 113 // Put future migration cases here.
115 114
116 // When the version is too old, we just try to continue anyway, there should 115 // When the version is too old, we just try to continue anyway, there should
117 // not be a released product that makes a database too old for us to handle. 116 // not be a released product that makes a database too old for us to handle.
118 LOG_IF(WARNING, cur_version < kCurrentVersionNumber) << 117 LOG_IF(WARNING, cur_version < kCurrentVersionNumber) <<
119 "Archived database version " << cur_version << " is too old to handle."; 118 "Archived database version " << cur_version << " is too old to handle.";
120 119
121 return sql::INIT_OK; 120 return sql::INIT_OK;
122 } 121 }
123 } // namespace history 122 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/first_run_gtk.cc ('k') | chrome/browser/history/download_database.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698