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

Unified Diff: chrome/browser/policy/configuration_policy_handler.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
« no previous file with comments | « chrome/browser/omnibox_search_hint.cc ('k') | chrome/browser/protector/default_search_provider_change.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/policy/configuration_policy_handler.cc
===================================================================
--- chrome/browser/policy/configuration_policy_handler.cc (revision 130565)
+++ chrome/browser/policy/configuration_policy_handler.cc (working copy)
@@ -598,9 +598,9 @@
if (!*url_value || !(*url_value)->GetAsString(url_string))
return false;
TemplateURL t_url;
- t_url.SetURL(*url_string);
SearchTermsData search_terms_data;
- return t_url.url_ref().SupportsReplacementUsingTermsData(search_terms_data);
+ return TemplateURLRef(&t_url, *url_string).SupportsReplacementUsingTermsData(
+ search_terms_data);
}
void DefaultSearchPolicyHandler::EnsureStringPrefExists(
« no previous file with comments | « chrome/browser/omnibox_search_hint.cc ('k') | chrome/browser/protector/default_search_provider_change.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698