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

Issue 16032015: Extensions: pass ChromeV8Context around instead of v8::Handle. (Closed)

Created:
7 years, 6 months ago by marja
Modified:
7 years, 6 months ago
CC:
chromium-reviews, Aaron Boodman, rginda+watch_chromium.org, chromium-apps-reviews_chromium.org
Visibility:
Public.

Description

Extensions: pass ChromeV8Context around instead of v8::Handle. There was a TODO about this in object_backed_native_handler.h. The passed handle was a Persistent behind the scenes, and we're going to disable copying Persistents. We'd need to pass a Local handle instead, but this way the TODO gets done with a similar amount of effort. BUG=236290 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=203978

Patch Set 1 #

Patch Set 2 : . #

Total comments: 34

Patch Set 3 : Code review (kalman) #

Total comments: 11

Patch Set 4 : . #

Patch Set 5 : Code review (kalman) #

Patch Set 6 : rebased #

Patch Set 7 : build fix #

Patch Set 8 : moar #

Patch Set 9 : rebased #

Unified diffs Side-by-side diffs Delta from patch set Stats (+200 lines, -228 lines) Patch
M chrome/renderer/extensions/api_activity_logger.h View 1 2 2 chunks +1 line, -2 lines 0 comments Download
M chrome/renderer/extensions/api_activity_logger.cc View 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/api_definitions_natives.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/api_definitions_natives.cc View 1 chunk +1 line, -2 lines 0 comments Download
M chrome/renderer/extensions/app_bindings.cc View 1 2 3 7 chunks +14 lines, -14 lines 0 comments Download
M chrome/renderer/extensions/app_runtime_custom_bindings.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/app_runtime_custom_bindings.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/app_window_custom_bindings.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/renderer/extensions/app_window_custom_bindings.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/chrome_v8_extension.h View 1 2 3 4 1 chunk +1 line, -3 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_extension.cc View 1 2 3 4 2 chunks +3 lines, -9 lines 0 comments Download
M chrome/renderer/extensions/content_watcher.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/content_watcher.cc View 1 2 3 4 5 6 7 8 3 chunks +5 lines, -5 lines 0 comments Download
M chrome/renderer/extensions/context_menus_custom_bindings.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/renderer/extensions/context_menus_custom_bindings.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/dispatcher.cc View 1 2 3 4 5 6 7 8 15 chunks +46 lines, -52 lines 0 comments Download
M chrome/renderer/extensions/event_bindings.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/renderer/extensions/event_bindings.cc View 1 2 3 4 5 11 chunks +19 lines, -28 lines 0 comments Download
M chrome/renderer/extensions/extension_custom_bindings.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/extension_custom_bindings.cc View 1 2 1 chunk +2 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/file_browser_handler_custom_bindings.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/file_browser_handler_custom_bindings.cc View 1 2 3 4 5 6 7 3 chunks +3 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/file_browser_private_custom_bindings.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/file_browser_private_custom_bindings.cc View 1 2 3 4 5 3 chunks +4 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/file_system_natives.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/file_system_natives.cc View 1 2 3 4 5 4 chunks +6 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/i18n_custom_bindings.h View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/renderer/extensions/i18n_custom_bindings.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/media_galleries_custom_bindings.h View 2 chunks +1 line, -2 lines 0 comments Download
M chrome/renderer/extensions/media_galleries_custom_bindings.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/miscellaneous_bindings.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/miscellaneous_bindings.cc View 1 2 3 4 5 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/module_system.h View 2 chunks +2 lines, -1 line 0 comments Download
M chrome/renderer/extensions/module_system.cc View 1 2 6 chunks +7 lines, -7 lines 0 comments Download
M chrome/renderer/extensions/module_system_unittest.cc View 1 2 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/object_backed_native_handler.h View 1 2 3 3 chunks +4 lines, -5 lines 0 comments Download
M chrome/renderer/extensions/object_backed_native_handler.cc View 1 2 5 chunks +9 lines, -7 lines 0 comments Download
M chrome/renderer/extensions/page_actions_custom_bindings.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/page_actions_custom_bindings.cc View 1 2 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/page_capture_custom_bindings.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/page_capture_custom_bindings.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/runtime_custom_bindings.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/runtime_custom_bindings.cc View 1 2 3 chunks +5 lines, -6 lines 0 comments Download
M chrome/renderer/extensions/send_request_natives.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/send_request_natives.cc View 1 2 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/renderer/extensions/set_icon_natives.h View 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/set_icon_natives.cc View 1 2 2 chunks +3 lines, -4 lines 0 comments Download
M chrome/renderer/extensions/sync_file_system_custom_bindings.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/sync_file_system_custom_bindings.cc View 1 2 3 chunks +4 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/tabs_custom_bindings.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/tabs_custom_bindings.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/tts_custom_bindings.h View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/tts_custom_bindings.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/web_request_custom_bindings.h View 1 2 1 chunk +1 line, -2 lines 0 comments Download
M chrome/renderer/extensions/web_request_custom_bindings.cc View 1 2 2 chunks +2 lines, -3 lines 0 comments Download
M chrome/renderer/extensions/webstore_bindings.cc View 1 2 3 chunks +4 lines, -4 lines 0 comments Download
M chrome/test/base/module_system_test.h View 1 2 2 chunks +2 lines, -1 line 0 comments Download
M chrome/test/base/module_system_test.cc View 1 2 3 3 chunks +9 lines, -4 lines 0 comments Download

