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

Unified Diff: chrome/browser/image_decoder.cc

Issue 2483013002: Mojo C++ bindings: Remove more use_new_wrapper_types=false. (Closed)
Patch Set: . Created 4 years, 1 month 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 | « no previous file | chrome/common/BUILD.gn » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/image_decoder.cc
diff --git a/chrome/browser/image_decoder.cc b/chrome/browser/image_decoder.cc
index b86f68af9c24d4475e7c6dc3d109b99fcc9820ea..3815f26dc922621713773dbb4ee634ea70e37626 100644
--- a/chrome/browser/image_decoder.cc
+++ b/chrome/browser/image_decoder.cc
@@ -174,9 +174,7 @@ void ImageDecoder::DecodeImageInSandbox(
mojo_codec = mojom::ImageCodec::ROBUST_PNG;
#endif // defined(OS_CHROMEOS)
decoder_->DecodeImage(
- mojo::Array<uint8_t>(std::move(image_data)),
- mojo_codec,
- shrink_to_fit,
+ image_data, mojo_codec, shrink_to_fit,
base::Bind(&OnDecodeImageDone,
base::Bind(&ImageDecoder::OnDecodeImageFailed, this),
base::Bind(&ImageDecoder::OnDecodeImageSucceeded, this),
« no previous file with comments | « no previous file | chrome/common/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698