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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/V8PagePopupControllerBinding.cpp

Issue 2144093002: Adding checks for V8 functions returning Maybe<bool> (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 5 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/bindings/core/v8/V8PagePopupControllerBinding.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/V8PagePopupControllerBinding.cpp b/third_party/WebKit/Source/bindings/core/v8/V8PagePopupControllerBinding.cpp
index e8c989cc8b6ca449b7a771fdd7c516d480bd41e8..df4bf6d274d264e416edb9c900db2b1220ca8cb7 100644
--- a/third_party/WebKit/Source/bindings/core/v8/V8PagePopupControllerBinding.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/V8PagePopupControllerBinding.cpp
@@ -40,10 +40,12 @@ void V8PagePopupControllerBinding::installPagePopupController(v8::Local<v8::Cont
&& ContextFeatures::pagePopupEnabled(toDocument(executionContext))))
return;
- windowWrapper->SetAccessor(
+ if (windowWrapper->SetAccessor(
context,
v8AtomicString(context->GetIsolate(), "pagePopupController"),
- pagePopupControllerAttributeGetterCallback);
+ pagePopupControllerAttributeGetterCallback).IsNothing()) {
+ // TODO: What action should, if any, should be taken here?
+ }
}
} // namespace blink

Powered by Google App Engine
This is Rietveld 408576698