diff options
Diffstat (limited to 'chromium/third_party/blink/renderer/modules/app_banner/before_install_prompt_event.cc')
-rw-r--r-- | chromium/third_party/blink/renderer/modules/app_banner/before_install_prompt_event.cc | 11 |
1 files changed, 7 insertions, 4 deletions
diff --git a/chromium/third_party/blink/renderer/modules/app_banner/before_install_prompt_event.cc b/chromium/third_party/blink/renderer/modules/app_banner/before_install_prompt_event.cc index 6a09b2fefe5..d74526725cb 100644 --- a/chromium/third_party/blink/renderer/modules/app_banner/before_install_prompt_event.cc +++ b/chromium/third_party/blink/renderer/modules/app_banner/before_install_prompt_event.cc @@ -22,11 +22,14 @@ BeforeInstallPromptEvent::BeforeInstallPromptEvent( : Event(name, Bubbles::kNo, Cancelable::kYes), ContextClient(&frame), banner_service_(std::move(service_ptr)), - binding_(this, std::move(event_request)), + binding_(this, + std::move(event_request), + frame.GetTaskRunner(TaskType::kApplicationLifeCycle)), platforms_(platforms), - user_choice_(new UserChoiceProperty(frame.GetDocument(), - this, - UserChoiceProperty::kUserChoice)), + user_choice_(MakeGarbageCollected<UserChoiceProperty>( + frame.GetDocument(), + this, + UserChoiceProperty::kUserChoice)), require_gesture_(require_gesture) { DCHECK(banner_service_); DCHECK(binding_.is_bound()); |