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

Unified Diff: chrome/browser/extensions/webstore_inline_installer.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/extensions/webstore_inline_installer.cc
===================================================================
--- chrome/browser/extensions/webstore_inline_installer.cc (revision 107061)
+++ chrome/browser/extensions/webstore_inline_installer.cc (working copy)
@@ -171,22 +171,23 @@
new URLFetcher(webstore_data_url, URLFetcher::GET, this));
Profile* profile = Profile::FromBrowserContext(
tab_contents()->browser_context());
- webstore_data_url_fetcher_->set_request_context(
+ webstore_data_url_fetcher_->SetRequestContext(
profile->GetRequestContext());
- webstore_data_url_fetcher_->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES |
- net::LOAD_DO_NOT_SAVE_COOKIES |
- net::LOAD_DISABLE_CACHE);
+ webstore_data_url_fetcher_->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES |
+ net::LOAD_DO_NOT_SAVE_COOKIES |
+ net::LOAD_DISABLE_CACHE);
webstore_data_url_fetcher_->Start();
}
-void WebstoreInlineInstaller::OnURLFetchComplete(const URLFetcher* source) {
+void WebstoreInlineInstaller::OnURLFetchComplete(
+ const content::URLFetcher* source) {
CHECK_EQ(webstore_data_url_fetcher_.get(), source);
// We shouldn't be getting UrlFetcher callbacks if the TabContents has gone
// away; we stop any in in-progress fetches in TabContentsDestroyed.
CHECK(tab_contents());
- if (!webstore_data_url_fetcher_->status().is_success() ||
- webstore_data_url_fetcher_->response_code() != 200) {
+ if (!webstore_data_url_fetcher_->GetStatus().is_success() ||
+ webstore_data_url_fetcher_->GetResponseCode() != 200) {
CompleteInstall(kWebstoreRequestError);
return;
}
« no previous file with comments | « chrome/browser/extensions/webstore_inline_installer.h ('k') | chrome/browser/extensions/webstore_install_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698