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

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

Issue 2623273003: arc: Remove ArcServiceManager::Observer (Closed)
Patch Set: fix tests, review Created 3 years, 11 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 b4519b5a5d2aa9157fcddb9343b4f78e08fa8e1f..8eb43b30fb0df0a29539cde3dd7555efdc4c4240 100644
--- a/components/arc/intent_helper/arc_intent_helper_bridge.cc
+++ b/components/arc/intent_helper/arc_intent_helper_bridge.cc
@@ -24,6 +24,10 @@
namespace arc {
// static
+const char ArcIntentHelperBridge::kArcServiceName[] =
+ "arc::ArcIntentHelperBridge";
+
+// static
const char ArcIntentHelperBridge::kArcIntentHelperPackageName[] =
"org.chromium.arc.intent_helper";
@@ -153,6 +157,14 @@ bool ArcIntentHelperBridge::IsIntentHelperAvailable(GetResult* out_error_code) {
return true;
}
+// static
+ArcIntentHelperBridge* ArcIntentHelperBridge::Get(
+ ArcServiceManager* service_manager) {
+ if (!service_manager)
+ return nullptr;
+ return service_manager->GetService<ArcIntentHelperBridge>();
+}
+
void ArcIntentHelperBridge::OnIntentFiltersUpdated(
std::vector<IntentFilter> filters) {
DCHECK(thread_checker_.CalledOnValidThread());

Powered by Google App Engine
This is Rietveld 408576698