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

Unified Diff: components/arc/intent_helper/arc_intent_helper_bridge.cc

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/intent_helper/arc_intent_helper_bridge.cc
diff --git a/components/arc/intent_helper/arc_intent_helper_bridge.cc b/components/arc/intent_helper/arc_intent_helper_bridge.cc
index b502d0cd32dd331fb667f9895b052ed5e9beb363..2043e9d640cabef8b7703ec87a4be5614424a8c6 100644
--- a/components/arc/intent_helper/arc_intent_helper_bridge.cc
+++ b/components/arc/intent_helper/arc_intent_helper_bridge.cc
@@ -16,7 +16,6 @@
#include "components/arc/intent_helper/activity_icon_loader.h"
#include "components/arc/intent_helper/link_handler_model_impl.h"
#include "components/arc/intent_helper/local_activity_resolver.h"
-#include "components/arc/set_wallpaper_delegate.h"
#include "ui/base/layout.h"
#include "url/gurl.h"
@@ -28,10 +27,6 @@ constexpr char kArcIntentHelperPackageName[] = "org.chromium.arc.intent_helper";
} // namespace
-// TODO(muyuanli): This will be removed once SetWallpaperDelegate class is
-// removed.
-SetWallpaperDelegate* SetWallpaperDelegate::instance_ = nullptr;
-
ArcIntentHelperBridge::ArcIntentHelperBridge(
ArcBridgeService* bridge_service,
const scoped_refptr<ActivityIconLoader>& icon_loader,
@@ -87,16 +82,6 @@ void ArcIntentHelperBridge::OpenWallpaperPicker() {
ash::WmShell::Get()->wallpaper_delegate()->OpenSetWallpaperPage();
}
-void ArcIntentHelperBridge::SetWallpaper(mojo::Array<uint8_t> jpeg_data) {
- DCHECK(thread_checker_.CalledOnValidThread());
- SetWallpaperDelegate* delegate = SetWallpaperDelegate::instance();
- if (delegate == nullptr) {
- LOG(ERROR) << "SetWallpaperDelegate is not available.";
- return;
- }
- delegate->SetWallpaperJpeg(jpeg_data.PassStorage());
-}
-
std::unique_ptr<ash::LinkHandlerModel> ArcIntentHelperBridge::CreateModel(
const GURL& url) {
DCHECK(thread_checker_.CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698