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

Unified Diff: third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp

Issue 2396573002: reflow comments in modules/[presentation,storage] (Closed)
Patch Set: Created 4 years, 2 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/remoteplayback/RemotePlayback.cpp
diff --git a/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp b/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
index 254970a103d39f9cdb172443ca67a38a4bbf04e7..e306ed482093344c32dd6505a81b301f7308f273 100644
--- a/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
+++ b/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
@@ -65,11 +65,12 @@ ScriptPromise RemotePlayback::getAvailability(ScriptState* scriptState) {
ScriptPromiseResolver* resolver = ScriptPromiseResolver::create(scriptState);
ScriptPromise promise = resolver->promise();
- // TODO(avayvod): currently the availability is tracked for each media element
- // as soon as it's created, we probably want to limit that to when the page/element
- // is visible (see https://crbug.com/597281) and has default controls. If there's
- // no default controls, we should also start tracking availability on demand
- // meaning the Promise returned by getAvailability() will be resolved asynchronously.
+ // TODO(avayvod): Currently the availability is tracked for each media element
+ // as soon as it's created, we probably want to limit that to when the
+ // page/element is visible (see https://crbug.com/597281) and has default
+ // controls. If there are no default controls, we should also start tracking
+ // availability on demand meaning the Promise returned by getAvailability()
+ // will be resolved asynchronously.
RemotePlaybackAvailability* availability =
RemotePlaybackAvailability::take(resolver, m_availability);
m_availabilityObjects.append(availability);

Powered by Google App Engine
This is Rietveld 408576698