Index: chrome/browser/ui/search_engines/edit_search_engine_controller.cc |
=================================================================== |
--- chrome/browser/ui/search_engines/edit_search_engine_controller.cc (revision 130285) |
+++ chrome/browser/ui/search_engines/edit_search_engine_controller.cc (working copy) |
@@ -42,7 +42,8 @@ |
// TemplateURL owner because |template_url_| might be NULL and we can't call |
// TemplateURLRef::IsValid() when its owner is NULL. |
TemplateURL t_url; |
- TemplateURLRef template_ref(&t_url, url); |
+ t_url.SetURL(url); |
+ const TemplateURLRef& template_ref = t_url.url_ref(); |
if (!template_ref.IsValid()) |
return false; |
@@ -135,7 +136,7 @@ |
// we need to replace the search terms before testing for the scheme. |
TemplateURL t_url; |
t_url.SetURL(url); |
- std::string expanded_url(t_url.url()->ReplaceSearchTerms(ASCIIToUTF16("x"), |
+ std::string expanded_url(t_url.url_ref().ReplaceSearchTerms(ASCIIToUTF16("x"), |
TemplateURLRef::NO_SUGGESTIONS_AVAILABLE, string16())); |
url_parse::Parsed parts; |
std::string scheme(URLFixerUpper::SegmentURL(expanded_url, &parts)); |