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

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

Issue 10381016: Remove the "autogenerate keyword" bit on TemplateURL. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 7 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/webdata/web_database.cc
===================================================================
--- chrome/browser/webdata/web_database.cc (revision 135424)
+++ chrome/browser/webdata/web_database.cc (working copy)
@@ -21,11 +21,11 @@
// corresponding changes must happen in the unit tests, and new migration test
// added. See |WebDatabaseMigrationTest::kCurrentTestedVersionNumber|.
// static
-const int WebDatabase::kCurrentVersionNumber = 44;
+const int WebDatabase::kCurrentVersionNumber = 45;
namespace {
-const int kCompatibleVersionNumber = 44;
+const int kCompatibleVersionNumber = 45;
// Change the version number and possibly the compatibility version of
// |meta_table_|.
@@ -321,6 +321,14 @@
ChangeVersion(&meta_table_, 44, true);
// FALL THROUGH
+ case 44:
+ if (!keyword_table_->
+ MigrateToVersion45RemoveLogoIDAndAutogenerateColumns())
+ return FailedMigrationTo(45);
+
+ ChangeVersion(&meta_table_, 45, true);
+ // FALL THROUGH
+
// Add successive versions here. Each should set the version number and
// compatible version number as appropriate, then fall through to the next
// case.

Powered by Google App Engine
This is Rietveld 408576698