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

Unified Diff: components/arc/test/fake_app_instance.cc

Issue 2894443002: arc: Set custom icon in shelf for ARC apps. (Closed)
Patch Set: comments addressed Created 3 years, 7 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/test/fake_app_instance.cc
diff --git a/components/arc/test/fake_app_instance.cc b/components/arc/test/fake_app_instance.cc
index cc0ced3be73e422563b2480e9873d18cb8bb0acd..3d4b8f7ec9a17d5e8e500e6ecca068825239036a 100644
--- a/components/arc/test/fake_app_instance.cc
+++ b/components/arc/test/fake_app_instance.cc
@@ -105,6 +105,14 @@ void FakeAppInstance::SendTaskCreated(int32_t taskId,
intent);
}
+void FakeAppInstance::SendTaskDescription(int32_t taskId,
+ const std::string& label,
+ const std::string& icon_png_data) {
+ app_host_->OnTaskSetDescription(
+ taskId, label,
+ std::vector<uint8_t>(icon_png_data.begin(), icon_png_data.end()));
+}
+
void FakeAppInstance::SendTaskDestroyed(int32_t taskId) {
app_host_->OnTaskDestroyed(taskId);
}
« components/arc/test/fake_app_instance.h ('K') | « components/arc/test/fake_app_instance.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698