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

Unified Diff: chrome/browser/search_engines/search_host_to_urls_map.cc

Issue 9968016: Move the URL string from TemplateURLRef onto the owning TemplateURL. This will make it easier to m… (Closed) Base URL: svn://chrome-svn/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/protector/histograms.cc ('k') | chrome/browser/search_engines/template_url.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/search_engines/search_host_to_urls_map.cc
===================================================================
--- chrome/browser/search_engines/search_host_to_urls_map.cc (revision 130285)
+++ chrome/browser/search_engines/search_host_to_urls_map.cc (working copy)
@@ -88,9 +88,8 @@
for (TemplateURLSet::const_iterator url_set_iterator = urls.begin();
url_set_iterator != urls.end(); ++url_set_iterator) {
const TemplateURL* t_url = *url_set_iterator;
- if ((t_url->url() && t_url->url()->HasGoogleBaseURLs()) ||
- (t_url->suggestions_url() &&
- t_url->suggestions_url()->HasGoogleBaseURLs())) {
+ if (t_url->url_ref().HasGoogleBaseURLs() ||
+ t_url->suggestions_url_ref().HasGoogleBaseURLs()) {
t_urls_using_base_url.push_back(t_url);
}
}
« no previous file with comments | « chrome/browser/protector/histograms.cc ('k') | chrome/browser/search_engines/template_url.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698