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

Unified Diff: chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.cc

Issue 2495913002: arc: Convert more Mojo types to STL (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
Index: chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.cc
diff --git a/chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.cc b/chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.cc
index 971bc3c8b3689a6458f696943e0b747e2e343369..1d575038ce1f4bd7fab00aa7ff09516a499a0544 100644
--- a/chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.cc
+++ b/chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.cc
@@ -109,11 +109,11 @@ void ArcWallpaperService::OnInstanceClosed() {
wc->RemoveObserver(this);
}
-void ArcWallpaperService::SetWallpaper(mojo::Array<uint8_t> png_data) {
+void ArcWallpaperService::SetWallpaper(const std::vector<uint8_t>& png_data) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
ImageDecoder::Cancel(this);
- ImageDecoder::StartWithOptions(this, png_data.PassStorage(),
- ImageDecoder::ROBUST_PNG_CODEC, true);
+ ImageDecoder::StartWithOptions(this, png_data, ImageDecoder::ROBUST_PNG_CODEC,
+ true);
}
void ArcWallpaperService::GetWallpaper(const GetWallpaperCallback& callback) {

Powered by Google App Engine
This is Rietveld 408576698