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

Unified Diff: third_party/WebKit/Source/modules/presentation/PresentationAvailability.cpp

Issue 2366253002: Remove ActiveDOMObject::stop() (Closed)
Patch Set: temp 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/presentation/PresentationAvailability.cpp
diff --git a/third_party/WebKit/Source/modules/presentation/PresentationAvailability.cpp b/third_party/WebKit/Source/modules/presentation/PresentationAvailability.cpp
index 584ef4cabfba599b3b43f8b79d2f1230fd50a579..6393482b49999f5d941373e14caa996d1409a731 100644
--- a/third_party/WebKit/Source/modules/presentation/PresentationAvailability.cpp
+++ b/third_party/WebKit/Source/modules/presentation/PresentationAvailability.cpp
@@ -18,8 +18,9 @@ namespace blink {
namespace {
WebPresentationClient* presentationClient(ExecutionContext* executionContext) {
- ASSERT(executionContext && executionContext->isDocument());
-
+ if (!executionContext)
dcheng 2016/10/05 00:10:27 Is this because we can be asked to provide a prese
haraken 2016/10/05 02:38:24 You're correct. We didn't hit this branch before
+ return nullptr;
+ DCHECK(executionContext->isDocument());
Document* document = toDocument(executionContext);
if (!document->frame())
return nullptr;
@@ -94,7 +95,7 @@ void PresentationAvailability::suspend() {
setState(State::Suspended);
}
-void PresentationAvailability::stop() {
+void PresentationAvailability::contextDestroyed() {
setState(State::Inactive);
}

Powered by Google App Engine
This is Rietveld 408576698