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

Unified Diff: extensions/renderer/native_handler.h

Issue 1167423002: Use V8 Maybe APIs in extensions/renderer (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 6 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
« no previous file with comments | « extensions/renderer/module_system_unittest.cc ('k') | extensions/renderer/object_backed_native_handler.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: extensions/renderer/native_handler.h
diff --git a/extensions/renderer/native_handler.h b/extensions/renderer/native_handler.h
index de1b9f52796399695e3264cf974a8fa82e8de622..2bd9558e5249eb2b43ed6c29239ee8c6d65a2223 100644
--- a/extensions/renderer/native_handler.h
+++ b/extensions/renderer/native_handler.h
@@ -21,7 +21,7 @@ class NativeHandler {
virtual ~NativeHandler();
// Create a new instance of the object this handler specifies.
- virtual v8::Local<v8::Object> NewInstance() = 0;
+ virtual v8::MaybeLocal<v8::Object> NewInstance() = 0;
// Invalidate this object so it cannot be used any more. This is needed
// because it's possible for this to outlive its owner context. Invalidate
« no previous file with comments | « extensions/renderer/module_system_unittest.cc ('k') | extensions/renderer/object_backed_native_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698