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

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

Issue 2894443002: arc: Set custom icon in shelf for ARC apps. (Closed)
Patch Set: rebase 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
« no previous file with comments | « components/arc/test/fake_app_instance.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..0b3ecbf3db0c739e9e40e3c10ba004605fd10782 100644
--- a/components/arc/test/fake_app_instance.cc
+++ b/components/arc/test/fake_app_instance.cc
@@ -105,6 +105,16 @@ void FakeAppInstance::SendTaskCreated(int32_t taskId,
intent);
}
+void FakeAppInstance::SendTaskDescription(
+ int32_t taskId,
+ const std::string& label,
+ const std::string& icon_png_data_as_string) {
+ app_host_->OnTaskDescriptionUpdated(
+ taskId, label,
+ std::vector<uint8_t>(icon_png_data_as_string.begin(),
+ icon_png_data_as_string.end()));
+}
+
void FakeAppInstance::SendTaskDestroyed(int32_t taskId) {
app_host_->OnTaskDestroyed(taskId);
}
« no previous file with comments | « 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