Messages

Total messages: 16 (0 generated)
marja
(kalman, ptal) I'm in your code, doing your TODOs. :) We need this because we're ...
7 years, 6 months ago (2013-05-29 12:28:34 UTC) #1
not at google - send to devlin
Quick thing before I review: I was under the impression that copying a Persistent as ...
7 years, 6 months ago (2013-05-29 15:36:26 UTC) #2
not at google - send to devlin
thanks so much for doing this, there are a whole bunch of cleanups that this ...
7 years, 6 months ago (2013-05-29 15:55:13 UTC) #3
marja
We'll also make it so that Persistent doesn't subclass Handle, so copying Persistent as Handle ...
7 years, 6 months ago (2013-05-29 15:57:42 UTC) #4
marja
thanks for having a look! https://codereview.chromium.org/16032015/diff/2001/chrome/renderer/extensions/api_activity_logger.h File chrome/renderer/extensions/api_activity_logger.h (right): https://codereview.chromium.org/16032015/diff/2001/chrome/renderer/extensions/api_activity_logger.h#newcode20 chrome/renderer/extensions/api_activity_logger.h:20: APIActivityLogger(Dispatcher* dispatcher, ChromeV8Context* v8_context); ...
7 years, 6 months ago (2013-05-29 16:56:33 UTC) #5
not at google - send to devlin
lgtm https://codereview.chromium.org/16032015/diff/13001/chrome/renderer/extensions/chrome_v8_extension.cc File chrome/renderer/extensions/chrome_v8_extension.cc (right): https://codereview.chromium.org/16032015/diff/13001/chrome/renderer/extensions/chrome_v8_extension.cc#newcode39 chrome/renderer/extensions/chrome_v8_extension.cc:39: return dispatcher_->v8_context_set().GetByV8Context(context()->v8_context()); this method is actually entirely unnecessary ...
7 years, 6 months ago (2013-05-29 17:41:55 UTC) #6
marja
Thanks for review! https://codereview.chromium.org/16032015/diff/13001/chrome/renderer/extensions/chrome_v8_extension.cc File chrome/renderer/extensions/chrome_v8_extension.cc (right): https://codereview.chromium.org/16032015/diff/13001/chrome/renderer/extensions/chrome_v8_extension.cc#newcode39 chrome/renderer/extensions/chrome_v8_extension.cc:39: return dispatcher_->v8_context_set().GetByV8Context(context()->v8_context()); On 2013/05/29 17:41:55, kalman ...
7 years, 6 months ago (2013-05-31 10:06:44 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/16032015/57001
7 years, 6 months ago (2013-05-31 10:07:02 UTC) #8
commit-bot: I haz the power
Retried try job too often on chromium_presubmit for step(s) presubmit http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=chromium_presubmit&number=6093
7 years, 6 months ago (2013-05-31 10:18:54 UTC) #9
marja
sky, could you OWNERS-rubberstamp chrome/test/base/*? kalman@ did the actual review.
7 years, 6 months ago (2013-05-31 11:00:33 UTC) #10
marja
oops, forgot to add sky@ as a reviewer :/ sky, could you OWNERS-rubberstamp chrome/test/base/*? kalman@ ...
7 years, 6 months ago (2013-06-03 07:37:19 UTC) #11
sky
LGTM
7 years, 6 months ago (2013-06-03 15:58:48 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/16032015/72001
7 years, 6 months ago (2013-06-03 16:01:13 UTC) #13
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
7 years, 6 months ago (2013-06-03 16:21:38 UTC) #14
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/marja@chromium.org/16032015/84001
7 years, 6 months ago (2013-06-04 07:31:50 UTC) #15
commit-bot: I haz the power
7 years, 6 months ago (2013-06-04 16:39:14 UTC) #16
Message was sent while issue was closed.
Change committed as 203978

Powered by Google App Engine
This is Rietveld 408576698