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

Issue 8826011: Remove PP_Module from parameters for PPB_Var.VarFromUtf8. (Closed)

Created:
9 years ago by dmichael (off chromium)
Modified:
9 years ago
Reviewers:
bbudge, brettw, Matt Ball
CC:
chromium-reviews, brettw-cc_chromium.org, yzshen+watch_chromium.org, darin-cc_chromium.org, dcheng, Paweł Hajdan Jr., piman+watch_chromium.org, ihf+watch_chromium.org, darin (slow to review)
Visibility:
Public.

Description

Remove PP_Module from parameters for PPB_Var.VarFromUtf8. This change has tendrils stretching throughout the code, but mostly this lets us delete a bunch of stuff. This also does a slight refactor to put the PPB_Var implementations in 1 place, since they were already practically identical, and I didn't want to do the backwards-compat code in 2 places. BUG=106596 TEST=N/A TBR=darin,tony darin,tony TBR for rubber-stamp of webkit/glue/webkit_glue.gypi Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=113491

Patch Set 1 #

Patch Set 2 : Fix windows build and some nacl tests. #

Total comments: 6

Patch Set 3 : Fix indentation. #

Total comments: 2

Patch Set 4 : Fix backwards-compat for C++ Var. #

Patch Set 5 : Fix NaCl copyright headers #

Patch Set 6 : Merged #

Patch Set 7 : merge #

