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

Unified Diff: chrome/browser/chromeos/customization_document.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/chromeos/customization_document.cc
===================================================================
--- chrome/browser/chromeos/customization_document.cc (revision 107061)
+++ chrome/browser/chromeos/customization_document.cc (working copy)
@@ -295,14 +295,14 @@
void ServicesCustomizationDocument::StartFileFetch() {
DCHECK(url_.is_valid());
url_fetcher_.reset(new URLFetcher(url_, URLFetcher::GET, this));
- url_fetcher_->set_request_context(
+ url_fetcher_->SetRequestContext(
ProfileManager::GetDefaultProfile()->GetRequestContext());
url_fetcher_->Start();
}
void ServicesCustomizationDocument::OnURLFetchComplete(
- const URLFetcher* source) {
- if (source->response_code() == 200) {
+ const content::URLFetcher* source) {
+ if (source->GetResponseCode() == 200) {
std::string data;
source->GetResponseAsString(&data);
LoadManifestFromString(data);
@@ -316,8 +316,8 @@
return;
}
LOG(ERROR) << "URL fetch for services customization failed:"
- << " response code = " << source->response_code()
- << " URL = " << source->url().spec();
+ << " response code = " << source->GetResponseCode()
+ << " URL = " << source->GetUrl().spec();
}
}
« no previous file with comments | « chrome/browser/chromeos/customization_document.h ('k') | chrome/browser/chromeos/login/auth_response_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698