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

Unified Diff: chrome/browser/webdata/web_intents_table.cc

Issue 12518017: Generalize migration code in WebDatabase. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pure merge of LKGR Created 7 years, 9 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
« no previous file with comments | « chrome/browser/webdata/web_intents_table.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/webdata/web_intents_table.cc
diff --git a/chrome/browser/webdata/web_intents_table.cc b/chrome/browser/webdata/web_intents_table.cc
index b7f9ecd80bc92c792b890dba165224e876e25587..3650c950df7f59185959d94bd13d08438416afec 100644
--- a/chrome/browser/webdata/web_intents_table.cc
+++ b/chrome/browser/webdata/web_intents_table.cc
@@ -71,6 +71,17 @@ bool WebIntentsTable::IsSyncable() {
return false;
}
+bool WebIntentsTable::MigrateToVersion(int version,
+ const std::string& app_locale,
+ bool* update_compatible_version) {
+ if (version == 46) {
+ *update_compatible_version = true;
+ return MigrateToVersion46AddSchemeColumn();
+ }
+
+ return true;
+}
+
// Updates the table by way of renaming the old tables, rerunning
// the Init method, then selecting old values into the new tables.
bool WebIntentsTable::MigrateToVersion46AddSchemeColumn() {
« no previous file with comments | « chrome/browser/webdata/web_intents_table.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698