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

Unified Diff: chrome/browser/chromeos/customization_document.cc

Issue 8373021: Convert URLFetcher::Delegates to use an interface in content/public/common. Also remove the old U... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: sync and remove unncessary forward declares 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 106929)
+++ chrome/browser/chromeos/customization_document.cc (working copy)
@@ -20,6 +20,7 @@
#include "chrome/browser/prefs/pref_service.h"
#include "chrome/browser/profiles/profile_manager.h"
#include "content/browser/browser_thread.h"
+#include "content/common/net/url_fetcher.h"
// Manifest attributes names.
@@ -300,13 +301,10 @@
}
void ServicesCustomizationDocument::OnURLFetchComplete(
- const URLFetcher* source,
- const GURL& url,
- const net::URLRequestStatus& status,
- int response_code,
- const net::ResponseCookies& cookies,
- const std::string& data) {
- if (response_code == 200) {
+ const URLFetcher* source) {
+ if (source->response_code() == 200) {
+ std::string data;
+ source->GetResponseAsString(&data);
LoadManifestFromString(data);
} else {
NetworkLibrary* network = CrosLibrary::Get()->GetNetworkLibrary();
@@ -318,8 +316,8 @@
return;
}
LOG(ERROR) << "URL fetch for services customization failed:"
- << " response code = " << response_code
- << " URL = " << url.spec();
+ << " response code = " << source->response_code()
+ << " URL = " << source->url().spec();
}
}

Powered by Google App Engine
This is Rietveld 408576698