| Index: chrome/browser/search_engines/template_url_parser.cc
|
| diff --git a/chrome/browser/search_engines/template_url_parser.cc b/chrome/browser/search_engines/template_url_parser.cc
|
| index e671d63fb1fdff6439442c68e6788674063ca4cb..4b8dd5eee1a8f474341435b46ca9444b2725185d 100644
|
| --- a/chrome/browser/search_engines/template_url_parser.cc
|
| +++ b/chrome/browser/search_engines/template_url_parser.cc
|
| @@ -519,13 +519,14 @@ void CharactersImpl(void *ctx, const xmlChar *ch, int len) {
|
| }
|
|
|
| // Returns true if the ref is null, or the url wrapped by ref is
|
| -// valid with a spec of http/https.
|
| +// valid with a spec of http/https/httpsv.
|
| bool IsHTTPRef(const TemplateURLRef* ref) {
|
| if (ref == NULL)
|
| return true;
|
| GURL url(ref->url());
|
| return (url.is_valid() && (url.SchemeIs(chrome::kHttpScheme) ||
|
| - url.SchemeIs(chrome::kHttpsScheme)));
|
| + url.SchemeIs(chrome::kHttpsScheme) ||
|
| + url.SchemeIs(chrome::kHttpsvScheme)));
|
| }
|
|
|
| // Returns true if the TemplateURL is legal. A legal TemplateURL is one
|
| @@ -539,7 +540,8 @@ bool IsLegal(TemplateURL* url) {
|
| GURL image_url(image_refs[i].url);
|
| if (!image_url.is_valid() ||
|
| !(image_url.SchemeIs(chrome::kHttpScheme) ||
|
| - image_url.SchemeIs(chrome::kHttpsScheme))) {
|
| + image_url.SchemeIs(chrome::kHttpsScheme) ||
|
| + image_url.SchemeIs(chrome::kHttpsvScheme))) {
|
| return false;
|
| }
|
| }
|
|
|