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

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

Issue 2078683002: Add handler and mojo interface to accept android intent filters. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Store intent filers in LocalActivityResolver. Created 4 years, 6 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 15814543e66fe75fe9e6117a6815fa9f54635636..6c736b972fe124469f83bc5549895e3218dd0a9d 100644
--- a/components/arc/intent_helper/arc_intent_helper_bridge.cc
+++ b/components/arc/intent_helper/arc_intent_helper_bridge.cc
@@ -13,6 +13,7 @@
#include "base/memory/weak_ptr.h"
#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 "ui/base/layout.h"
#include "url/gurl.h"
@@ -26,8 +27,12 @@ constexpr char kArcIntentHelperPackageName[] = "org.chromium.arc.intent_helper";
ArcIntentHelperBridge::ArcIntentHelperBridge(
ArcBridgeService* bridge_service,
- const scoped_refptr<ActivityIconLoader>& icon_loader)
- : ArcService(bridge_service), binding_(this), icon_loader_(icon_loader) {
+ const scoped_refptr<ActivityIconLoader>& icon_loader,
+ const scoped_refptr<LocalActivityResolver>& activity_resolver)
+ : ArcService(bridge_service),
+ binding_(this),
+ icon_loader_(icon_loader),
+ activity_resolver_(activity_resolver) {
arc_bridge_service()->AddObserver(this);
}
@@ -95,4 +100,9 @@ ArcIntentHelperBridge::FilterOutIntentHelper(
return handlers_filtered;
}
+void ArcIntentHelperBridge::OnIntentFiltersUpdated(
+ mojo::Array<mojom::IntentFilterPtr> filters) {
+ activity_resolver_->UpdateIntentFilters(filters);
+}
+
} // namespace arc

Powered by Google App Engine
This is Rietveld 408576698