Unified diffs Side-by-side diffs Delta from patch set Stats (+347 lines, -1012 lines) Patch
M chrome/renderer/chrome_ppb_pdf_impl.cc View 2 chunks +1 line, -2 lines 0 comments Download
M ppapi/api/ppb_var.idl View 5 chunks +37 lines, -12 lines 0 comments Download
M ppapi/c/ppb_var.h View 4 chunks +13 lines, -6 lines 0 comments Download
M ppapi/cpp/var.h View 1 2 3 4 5 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/cpp/var.cc View 1 2 3 7 chunks +27 lines, -22 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_font_rpc_server.cc View 5 chunks +5 lines, -6 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_input_event_rpc_server.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_messaging_rpc_server.cc View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_pdf_rpc_server.cc View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_ppb_url_request_info_rpc_server.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/browser_ppp_selection.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/object_serialize.h View 1 2 3 4 2 chunks +4 lines, -5 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/object_serialize.cc View 1 2 3 4 5 4 chunks +6 lines, -10 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb.cc View 1 chunk +1 line, -0 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_file_ref.cc View 1 2 2 chunks +3 lines, -7 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_font.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_graphics_3d.cc View 1 2 3 4 5 6 1 chunk +0 lines, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_pdf.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_url_response_info.cc View 1 2 3 4 2 chunks +4 lines, -4 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_var.h View 1 chunk +3 lines, -1 line 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_var.cc View 1 2 3 4 5 5 chunks +18 lines, -5 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppp_input_event_rpc_server.cc View 2 chunks +1 line, -2 lines 0 comments Download
M ppapi/native_client/src/shared/ppapi_proxy/plugin_ppp_messaging_rpc_server.cc View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/native_client/src/trusted/plugin/browser_interface.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M ppapi/native_client/tests/ppapi_browser/ppb_pdf/ppapi_ppb_pdf.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M ppapi/native_client/tests/ppapi_geturl/module.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M ppapi/native_client/tests/ppapi_test_lib/test_interface.cc View 1 2 chunks +3 lines, -5 lines 0 comments Download
M ppapi/ppapi_proxy.gypi View 1 chunk +0 lines, -2 lines 0 comments Download
M ppapi/ppapi_shared.gypi View 1 2 3 4 5 1 chunk +2 lines, -0 lines 0 comments Download
M ppapi/proxy/host_var_serialization_rules.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/interface_list.cc View 1 2 3 4 5 3 chunks +4 lines, -2 lines 0 comments Download
M ppapi/proxy/plugin_var_serialization_rules.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_flash_proxy.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_font_proxy.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M ppapi/proxy/ppb_var_deprecated_proxy.cc View 1 6 chunks +20 lines, -40 lines 0 comments Download
D ppapi/proxy/ppb_var_proxy.h View 1 chunk +0 lines, -23 lines 0 comments Download
D ppapi/proxy/ppb_var_proxy.cc View 1 chunk +0 lines, -61 lines 0 comments Download
M ppapi/proxy/ppb_var_unittest.cc View 6 chunks +8 lines, -10 lines 0 comments Download
M ppapi/proxy/ppp_messaging_proxy_unittest.cc View 1 chunk +1 line, -1 line 0 comments Download
M ppapi/proxy/proxy_object_var.cc View 1 chunk +1 line, -2 lines 0 comments Download
M ppapi/shared_impl/ppb_file_ref_shared.cc View 1 2 3 4 5 3 chunks +2 lines, -7 lines 0 comments Download
M ppapi/shared_impl/ppb_input_event_shared.cc View 1 2 3 4 5 2 chunks +1 line, -4 lines 0 comments Download
M ppapi/shared_impl/ppb_url_util_shared.h View 1 2 3 4 5 2 chunks +1 line, -3 lines 0 comments Download
M ppapi/shared_impl/ppb_url_util_shared.cc View 1 2 3 4 5 3 chunks +5 lines, -9 lines 0 comments Download
A ppapi/shared_impl/ppb_var_impl.h View 1 1 chunk +26 lines, -0 lines 0 comments Download
A + ppapi/shared_impl/ppb_var_impl.cc View 1 4 chunks +28 lines, -11 lines 0 comments Download
M ppapi/shared_impl/private/net_address_private_impl.cc View 3 chunks +4 lines, -4 lines 0 comments Download
M ppapi/shared_impl/var.h View 7 chunks +8 lines, -17 lines 0 comments Download
M ppapi/shared_impl/var.cc View 3 chunks +9 lines, -12 lines 0 comments Download
M ppapi/tests/test_var.cc View 2 chunks +2 lines, -4 lines 0 comments Download
M ppapi/tests/test_websocket.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M webkit/glue/webkit_glue.gypi View 1 2 3 4 5 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/host_var_tracker.h View 1 chunk +0 lines, -1 line 0 comments Download
M webkit/plugins/ppapi/message_channel.cc View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M webkit/plugins/ppapi/npapi_glue.h View 3 chunks +6 lines, -29 lines 0 comments Download
M webkit/plugins/ppapi/npapi_glue.cc View 1 2 3 4 5 6 chunks +7 lines, -28 lines 0 comments Download
M webkit/plugins/ppapi/npobject_var.h View 2 chunks +1 line, -2 lines 0 comments Download
M webkit/plugins/ppapi/npobject_var.cc View 1 chunk +2 lines, -4 lines 0 comments Download
M webkit/plugins/ppapi/plugin_module.cc View 1 2 3 4 5 6 3 chunks +6 lines, -3 lines 0 comments Download
M webkit/plugins/ppapi/plugin_object.cc View 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppapi_plugin_instance.cc View 1 2 3 4 5 4 chunks +5 lines, -7 lines 0 comments Download
M webkit/plugins/ppapi/ppb_file_ref_impl.cc View 1 2 3 4 5 1 chunk +0 lines, -4 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_clipboard_impl.cc View 2 chunks +1 line, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_flash_impl.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_font_impl.cc View 1 2 3 4 5 1 chunk +1 line, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_transport_impl.cc View 1 chunk +1 line, -2 lines 0 comments Download
M webkit/plugins/ppapi/ppb_url_response_info_impl.cc View 2 chunks +5 lines, -10 lines 0 comments Download
A + webkit/plugins/ppapi/ppb_var_deprecated_impl.h View 1 chunk +4 lines, -6 lines 0 comments Download
A + webkit/plugins/ppapi/ppb_var_deprecated_impl.cc View 1 6 chunks +23 lines, -69 lines 0 comments Download
D webkit/plugins/ppapi/ppb_var_impl.h View 1 chunk +0 lines, -23 lines 0 comments Download
D webkit/plugins/ppapi/ppb_var_impl.cc View 1 chunk +0 lines, -468 lines 0 comments Download
M webkit/plugins/ppapi/ppb_websocket_impl.cc View 1 2 3 4 5 5 chunks +5 lines, -10 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
dmichael (off chromium)
Most of the files were pretty mechanical, so it's not as bad as it looks. ...
9 years ago (2011-12-07 04:40:47 UTC) #1
bbudge
ppapi/native_client LGTM http://codereview.chromium.org/8826011/diff/2001/ppapi/native_client/tests/ppapi_test_lib/test_interface.cc File ppapi/native_client/tests/ppapi_test_lib/test_interface.cc (left): http://codereview.chromium.org/8826011/diff/2001/ppapi/native_client/tests/ppapi_test_lib/test_interface.cc#oldcode33 ppapi/native_client/tests/ppapi_test_lib/test_interface.cc:33: PP_Var post_var = PPBVar()->VarFromUtf8(pp_instance(), This was passing ...
9 years ago (2011-12-07 15:53:28 UTC) #2
bbudge
Missed a couple of nits. Still LGTM. http://codereview.chromium.org/8826011/diff/2001/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_file_ref.cc File ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_file_ref.cc (right): http://codereview.chromium.org/8826011/diff/2001/ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_file_ref.cc#newcode123 ppapi/native_client/src/shared/ppapi_proxy/plugin_ppb_file_ref.cc:123: DeserializeTo(path_bytes.get(), length, ...
9 years ago (2011-12-07 16:00:34 UTC) #3
brettw
lgtm http://codereview.chromium.org/8826011/diff/10001/ppapi/cpp/var.cc File ppapi/cpp/var.cc (right): http://codereview.chromium.org/8826011/diff/10001/ppapi/cpp/var.cc#newcode109 ppapi/cpp/var.cc:109: get_interface<PPB_Var>()->AddRef(var_); There are a few other places in ...
9 years ago (2011-12-07 17:40:53 UTC) #4
dmichael (off chromium)
FWIW, I just manually tested a small example plugin (ppapi/examples/scripting/post_message.html), and the plugin built with ...
9 years ago (2011-12-07 18:07:38 UTC) #5
dmichael (off chromium)
Added darin and tony TBR for webkit/glue/webkit_glue.gypi change.
9 years ago (2011-12-07 18:12:34 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dmichael@chromium.org/8826011/16002
9 years ago (2011-12-07 18:30:43 UTC) #7
tony
On 2011/12/07 18:12:34, dmichael wrote: > Added darin and tony TBR for webkit/glue/webkit_glue.gypi change. webkit/glue ...
9 years ago (2011-12-07 19:08:41 UTC) #8
commit-bot: I haz the power
Can't apply patch for file ppapi/ppapi_shared.gypi. While running patch -p1 --forward --force; patching file ppapi/ppapi_shared.gypi ...
9 years ago (2011-12-07 20:45:59 UTC) #9
Matt Ball
FYI: Looks like the NaCl SDK may need to be tweak just a bit to ...
9 years ago (2011-12-08 00:25:38 UTC) #10
dmichael (off chromium)
9 years ago (2011-12-08 03:34:18 UTC) #11
Sorry about that, I forgot about the SDK not being behind a DEPS roll
anymore.

CL to fix it here:
http://codereview.chromium.org/8883008/

On Wed, Dec 7, 2011 at 5:25 PM, <mball@google.com> wrote:

> FYI: Looks like the NaCl SDK may need to be tweak just a bit to handle this
> change:
>
>
> hello_world_c/hello_world_c.c: In function 'CStrToVar':
> hello_world_c/hello_world_c.c:**73: warning: passing argument 1 of
> 'ppb_var_interface->**VarFromUtf8' makes pointer from integer without a
> cast
> hello_world_c/hello_world_c.c:**73: note: expected 'const char *' but
> argument is
> of type 'PP_Module'
> hello_world_c/hello_world_c.c:**73: warning: passing argument 2 of
> 'ppb_var_interface->**VarFromUtf8' makes integer from pointer without a
> cast
> hello_world_c/hello_world_c.c:**73: note: expected 'uint32_t' but
> argument is of
> type 'const char *'
> hello_world_c/hello_world_c.c:**73: error: too many arguments to function
> 'ppb_var_interface->**VarFromUtf8'
>
>
>
http://codereview.chromium.**org/8826011/<http://codereview.chromium.org/8826...
>

Powered by Google App Engine
This is Rietveld 408576698