summaryrefslogtreecommitdiffstats
path: root/extensions/renderer/v8_helpers.h
diff options
context:
space:
mode:
authorbashi <bashi@chromium.org>2015-07-09 17:10:52 -0700
committerCommit bot <commit-bot@chromium.org>2015-07-10 00:11:29 +0000
commit7aeaf6f32f1536a55af12466f7e46e1474f0b2f0 (patch)
tree992dae4c58bd30de24118b4c99de77989919153f /extensions/renderer/v8_helpers.h
parent8cdb0fdf93565a3d841deee2d64a6c012825441c (diff)
downloadchromium_src-7aeaf6f32f1536a55af12466f7e46e1474f0b2f0.zip
chromium_src-7aeaf6f32f1536a55af12466f7e46e1474f0b2f0.tar.gz
chromium_src-7aeaf6f32f1536a55af12466f7e46e1474f0b2f0.tar.bz2
extensions: Use Maybe APIs in SafeBuiltins
BUG=479065 Review URL: https://codereview.chromium.org/1223713002 Cr-Commit-Position: refs/heads/master@{#338192}
Diffstat (limited to 'extensions/renderer/v8_helpers.h')
-rw-r--r--extensions/renderer/v8_helpers.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/extensions/renderer/v8_helpers.h b/extensions/renderer/v8_helpers.h
index bafeb2d..2bfeee8 100644
--- a/extensions/renderer/v8_helpers.h
+++ b/extensions/renderer/v8_helpers.h
@@ -83,9 +83,10 @@ inline bool SetProperty(v8::Local<v8::Context> context,
// GetProperty() family calls V8::Object::Get() and extracts a value from
// returned MaybeLocal. Returns true on success.
+template <typename Key>
inline bool GetProperty(v8::Local<v8::Context> context,
v8::Local<v8::Object> object,
- v8::Local<v8::Value> key,
+ Key key,
v8::Local<v8::Value>* out) {
return object->Get(context, key).ToLocal(out);
}