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

Issue 14195008: Revert 194613 "Pepper: Autogenerate thunk for PPB_URL_Loader." (Closed)

Created:
7 years, 8 months ago by asargent_no_longer_on_chrome
Modified:
7 years, 8 months ago
Reviewers:
teravest
CC:
chromium-reviews
Visibility:
Public.

Description

Revert 194613 "Pepper: Autogenerate thunk for PPB_URL_Loader." > Pepper: Autogenerate thunk for PPB_URL_Loader. > > This requires another annotation: > "always_set_output_parameters" > > This annotation ensures that the thunk implementation will zero-out the value of all output parameters on failure. > > Tested: > Built chrome and browser_tests. > > BUG= > > Review URL: https://codereview.chromium.org/14007010 TBR=teravest@chromium.org Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=194617

Patch Set 1 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+83 lines, -163 lines) Patch
M trunk/src/ppapi/api/ppb_gamepad.idl View 1 chunk +0 lines, -1 line 0 comments Download
M trunk/src/ppapi/api/ppb_url_loader.idl View 3 chunks +0 lines, -4 lines 0 comments Download
M trunk/src/ppapi/api/trusted/ppb_url_loader_trusted.idl View 1 chunk +0 lines, -2 lines 0 comments Download
M trunk/src/ppapi/generators/idl_thunk.py View 3 chunks +24 lines, -55 lines 0 comments Download
M trunk/src/ppapi/ppapi_shared.gypi View 1 chunk +0 lines, -1 line 0 comments Download
M trunk/src/ppapi/proxy/ppb_url_loader_proxy.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M trunk/src/ppapi/thunk/ppb_gamepad_thunk.cc View 2 chunks +2 lines, -2 lines 0 comments Download
M trunk/src/ppapi/thunk/ppb_url_loader_api.h View 1 chunk +1 line, -2 lines 0 comments Download
M trunk/src/ppapi/thunk/ppb_url_loader_thunk.cc View 6 chunks +51 lines, -43 lines 0 comments Download
D trunk/src/ppapi/thunk/ppb_url_loader_trusted_thunk.cc View 1 chunk +0 lines, -48 lines 0 comments Download
M trunk/src/webkit/plugins/ppapi/ppb_url_loader_impl.h View 1 chunk +1 line, -1 line 0 comments Download
M trunk/src/webkit/plugins/ppapi/ppb_url_loader_impl.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 4 (0 generated)
asargent_no_longer_on_chrome
7 years, 8 months ago (2013-04-17 17:04:51 UTC) #1
asargent_no_longer_on_chrome
Committed patchset #1 manually as r194617.
7 years, 8 months ago (2013-04-17 17:05:02 UTC) #2
teravest
lgtm, I suppose. Did I miss a build breakage? On Wed, Apr 17, 2013 at ...
7 years, 8 months ago (2013-04-17 17:07:10 UTC) #3
asargent_no_longer_on_chrome
7 years, 8 months ago (2013-04-17 17:09:42 UTC) #4
Looks like it was clang warnings. See the buildbot failure email that was
sent - it links to:

http://build.chromium.org/p/chromium.chromiumos/builders/Linux%20ChromiumOS%2...

which shows:

ppapi/thunk/ppb_gamepad_thunk.cc:30:26:error: 'memset' call operates
on objects of type 'struct PP_GamepadsSampleData' while the size is
based on a different type 'struct PP_GamepadsSampleData *'
[-Werror,-Wsizeof-pointer-memaccess]
  memset(data, 0, sizeof(data));
         ~~~~            ^~~~
ppapi/thunk/ppb_gamepad_thunk.cc:30:26: note: did you mean to
dereference the argument to 'sizeof' (and multiply it by the number of
elements)?
  memset(data, 0, sizeof(data));
                         ^~~~
1 error generated.make: ***
[out/Debug/obj.target/ppapi_shared/ppapi/thunk/ppb_gamepad_thunk.o]
Error 1
ppapi/thunk/ppb_url_loader_thunk.cc:63:34:error: 'memset' call
operates on objects of type 'int64_t' (aka 'long long') while the size
is based on a different type 'int64_t *' (aka 'long long *')
[-Werror,-Wsizeof-pointer-memaccess]
    memset(bytes_sent, 0, sizeof(bytes_sent));
           ~~~~~~~~~~            ^~~~~~~~~~
ppapi/thunk/ppb_url_loader_thunk.cc:63:34: note: did you mean to
dereference the argument to 'sizeof' (and multiply it by the number of
elements)?
    memset(bytes_sent, 0, sizeof(bytes_sent));
                                 ^~~~~~~~~~
ppapi/thunk/ppb_url_loader_thunk.cc:64:46:error: 'memset' call
operates on objects of type 'int64_t' (aka 'long long') while the size
is based on a different type 'int64_t *' (aka 'long long *')
[-Werror,-Wsizeof-pointer-memaccess]
    memset(total_bytes_to_be_sent, 0, sizeof(total_bytes_to_be_sent));
           ~~~~~~~~~~~~~~~~~~~~~~            ^~~~~~~~~~~~~~~~~~~~~~
ppapi/thunk/ppb_url_loader_thunk.cc:64:46: note: did you mean to
dereference the argument to 'sizeof' (and multiply it by the number of
elements)?
    memset(total_bytes_to_be_sent, 0, sizeof(total_bytes_to_be_sent));
                                             ^~~~~~~~~~~~~~~~~~~~~~
ppapi/thunk/ppb_url_loader_thunk.cc:76:38:error: 'memset' call
operates on objects of type 'int64_t' (aka 'long long') while the size
is based on a different type 'int64_t *' (aka 'long long *')
[-Werror,-Wsizeof-pointer-memaccess]
    memset(bytes_received, 0, sizeof(bytes_received));
           ~~~~~~~~~~~~~~            ^~~~~~~~~~~~~~
ppapi/thunk/ppb_url_loader_thunk.cc:76:38: note: did you mean to
dereference the argument to 'sizeof' (and multiply it by the number of
elements)?
    memset(bytes_received, 0, sizeof(bytes_received));
                                     ^~~~~~~~~~~~~~
ppapi/thunk/ppb_url_loader_thunk.cc:77:50:error: 'memset' call
operates on objects of type 'int64_t' (aka 'long long') while the size
is based on a different type 'int64_t *' (aka 'long long *')
[-Werror,-Wsizeof-pointer-memaccess]
    memset(total_bytes_to_be_received, 0, sizeof(total_bytes_to_be_received));
           ~~~~~~~~~~~~~~~~~~~~~~~~~~            ^~~~~~~~~~~~~~~~~~~~~~~~~~
ppapi/thunk/ppb_url_loader_thunk.cc:77:50: note: did you mean to
dereference the argument to 'sizeof' (and multiply it by the number of
elements)?
    memset(total_bytes_to_be_received, 0, sizeof(total_bytes_to_be_received));
                                                 ^~~~~~~~~~~~~~~~~~~~~~~~~~





On Wed, Apr 17, 2013 at 10:06 AM, Justin TerAvest <teravest@chromium.org>wrote:

> lgtm, I suppose. Did I miss a build breakage?
>
> On Wed, Apr 17, 2013 at 11:05 AM,  <asargent@chromium.org> wrote:
> > Committed patchset #1 manually as r194617.
> >
> > https://codereview.chromium.org/14195008/
>

Powered by Google App Engine
This is Rietveld 408576698