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()); |