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

Side by Side Diff: components/search_engines/keyword_table.h

Issue 684493002: Don't persist and sync omnibox extension keywords. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nit Created 6 years, 1 month 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
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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 #ifndef COMPONENTS_SEARCH_ENGINES_KEYWORD_TABLE_H_ 5 #ifndef COMPONENTS_SEARCH_ENGINES_KEYWORD_TABLE_H_
6 #define COMPONENTS_SEARCH_ENGINES_KEYWORD_TABLE_H_ 6 #define COMPONENTS_SEARCH_ENGINES_KEYWORD_TABLE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 122 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 bool MigrateToVersion29InstantURLToSupportsInstant(); 133 bool MigrateToVersion29InstantURLToSupportsInstant();
134 bool MigrateToVersion38AddLastModifiedColumn(); 134 bool MigrateToVersion38AddLastModifiedColumn();
135 bool MigrateToVersion39AddSyncGUIDColumn(); 135 bool MigrateToVersion39AddSyncGUIDColumn();
136 bool MigrateToVersion44AddDefaultSearchProviderBackup(); 136 bool MigrateToVersion44AddDefaultSearchProviderBackup();
137 bool MigrateToVersion45RemoveLogoIDAndAutogenerateColumns(); 137 bool MigrateToVersion45RemoveLogoIDAndAutogenerateColumns();
138 bool MigrateToVersion47AddAlternateURLsColumn(); 138 bool MigrateToVersion47AddAlternateURLsColumn();
139 bool MigrateToVersion48RemoveKeywordsBackup(); 139 bool MigrateToVersion48RemoveKeywordsBackup();
140 bool MigrateToVersion49AddSearchTermsReplacementKeyColumn(); 140 bool MigrateToVersion49AddSearchTermsReplacementKeyColumn();
141 bool MigrateToVersion52AddImageSearchAndPOSTSupport(); 141 bool MigrateToVersion52AddImageSearchAndPOSTSupport();
142 bool MigrateToVersion53AddNewTabURLColumn(); 142 bool MigrateToVersion53AddNewTabURLColumn();
143 bool MigrateToVersion59RemoveExtensionKeywords();
143 144
144 private: 145 private:
145 friend class KeywordTableTest; 146 friend class KeywordTableTest;
146 FRIEND_TEST_ALL_PREFIXES(WebDatabaseMigrationTest, MigrateVersion44ToCurrent); 147 FRIEND_TEST_ALL_PREFIXES(WebDatabaseMigrationTest, MigrateVersion44ToCurrent);
147 148
148 // NOTE: Since the table columns have changed in different versions, many 149 // NOTE: Since the table columns have changed in different versions, many
149 // functions below take a |table_version| argument which dictates which 150 // functions below take a |table_version| argument which dictates which
150 // version number's column set to use. 151 // version number's column set to use.
151 152
152 // Fills |data| with the data in |s|. Returns false if we couldn't fill 153 // Fills |data| with the data in |s|. Returns false if we couldn't fill
(...skipping 22 matching lines...) Expand all
175 std::string* result); 176 std::string* result);
176 177
177 // Migrates table |name| (which should be either "keywords" or 178 // Migrates table |name| (which should be either "keywords" or
178 // "keywords_backup") from version 44 to version 45. 179 // "keywords_backup") from version 44 to version 45.
179 bool MigrateKeywordsTableForVersion45(const std::string& name); 180 bool MigrateKeywordsTableForVersion45(const std::string& name);
180 181
181 DISALLOW_COPY_AND_ASSIGN(KeywordTable); 182 DISALLOW_COPY_AND_ASSIGN(KeywordTable);
182 }; 183 };
183 184
184 #endif // COMPONENTS_SEARCH_ENGINES_KEYWORD_TABLE_H_ 185 #endif // COMPONENTS_SEARCH_ENGINES_KEYWORD_TABLE_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/options/search_engine_manager_handler.cc ('k') | components/search_engines/keyword_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698