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

Unified Diff: components/arc/set_wallpaper_delegate.h

Issue 2332063004: cheets: remove setWallpaper from ArcIntentHelper. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 3 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: components/arc/set_wallpaper_delegate.h
diff --git a/components/arc/set_wallpaper_delegate.h b/components/arc/set_wallpaper_delegate.h
deleted file mode 100644
index 9494f5b89987ae988ad7b0050061aeebf6b73b57..0000000000000000000000000000000000000000
--- a/components/arc/set_wallpaper_delegate.h
+++ /dev/null
@@ -1,35 +0,0 @@
-// Copyright 2016 The Chromium Authors. All rights reserved.
-// Use of this source code is governed by a BSD-style license that can be
-// found in the LICENSE file.
-
-#ifndef COMPONENTS_ARC_SET_WALLPAPER_DELEGATE_H_
-#define COMPONENTS_ARC_SET_WALLPAPER_DELEGATE_H_
-
-#include <stdint.h>
-
-#include <vector>
-
-namespace arc {
-
-// Delegate to allow setting the wallpaper.
-// TODO(muyuanli): This class will be removed once ArcIntentHelper migrates to
-// WallpaperManager API.
-class SetWallpaperDelegate {
- public:
- virtual ~SetWallpaperDelegate() = default;
-
- static SetWallpaperDelegate* instance() { return instance_; }
- static void set_instance(SetWallpaperDelegate* delegate) {
- instance_ = delegate;
- }
-
- // Sets an image represented in JPEG format as the wallpaper.
- virtual void SetWallpaperJpeg(const std::vector<uint8_t>& jpeg_data) = 0;
-
- private:
- static SetWallpaperDelegate* instance_;
-};
-
-} // namespace arc
-
-#endif // COMPONENTS_ARC_SET_WALLPAPER_DELEGATE_H_

Powered by Google App Engine
This is Rietveld 408576698