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 2881283002: add interface to start first run when voice interaction oobe is completed (Closed)
Patch Set: 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
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 b9e2f350cfda8af4c8fe53fdb81222e31e06c164..1763a018a786c2433cfbcb210aa666c70fabb9fe 100644
--- a/components/arc/intent_helper/arc_intent_helper_bridge.cc
+++ b/components/arc/intent_helper/arc_intent_helper_bridge.cc
@@ -30,10 +30,12 @@ const char ArcIntentHelperBridge::kArcIntentHelperPackageName[] =
ArcIntentHelperBridge::ArcIntentHelperBridge(
ArcBridgeService* bridge_service,
- const scoped_refptr<LocalActivityResolver>& activity_resolver)
+ const scoped_refptr<LocalActivityResolver>& activity_resolver,
+ const base::Callback<void()> first_run_function)
: ArcService(bridge_service),
binding_(this),
- activity_resolver_(activity_resolver) {
+ activity_resolver_(activity_resolver),
+ start_first_run_function_(first_run_function) {
DCHECK(thread_checker_.CalledOnValidThread());
arc_bridge_service()->intent_helper()->AddObserver(this);
}
@@ -87,6 +89,11 @@ void ArcIntentHelperBridge::SetWallpaperDeprecated(
LOG(ERROR) << "IntentHelper.SetWallpaper is deprecated";
}
+void ArcIntentHelperBridge::OnVoiceInteractionOobeSetupCompleted() {
+ DCHECK(thread_checker_.CalledOnValidThread());
+ start_first_run_function_.Run();
+}
+
ArcIntentHelperBridge::GetResult ArcIntentHelperBridge::GetActivityIcons(
const std::vector<ActivityName>& activities,
const OnIconsReadyCallback& callback) {

Powered by Google App Engine
This is Rietveld 408576698