summaryrefslogtreecommitdiff
path: root/samples
diff options
context:
space:
mode:
authorLei Zhang <thestig@chromium.org>2018-02-05 21:13:35 +0000
committerChromium commit bot <commit-bot@chromium.org>2018-02-05 21:13:35 +0000
commit3355f459ecd2207c0cd1719c2cdafa15eea87bf6 (patch)
tree23f6a83c8d8213093acd4e1509662532197fdaa3 /samples
parent57e097750846bf3ffc3e4e2ef9e78be8a82c69de (diff)
downloadpdfium-3355f459ecd2207c0cd1719c2cdafa15eea87bf6.tar.xz
Fix testing.cpp build with v8_use_external_startup_data=false.
Also change the InitializeV8ForPDFium() for use with startup data to InitializeV8ForPDFiumWithStartupData(). Change-Id: I594c2bf9470b6549195b7361bb7fcb45def50c61 Reviewed-on: https://pdfium-review.googlesource.com/25371 Reviewed-by: Tom Sepez <tsepez@chromium.org> Commit-Queue: Lei Zhang <thestig@chromium.org>
Diffstat (limited to 'samples')
-rw-r--r--samples/pdfium_test.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/samples/pdfium_test.cc b/samples/pdfium_test.cc
index 37e36d322d..707fbb1028 100644
--- a/samples/pdfium_test.cc
+++ b/samples/pdfium_test.cc
@@ -1568,8 +1568,8 @@ int main(int argc, const char* argv[]) {
#ifdef V8_USE_EXTERNAL_STARTUP_DATA
v8::StartupData natives;
v8::StartupData snapshot;
- platform = InitializeV8ForPDFium(options.exe_path, options.bin_directory,
- &natives, &snapshot);
+ platform = InitializeV8ForPDFiumWithStartupData(
+ options.exe_path, options.bin_directory, &natives, &snapshot);
#else // V8_USE_EXTERNAL_STARTUP_DATA
platform = InitializeV8ForPDFium(options.exe_path);
#endif // V8_USE_EXTERNAL_STARTUP_DATA