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

Unified Diff: chrome/browser/autocomplete/autocomplete_match.h

Issue 8502027: Fix AutocompleteMatch DCHECK() triggered by |RenderViewContextMenu::AppendSearchProvider()|. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/string_util_unittest.cc ('k') | chrome/browser/autocomplete/autocomplete_match.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/autocomplete/autocomplete_match.h
===================================================================
--- chrome/browser/autocomplete/autocomplete_match.h (revision 108864)
+++ chrome/browser/autocomplete/autocomplete_match.h (working copy)
@@ -81,6 +81,10 @@
NUM_TYPES,
};
+ // Null-terminated array of characters that are not valid within |contents|
+ // and |description| strings.
+ static const char16 kInvalidChars[];
+
AutocompleteMatch();
AutocompleteMatch(AutocompleteProvider* provider,
int relevance,
@@ -124,7 +128,7 @@
int style,
ACMatchClassifications* classifications);
- // Removes invalid characters from |str|. Should be called on strings coming
+ // Removes invalid characters from |text|. Should be called on strings coming
// from external sources (such as extensions) before assigning to |contents|
// or |description|.
static string16 SanitizeString(const string16& text);
« no previous file with comments | « base/string_util_unittest.cc ('k') | chrome/browser/autocomplete/autocomplete_match.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698