diff options
author | erikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-22 15:26:13 +0000 |
---|---|---|
committer | erikwright@chromium.org <erikwright@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-22 15:26:13 +0000 |
commit | 94e2bbe39fe667dd072755c0310fe42f73e0bb66 (patch) | |
tree | a7ecb732c9cfabad2332dda3827c18ca7ae83bb6 /cloud_print/service | |
parent | d6effdd6a54173c0e11240fb753cc167f2499b34 (diff) | |
download | chromium_src-94e2bbe39fe667dd072755c0310fe42f73e0bb66.zip chromium_src-94e2bbe39fe667dd072755c0310fe42f73e0bb66.tar.gz chromium_src-94e2bbe39fe667dd072755c0310fe42f73e0bb66.tar.bz2 |
Added URLRequestContext to constructor for URLRequest.
Previously, the context was set using the member function set_context.
Note that the context for a URLRequest is not allowed to be null.
BUG=81979
TEST=None
TBR=ajwong,brettw,vitalybuka,sky
Review URL: https://chromiumcodereview.appspot.com/10559036
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@143595 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'cloud_print/service')
-rw-r--r-- | cloud_print/service/service_state.cc | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/cloud_print/service/service_state.cc b/cloud_print/service/service_state.cc index 1eecc49..a07f8f2 100644 --- a/cloud_print/service/service_state.cc +++ b/cloud_print/service/service_state.cc @@ -171,12 +171,11 @@ std::string ServiceState::LoginToGoogle(const std::string& service, post_body += "&source=" + net::EscapeUrlEncodedData("CP-Service", true); post_body += "&service=" + net::EscapeUrlEncodedData(service, true); - net::URLRequest request(url, &fetcher_delegate); + net::URLRequest request(url, &fetcher_delegate, context.get()); request.AppendBytesToUpload(post_body.c_str(), post_body.size()); request.SetExtraRequestHeaderByName( "Content-Type", "application/x-www-form-urlencoded", true); - request.set_context(context.get()); request.set_method("POST"); request.Start(); |