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

Issue 810793004: Initialize V8 external data (XFA version). (Closed)

Created:
6 years ago by Tom Sepez
Modified:
6 years ago
Reviewers:
Lei Zhang
CC:
pdfium-reviews_googlegroups.com
Base URL:
https://pdfium.googlesource.com/pdfium.git@xfa
Target Ref:
refs/heads/xfa
Visibility:
Public.

Description

Initialize V8 external data (XFA version). This is a quick patch to fix the segv which occurs in pdfium_test when the v8 external data is not provided. Fixing the full-up initialization is left as a follow-on exercise. Path manipulations remain a nuisance since we don't want to depend on a particular /base library. BUG=439793 R=thestig@chromium.org Committed: https://pdfium.googlesource.com/pdfium/+/5ee12d778eb90ad865085680d49cd9f0391f3edd

Patch Set 1 #

Patch Set 2 : --bin-dir argument #

Patch Set 3 : --emf #

Patch Set 4 : Use argv[0] instead of OS-specific /proc/self/exe #

Total comments: 14

Patch Set 5 : std::string #

Patch Set 6 : tidy error message. #

Total comments: 5

Patch Set 7 : Address comments. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+157 lines, -53 lines) Patch
M samples/pdfium_test.cc View 1 2 3 4 5 6 8 chunks +157 lines, -53 lines 0 comments Download

Messages

Total messages: 8 (1 generated)
Tom Sepez
Lei, please review
6 years ago (2014-12-17 20:45:48 UTC) #2
Lei Zhang
https://codereview.chromium.org/810793004/diff/60001/samples/pdfium_test.cc File samples/pdfium_test.cc (right): https://codereview.chromium.org/810793004/diff/60001/samples/pdfium_test.cc#newcode25 samples/pdfium_test.cc:25: #define SEPARATOR '\\' Maybe PATH_SEPARATOR? https://codereview.chromium.org/810793004/diff/60001/samples/pdfium_test.cc#newcode45 samples/pdfium_test.cc:45: static char* ...
6 years ago (2014-12-17 22:35:51 UTC) #3
Tom Sepez
Please re-review. https://codereview.chromium.org/810793004/diff/60001/samples/pdfium_test.cc File samples/pdfium_test.cc (right): https://codereview.chromium.org/810793004/diff/60001/samples/pdfium_test.cc#newcode25 samples/pdfium_test.cc:25: #define SEPARATOR '\\' On 2014/12/17 22:35:50, Lei ...
6 years ago (2014-12-17 23:53:00 UTC) #4
Lei Zhang
lgtm with some minor changes: https://codereview.chromium.org/810793004/diff/60001/samples/pdfium_test.cc File samples/pdfium_test.cc (right): https://codereview.chromium.org/810793004/diff/60001/samples/pdfium_test.cc#newcode72 samples/pdfium_test.cc:72: char* output_buffer, On 2014/12/17 ...
6 years ago (2014-12-18 00:07:01 UTC) #5
Tom Sepez
Thanks. https://codereview.chromium.org/810793004/diff/100001/samples/pdfium_test.cc File samples/pdfium_test.cc (right): https://codereview.chromium.org/810793004/diff/100001/samples/pdfium_test.cc#newcode104 samples/pdfium_test.cc:104: char *data_buffer = GetFileContents(full_path.c_str(), &data_length); On 2014/12/18 00:07:01, ...
6 years ago (2014-12-18 00:15:59 UTC) #6
Lei Zhang
lgtm++
6 years ago (2014-12-18 00:23:07 UTC) #7
Tom Sepez
6 years ago (2014-12-18 00:24:08 UTC) #8
Message was sent while issue was closed.
Committed patchset #7 (id:120001) manually as
5ee12d778eb90ad865085680d49cd9f0391f3edd (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698