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

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

Issue 2210143003: arc: Handle non-launchable apps. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: comment fixed Created 4 years, 4 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 8e734a6fb06d76905fc88b928efeb993e634d8ca..7e4f306ba1d0054f174bd51fabb3c85b16686498 100644
--- a/components/arc/test/fake_app_instance.cc
+++ b/components/arc/test/fake_app_instance.cc
@@ -74,9 +74,13 @@ void FakeAppInstance::SendInstallShortcut(const mojom::ShortcutInfo& shortcut) {
app_host_->OnInstallShortcut(shortcut.Clone());
}
+void FakeAppInstance::SendAppAdded(const mojom::AppInfo& app) {
+ app_host_->OnAppAdded(mojom::AppInfo::From(app));
+}
+
void FakeAppInstance::SendTaskCreated(int32_t taskId,
const mojom::AppInfo& app) {
- app_host_->OnTaskCreated(taskId, app.package_name, app.activity);
+ app_host_->OnTaskCreated(taskId, app.name, app.package_name, app.activity);
}
void FakeAppInstance::SendTaskDestroyed(int32_t taskId) {
« chrome/browser/ui/app_list/arc/arc_app_utils.cc ('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