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

Unified Diff: chrome/browser/search_engines/template_url_fetcher.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
Index: chrome/browser/search_engines/template_url_fetcher.cc
===================================================================
--- chrome/browser/search_engines/template_url_fetcher.cc (revision 130285)
+++ chrome/browser/search_engines/template_url_fetcher.cc (working copy)
@@ -149,7 +149,7 @@
template_url_.reset(TemplateURLParser::Parse(fetcher_->profile(), data.data(),
data.length(), NULL));
- if (!template_url_.get() || !template_url_->url()->SupportsReplacement()) {
+ if (!template_url_.get() || !template_url_->url_ref().SupportsReplacement()) {
fetcher_->RequestCompleted(this);
// WARNING: RequestCompleted deletes us.
return;
@@ -183,7 +183,7 @@
DCHECK(model->loaded());
const TemplateURL* existing_url = NULL;
- if (model->CanReplaceKeyword(keyword_, GURL(template_url_->url()->url()),
+ if (model->CanReplaceKeyword(keyword_, GURL(template_url_->url()),
&existing_url)) {
if (existing_url)
model->Remove(existing_url);
« no previous file with comments | « chrome/browser/search_engines/template_url.cc ('k') | chrome/browser/search_engines/template_url_fetcher_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698