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

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

Issue 2542933002: Remove obsolete keywords table migrating function (Closed)
Patch Set: Created 4 years 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
« no previous file with comments | « no previous file | components/search_engines/keyword_table.cc » ('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 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 <stdint.h> 8 #include <stdint.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // Returns true on success. 158 // Returns true on success.
159 bool UpdateKeyword(const TemplateURLData& data); 159 bool UpdateKeyword(const TemplateURLData& data);
160 160
161 // Gets a string representation for keyword with id specified. 161 // Gets a string representation for keyword with id specified.
162 // Used to store its result in |meta| table or to compare with another 162 // Used to store its result in |meta| table or to compare with another
163 // keyword. Returns true on success, false otherwise. 163 // keyword. Returns true on success, false otherwise.
164 bool GetKeywordAsString(TemplateURLID id, 164 bool GetKeywordAsString(TemplateURLID id,
165 const std::string& table_name, 165 const std::string& table_name,
166 std::string* result); 166 std::string* result);
167 167
168 // Migrates table |name| (which should be either "keywords" or
169 // "keywords_backup") from version 44 to version 45.
170 bool MigrateKeywordsTableForVersion45(const std::string& name);
171
172 DISALLOW_COPY_AND_ASSIGN(KeywordTable); 168 DISALLOW_COPY_AND_ASSIGN(KeywordTable);
173 }; 169 };
174 170
175 #endif // COMPONENTS_SEARCH_ENGINES_KEYWORD_TABLE_H_ 171 #endif // COMPONENTS_SEARCH_ENGINES_KEYWORD_TABLE_H_
OLDNEW
« no previous file with comments | « no previous file | components/search_engines/keyword_table.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698