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

Unified Diff: third_party/WebKit/Source/platform/graphics/ImageSource.cpp

Issue 2807073002: Removed local RefPtr objects created from PassRefPtr arguments. (Closed)
Patch Set: Created 3 years, 8 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: third_party/WebKit/Source/platform/graphics/ImageSource.cpp
diff --git a/third_party/WebKit/Source/platform/graphics/ImageSource.cpp b/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
index 82de4f3bd015cb0810becef88c39772ce3c43c33..85de405baf0f488b4484aeb7d30af418e0f6413e 100644
--- a/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
+++ b/third_party/WebKit/Source/platform/graphics/ImageSource.cpp
@@ -46,9 +46,7 @@ PassRefPtr<SharedBuffer> ImageSource::Data() {
return decoder_ ? decoder_->Data() : nullptr;
}
-bool ImageSource::SetData(PassRefPtr<SharedBuffer> pass_data,
- bool all_data_received) {
- RefPtr<SharedBuffer> data = pass_data;
+bool ImageSource::SetData(RefPtr<SharedBuffer> data, bool all_data_received) {
all_data_received_ = all_data_received;
if (decoder_) {

Powered by Google App Engine
This is Rietveld 408576698