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

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

Issue 2332063004: cheets: remove setWallpaper from ArcIntentHelper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reduce setting wallpaper latency. 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 5aaab3ae7fc76f532476a9aafa821be3d4cc23a7..ce6e3c6bebefc13fd3761897be99f6d113423af3 100644
--- a/chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.cc
+++ b/chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.cc
@@ -107,11 +107,10 @@ void ArcWallpaperService::OnInstanceClosed() {
wc->RemoveObserver(this);
}
-void ArcWallpaperService::SetWallpaper(const std::vector<uint8_t>& png_data) {
+void ArcWallpaperService::SetWallpaper(const std::vector<uint8_t>& data) {
DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
ImageDecoder::Cancel(this);
- ImageDecoder::StartWithOptions(this, png_data, ImageDecoder::ROBUST_PNG_CODEC,
- true);
+ ImageDecoder::StartWithOptions(this, data, ImageDecoder::DEFAULT_CODEC, true);
}
void ArcWallpaperService::GetWallpaper(const GetWallpaperCallback& callback) {
« no previous file with comments | « chrome/browser/chromeos/arc/wallpaper/arc_wallpaper_service.h ('k') | components/arc/common/wallpaper.mojom » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698