| Index: chrome/browser/sync/glue/http_bridge.cc
|
| ===================================================================
|
| --- chrome/browser/sync/glue/http_bridge.cc (revision 107061)
|
| +++ chrome/browser/sync/glue/http_bridge.cc (working copy)
|
| @@ -219,10 +219,10 @@
|
|
|
| fetch_state_.url_poster = URLFetcher::Create(0, url_for_request_,
|
| URLFetcher::POST, this);
|
| - fetch_state_.url_poster->set_request_context(context_getter_for_request_);
|
| - fetch_state_.url_poster->set_upload_data(content_type_, request_content_);
|
| - fetch_state_.url_poster->set_extra_request_headers(extra_headers_);
|
| - fetch_state_.url_poster->set_load_flags(net::LOAD_DO_NOT_SEND_COOKIES);
|
| + fetch_state_.url_poster->SetRequestContext(context_getter_for_request_);
|
| + fetch_state_.url_poster->SetUploadData(content_type_, request_content_);
|
| + fetch_state_.url_poster->SetExtraRequestHeaders(extra_headers_);
|
| + fetch_state_.url_poster->SetLoadFlags(net::LOAD_DO_NOT_SEND_COOKIES);
|
| fetch_state_.url_poster->Start();
|
| }
|
|
|
| @@ -266,7 +266,7 @@
|
| http_post_completed_.Signal();
|
| }
|
|
|
| -void HttpBridge::OnURLFetchComplete(const URLFetcher *source) {
|
| +void HttpBridge::OnURLFetchComplete(const content::URLFetcher *source) {
|
| DCHECK(BrowserThread::CurrentlyOn(BrowserThread::IO));
|
| base::AutoLock lock(fetch_state_lock_);
|
| if (fetch_state_.aborted)
|
| @@ -274,12 +274,12 @@
|
|
|
| fetch_state_.request_completed = true;
|
| fetch_state_.request_succeeded =
|
| - (net::URLRequestStatus::SUCCESS == source->status().status());
|
| - fetch_state_.http_response_code = source->response_code();
|
| - fetch_state_.error_code = source->status().error();
|
| + (net::URLRequestStatus::SUCCESS == source->GetStatus().status());
|
| + fetch_state_.http_response_code = source->GetResponseCode();
|
| + fetch_state_.error_code = source->GetStatus().error();
|
|
|
| source->GetResponseAsString(&fetch_state_.response_content);
|
| - fetch_state_.response_headers = source->response_headers();
|
| + fetch_state_.response_headers = source->GetResponseHeaders();
|
|
|
| // End of the line for url_poster_. It lives only on the IO loop.
|
| // We defer deletion because we're inside a callback from a component of the
|
|
|