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

Unified Diff: chrome/browser/ui/search_engines/edit_search_engine_controller.cc

Issue 9965143: Revert 130431 - Move the URL string from TemplateURLRef onto the owning TemplateURL. This will mak… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 9 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/ui/search_engines/edit_search_engine_controller.cc
===================================================================
--- chrome/browser/ui/search_engines/edit_search_engine_controller.cc (revision 130565)
+++ chrome/browser/ui/search_engines/edit_search_engine_controller.cc (working copy)
@@ -42,8 +42,7 @@
// TemplateURL owner because |template_url_| might be NULL and we can't call
// TemplateURLRef::IsValid() when its owner is NULL.
TemplateURL t_url;
- t_url.SetURL(url);
- const TemplateURLRef& template_ref = t_url.url_ref();
+ TemplateURLRef template_ref(&t_url, url);
if (!template_ref.IsValid())
return false;
@@ -136,7 +135,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_ref().ReplaceSearchTerms(ASCIIToUTF16("x"),
+ std::string expanded_url(t_url.url()->ReplaceSearchTerms(ASCIIToUTF16("x"),
TemplateURLRef::NO_SUGGESTIONS_AVAILABLE, string16()));
url_parse::Parsed parts;
std::string scheme(URLFixerUpper::SegmentURL(expanded_url, &parts));
« no previous file with comments | « chrome/browser/ui/gtk/edit_search_engine_dialog.cc ('k') | chrome/browser/ui/search_engines/keyword_editor_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698