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

Side by Side Diff: chrome/browser/history/top_sites_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/top_sites_database.h ('k') | chrome/browser/history/url_database.h » ('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) 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 "app/sql/connection.h"
6 #include "app/sql/transaction.h"
7 #include "base/file_util.h" 5 #include "base/file_util.h"
8 #include "base/string_split.h" 6 #include "base/string_split.h"
9 #include "base/string_util.h" 7 #include "base/string_util.h"
10 #include "chrome/browser/diagnostics/sqlite_diagnostics.h" 8 #include "chrome/browser/diagnostics/sqlite_diagnostics.h"
11 #include "chrome/browser/history/history_types.h" 9 #include "chrome/browser/history/history_types.h"
12 #include "chrome/browser/history/top_sites.h" 10 #include "chrome/browser/history/top_sites.h"
13 #include "chrome/browser/history/top_sites_database.h" 11 #include "chrome/browser/history/top_sites_database.h"
12 #include "sql/connection.h"
13 #include "sql/transaction.h"
14 14
15 namespace history { 15 namespace history {
16 16
17 // From the version 1 to 2, one column was added. Old versions of Chrome 17 // From the version 1 to 2, one column was added. Old versions of Chrome
18 // should be able to read version 2 files just fine. 18 // should be able to read version 2 files just fine.
19 static const int kVersionNumber = 2; 19 static const int kVersionNumber = 2;
20 20
21 TopSitesDatabase::TopSitesDatabase() : may_need_history_migration_(false) { 21 TopSitesDatabase::TopSitesDatabase() : may_need_history_migration_(false) {
22 } 22 }
23 23
(...skipping 382 matching lines...) Expand 10 before | Expand all | Expand 10 after
406 406
407 if (!db->Open(db_name)) { 407 if (!db->Open(db_name)) {
408 LOG(ERROR) << db->GetErrorMessage(); 408 LOG(ERROR) << db->GetErrorMessage();
409 return NULL; 409 return NULL;
410 } 410 }
411 411
412 return db.release(); 412 return db.release();
413 } 413 }
414 414
415 } // namespace history 415 } // namespace history
OLDNEW
« no previous file with comments | « chrome/browser/history/top_sites_database.h ('k') | chrome/browser/history/url_database.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698