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

Unified Diff: chrome/browser/extensions/webstore_install_helper.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
« no previous file with comments | « chrome/browser/extensions/webstore_install_helper.h ('k') | chrome/browser/google/google_url_tracker.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/webstore_install_helper.cc
===================================================================
--- chrome/browser/extensions/webstore_install_helper.cc (revision 107061)
+++ chrome/browser/extensions/webstore_install_helper.cc (working copy)
@@ -53,7 +53,7 @@
if (!icon_url_.is_empty()) {
CHECK(context_getter_);
url_fetcher_.reset(new URLFetcher(icon_url_, URLFetcher::GET, this));
- url_fetcher_->set_request_context(context_getter_);
+ url_fetcher_->SetRequestContext(context_getter_);
url_fetcher_->Start();
// We'll get called back in OnURLFetchComplete.
@@ -72,11 +72,12 @@
utility_host_->Send(new ChromeUtilityMsg_ParseJSON(manifest_));
}
-void WebstoreInstallHelper::OnURLFetchComplete(const URLFetcher* source) {
+void WebstoreInstallHelper::OnURLFetchComplete(
+ const content::URLFetcher* source) {
CHECK(BrowserThread::CurrentlyOn(BrowserThread::UI));
CHECK(source == url_fetcher_.get());
- if (source->status().status() != net::URLRequestStatus::SUCCESS ||
- source->response_code() != 200) {
+ if (source->GetStatus().status() != net::URLRequestStatus::SUCCESS ||
+ source->GetResponseCode() != 200) {
BrowserThread::PostTask(
BrowserThread::IO,
FROM_HERE,
« no previous file with comments | « chrome/browser/extensions/webstore_install_helper.h ('k') | chrome/browser/google/google_url_tracker.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698