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

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: Add code accidentally removed. 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 7810a3ff3754ccbb7b6840d1ecd95a17556986ce..8ad915f4d7d2dd5de3ad9ac318ae8af56b66a16b 100644
--- a/components/arc/intent_helper/arc_intent_helper_bridge.cc
+++ b/components/arc/intent_helper/arc_intent_helper_bridge.cc
@@ -14,6 +14,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 "components/arc/set_wallpaper_delegate.h"
#include "ui/base/layout.h"
#include "url/gurl.h"
@@ -29,11 +30,13 @@ constexpr char kArcIntentHelperPackageName[] = "org.chromium.arc.intent_helper";
ArcIntentHelperBridge::ArcIntentHelperBridge(
ArcBridgeService* bridge_service,
const scoped_refptr<ActivityIconLoader>& icon_loader,
- std::unique_ptr<SetWallpaperDelegate> set_wallpaper_delegate)
+ std::unique_ptr<SetWallpaperDelegate> set_wallpaper_delegate,
+ const scoped_refptr<LocalActivityResolver>& activity_resolver)
: ArcService(bridge_service),
binding_(this),
icon_loader_(icon_loader),
- set_wallpaper_delegate_(std::move(set_wallpaper_delegate)) {
+ set_wallpaper_delegate_(std::move(set_wallpaper_delegate)),
+ activity_resolver_(activity_resolver) {
DCHECK(thread_checker_.CalledOnValidThread());
arc_bridge_service()->AddObserver(this);
}
@@ -115,4 +118,10 @@ ArcIntentHelperBridge::FilterOutIntentHelper(
return handlers_filtered;
}
+void ArcIntentHelperBridge::OnIntentFiltersUpdated(
+ mojo::Array<mojom::IntentFilterPtr> filters) {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ activity_resolver_->UpdateIntentFilters(std::move(filters));
+}
+
} // namespace arc
« no previous file with comments | « components/arc/intent_helper/arc_intent_helper_bridge.h ('k') | components/arc/intent_helper/local_activity_resolver.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698