diff options
author | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-24 09:49:20 +0000 |
---|---|---|
committer | hashimoto@chromium.org <hashimoto@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2013-09-24 09:49:20 +0000 |
commit | 96c77a733eb005a2ce5e2a21135316748be0adb5 (patch) | |
tree | b0e1eac42f65363bb1aac26c85d3046184b99fc1 /chrome_frame | |
parent | 6703e952b33974cbd7a7e40555a790295ba024fa (diff) | |
download | chromium_src-96c77a733eb005a2ce5e2a21135316748be0adb5.zip chromium_src-96c77a733eb005a2ce5e2a21135316748be0adb5.tar.gz chromium_src-96c77a733eb005a2ce5e2a21135316748be0adb5.tar.bz2 |
net: Use ScopedVector::Pass() to pass element readers for UploadDataStream's ctor
ScopedVector supports Pass() method.
Use of Pass() makes it clear that the ownership of the readers moves to the newly created UploadDataStream.
BUG=None
TEST=git cl try
TBR=sky@chromium.org for content/browser, mpcomplete@chromium.org for chrome/browser/extensions/api/web_request
Review URL: https://chromiumcodereview.appspot.com/23929005
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@224960 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome_frame')
-rw-r--r-- | chrome_frame/urlmon_upload_data_stream.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/chrome_frame/urlmon_upload_data_stream.cc b/chrome_frame/urlmon_upload_data_stream.cc index 8d0a55e..f825f3f 100644 --- a/chrome_frame/urlmon_upload_data_stream.cc +++ b/chrome_frame/urlmon_upload_data_stream.cc @@ -51,7 +51,7 @@ net::UploadDataStream* CreateUploadDataStream(net::UploadData* upload_data) { DCHECK(reader); element_readers.push_back(reader); } - upload_data_stream = new net::UploadDataStream(&element_readers, + upload_data_stream = new net::UploadDataStream(element_readers.Pass(), upload_data->identifier()); } return upload_data_stream; |