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

Issue 955273003: Remove unused IDS_ constants from pdfium. (Closed)

Created:
5 years, 9 months ago by Tom Sepez
Modified:
5 years, 9 months ago
Reviewers:
Lei Zhang
CC:
pdfium-reviews_googlegroups.com, brucedawson
Base URL:
https://pdfium.googlesource.com/pdfium.git@master
Target Ref:
refs/heads/master
Visibility:
Public.

Description

Remove unused IDS_ constants from pdfium. Along the way, I noticed that one of these is used in a header file that isn't included anywhere and describes no actual code (JS_Console.h). Also add missing header guards, and IWYU to resources.h Also move a static function from a header to the new resources.cpp file. Also fix the grammar on some of the error messages. Most of these appear to be JS error messages destined for a JS error handler or (someday) a console (which can remain in english), and oddly, some appear to be about failed form validation, which smells user-facing. Also check that the message makes sense for the point the C++ code wants to use it, and reword accordingly. As it turns out, these currently don't make it back to JS due to the unimplemented JS_Error() function; this is an enabling step towards implementing it. R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/5b47dbfe85e8db4122089afa6d00264f1e973af2

Patch Set 1 #

Patch Set 2 : Use lowercase for formal parameter names. #

Total comments: 2

Patch Set 3 : 80 Cols #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -329 lines) Patch
M BUILD.gn View 1 2 2 chunks +1 line, -1 line 0 comments Download
D fpdfsdk/include/javascript/JS_Console.h View 1 2 1 chunk +0 lines, -239 lines 0 comments Download
M fpdfsdk/include/javascript/resource.h View 1 1 chunk +11 lines, -88 lines 0 comments Download
A fpdfsdk/src/javascript/resource.cpp View 1 2 1 chunk +47 lines, -0 lines 0 comments Download
M pdfium.gyp View 1 2 2 chunks +1 line, -1 line 0 comments Download

Messages

Total messages: 5 (1 generated)
Tom Sepez
Lei, for review. Bruce, FYI.
5 years, 9 months ago (2015-02-27 17:48:02 UTC) #2
Lei Zhang
lgtm https://codereview.chromium.org/955273003/diff/20001/fpdfsdk/src/javascript/resource.cpp File fpdfsdk/src/javascript/resource.cpp (right): https://codereview.chromium.org/955273003/diff/20001/fpdfsdk/src/javascript/resource.cpp#newcode22 fpdfsdk/src/javascript/resource.cpp:22: return L"The input value can't be parsed as ...
5 years, 9 months ago (2015-02-27 21:34:02 UTC) #3
Tom Sepez
https://codereview.chromium.org/955273003/diff/20001/fpdfsdk/src/javascript/resource.cpp File fpdfsdk/src/javascript/resource.cpp (right): https://codereview.chromium.org/955273003/diff/20001/fpdfsdk/src/javascript/resource.cpp#newcode22 fpdfsdk/src/javascript/resource.cpp:22: return L"The input value can't be parsed as a ...
5 years, 9 months ago (2015-02-27 21:48:32 UTC) #4
Tom Sepez
5 years, 9 months ago (2015-02-27 21:48:42 UTC) #5
Message was sent while issue was closed.
Committed patchset #3 (id:40001) manually as
5b47dbfe85e8db4122089afa6d00264f1e973af2 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698