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

Unified Diff: chrome/browser/search_engines/util.h

Issue 10676012: De-dupe input encodings in TemplateURLs. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/search_engines/util.h
===================================================================
--- chrome/browser/search_engines/util.h (revision 144319)
+++ chrome/browser/search_engines/util.h (working copy)
@@ -46,6 +46,11 @@
int* new_resource_keyword_version,
std::set<std::string>* removed_keyword_guids);
+// Due to a bug, the |input_encodings| field of TemplateURLData could have
+// contained duplicate entries. This removes those entries and returns whether
+// any were found.
+bool DeDupeEncodings(std::vector<std::string>* encodings);
+
// Returns true if the default search provider setting has been changed or
// corrupted. Returns the backup setting in |backup_default_search_provider|.
// |*backup_default_search_provider| can be NULL if the original setting is

Powered by Google App Engine
This is Rietveld 408576698