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

Unified Diff: chrome/browser/extensions/app_notify_channel_setup.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/app_notify_channel_setup.h ('k') | chrome/browser/extensions/apps_promo.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/app_notify_channel_setup.cc
===================================================================
--- chrome/browser/extensions/app_notify_channel_setup.cc (revision 107061)
+++ chrome/browser/extensions/app_notify_channel_setup.cc (working copy)
@@ -79,18 +79,19 @@
// TODO(asargent) - we eventually want this to use the browser login
// credentials instead of the regular cookie store, but for now to aid server
// development, we're just using the regular cookie store.
- url_fetcher_->set_request_context(profile_->GetRequestContext());
+ url_fetcher_->SetRequestContext(profile_->GetRequestContext());
std::string data = "client_id=" + EscapeUrlEncodedData(client_id_, true);
- url_fetcher_->set_upload_data("application/x-www-form-urlencoded", data);
+ url_fetcher_->SetUploadData("application/x-www-form-urlencoded", data);
url_fetcher_->Start();
}
-void AppNotifyChannelSetup::OnURLFetchComplete(const URLFetcher* source) {
+void AppNotifyChannelSetup::OnURLFetchComplete(
+ const content::URLFetcher* source) {
CHECK(source);
- net::URLRequestStatus status = source->status();
+ net::URLRequestStatus status = source->GetStatus();
if (status.status() == net::URLRequestStatus::SUCCESS &&
- source->response_code() == 200) {
+ source->GetResponseCode() == 200) {
// TODO(asargent) - we need to parse the response from |source| here.
ReportResult("dummy_do_not_use", "");
} else {
« no previous file with comments | « chrome/browser/extensions/app_notify_channel_setup.h ('k') | chrome/browser/extensions/apps_promo.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698