Remove unneeded HandleScopes.
authorCheng Zhao <zcbenz@gmail.com>
Mon, 27 Jan 2014 06:26:28 +0000 (14:26 +0800)
committerCheng Zhao <zcbenz@gmail.com>
Mon, 27 Jan 2014 07:01:06 +0000 (15:01 +0800)
commit5250871e69e6acca568ccfae893d538a7c32eb9b
tree5d8efdc968400d10e621ecd5e9bfc1a5140a5c2e
parent426bc9719414196f72c581ff263df24561e3b78c
Remove unneeded HandleScopes.

It's not necessary to create HandleScope in v8 native binding functions,
because it's guarrenteed that the there is a upper HandleScope when the
native function is called. So unless we are urgent to free the handles,
not using HandleScope in native binding functions is a cleaner and safer
choice.
14 files changed:
browser/api/atom_api_app.cc
browser/api/atom_api_auto_updater.cc
browser/api/atom_api_dialog.cc
browser/api/atom_api_menu.cc
browser/api/atom_api_menu_mac.mm
browser/api/atom_api_menu_win.cc
browser/api/atom_api_power_monitor.cc
browser/api/atom_api_window.cc
common/api/atom_api_clipboard.cc
common/api/atom_api_id_weak_map.cc
common/api/atom_api_screen.cc
common/api/atom_api_shell.cc
common/api/atom_api_v8_util.cc
common/api/atom_bindings.cc