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

Unified Diff: third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h

Issue 2867023002: [ServiceWorker] waitUntil() should wait until all promises got resolved/rejected. (Closed)
Patch Set: Remove old FIXME 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: third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h
diff --git a/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h b/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h
index 072d09304e728c8fb0174fc78dca29a99637f02c..c43c21a437fe4cdd775868fe668465b56aea0ce5 100644
--- a/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h
+++ b/third_party/WebKit/Source/modules/serviceworkers/WaitUntilObserver.h
@@ -64,7 +64,7 @@ class MODULES_EXPORT WaitUntilObserver final
WaitUntilObserver(ExecutionContext*, EventType, int event_id);
- void ReportError(const ScriptValue&);
+ void ReportPromiseRejected(const ScriptValue&);
falken 2017/05/09 08:07:31 Maybe just "OnPromiseRejected", as it's not really
leonhsl(Using Gerrit) 2017/05/10 05:03:34 Removed this method, DecrementPendingActivity() co
void ConsumeWindowInteraction(TimerBase*);
@@ -73,6 +73,7 @@ class MODULES_EXPORT WaitUntilObserver final
int event_id_;
int pending_activity_ = 0;
bool has_error_ = false;
+ bool has_rejected_promise_ = false;
bool event_dispatched_ = false;
falken 2017/05/09 08:07:31 Actually, instead of |has_error_| and |event_dispa
leonhsl(Using Gerrit) 2017/05/10 05:03:34 Done.
double event_dispatch_time_ = 0;
TaskRunnerTimer<WaitUntilObserver> consume_window_interaction_timer_;

Powered by Google App Engine
This is Rietveld 408576698