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

Unified Diff: chrome/browser/history/shortcuts_database.h

Issue 134853004: Migrate old Shortcuts DB data to conform to new type values (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Addressed Peter's comments - 1 Created 6 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/history/shortcuts_database.h
diff --git a/chrome/browser/history/shortcuts_database.h b/chrome/browser/history/shortcuts_database.h
index 2dd340853ed48308d977918970038915d408b795..5a54d5fa2a42b93da957381ba055db79ba9e7ff2 100644
--- a/chrome/browser/history/shortcuts_database.h
+++ b/chrome/browser/history/shortcuts_database.h
@@ -15,6 +15,7 @@
#include "base/strings/string16.h"
#include "chrome/browser/history/shortcuts_backend.h"
#include "sql/connection.h"
+#include "sql/meta_table.h"
#include "url/gurl.h"
namespace history {
@@ -63,6 +64,9 @@ class ShortcutsDatabase : public base::RefCountedThreadSafe<ShortcutsDatabase> {
// Loads all of the shortcuts.
void LoadShortcuts(GuidToShortcutMap* shortcuts);
+ // Returns the current version that we will generate shortcut tables with.
+ static int GetCurrentVersion();
+
private:
friend class base::RefCountedThreadSafe<ShortcutsDatabase>;
friend class ShortcutsDatabaseTest;
@@ -81,6 +85,8 @@ class ShortcutsDatabase : public base::RefCountedThreadSafe<ShortcutsDatabase> {
sql::Connection db_;
base::FilePath database_path_;
+ sql::MetaTable meta_table_;
+
static const base::FilePath::CharType kShortcutsDatabaseName[];
DISALLOW_COPY_AND_ASSIGN(ShortcutsDatabase);
« no previous file with comments | « no previous file | chrome/browser/history/shortcuts_database.cc » ('j') | chrome/browser/history/shortcuts_database.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698