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

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

Issue 2458573002: bindings: Store ScriptState in generated callback functions (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 99e60193dbef92f3c56a153f8acefa0d8a7dd39f..2e71564369f4b86a19bf1135228dc53374b69c9e 100644
--- a/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
+++ b/third_party/WebKit/Source/modules/remoteplayback/RemotePlayback.cpp
@@ -202,7 +202,7 @@ void RemotePlayback::notifyInitialAvailability(int callbackId) {
if (iter == m_availabilityCallbacks.end())
return;
- iter->value->call(m_scriptState.get(), this, m_availability);
+ iter->value->call(this, m_availability);
}
void RemotePlayback::stateChanged(WebRemotePlaybackState state) {
@@ -243,7 +243,7 @@ void RemotePlayback::availabilityChanged(bool available) {
m_availability = available;
for (auto& callback : m_availabilityCallbacks.values())
- callback->call(m_scriptState.get(), this, m_availability);
+ callback->call(this, m_availability);
}
void RemotePlayback::promptCancelled() {

Powered by Google App Engine
This is Rietveld 408576698