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

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

Issue 8375039: Create a content::UrlFetcher interface that lives in content/public/common and convert users to i... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: review comments Created 9 years, 2 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 107061)
+++ chrome/browser/search_engines/template_url_fetcher.cc (working copy)
@@ -43,7 +43,7 @@
// content::URLFetcherDelegate:
// If data contains a valid OSDD, a TemplateURL is created and added to
// the TemplateURLService.
- virtual void OnURLFetchComplete(const URLFetcher* source);
+ virtual void OnURLFetchComplete(const content::URLFetcher* source);
// URL of the OSDD.
GURL url() const { return osdd_url_; }
@@ -99,7 +99,7 @@
model->Load();
}
- url_fetcher_.set_request_context(fetcher->profile()->GetRequestContext());
+ url_fetcher_.SetRequestContext(fetcher->profile()->GetRequestContext());
url_fetcher_.Start();
}
@@ -116,7 +116,7 @@
}
void TemplateURLFetcher::RequestDelegate::OnURLFetchComplete(
- const URLFetcher* source) {
+ const content::URLFetcher* source) {
template_url_.reset(new TemplateURL());
// Validation checks.
@@ -126,8 +126,9 @@
// the response_code is not applicable and should be -1. Also, ensure that
// the returned information results in a valid search URL.
std::string data;
- if (!source->status().is_success() ||
- ((source->response_code() != -1) && (source->response_code() != 200)) ||
+ if (!source->GetStatus().is_success() ||
+ ((source->GetResponseCode() != -1) &&
+ (source->GetResponseCode() != 200)) ||
!source->GetResponseAsString(&data) ||
!TemplateURLParser::Parse(
reinterpret_cast<const unsigned char*>(data.c_str()),
« no previous file with comments | « chrome/browser/safe_browsing/safe_browsing_test.cc ('k') | chrome/browser/spellchecker/spellcheck_host_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698