use_electron_resources_in_pdf_util.patch 994 B

12345678910111213141516171819202122
  1. From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
  2. From: Jeremy Apthorp <[email protected]>
  3. Date: Mon, 10 Feb 2020 10:37:48 -0800
  4. Subject: use electron resources in pdf_util
  5. Without this, the ID for IDR_PDF_MANIFEST will be wrong on linux
  6. and cause a DCHECK(), since the resource will be loaded as an empty
  7. string.
  8. diff --git a/chrome/browser/pdf/pdf_extension_util.cc b/chrome/browser/pdf/pdf_extension_util.cc
  9. index 77c529ba92ecadbad3fbbb1431fe90abef9ea8bb..ae10e620fdefcaa1f0127864418d8edca8468533 100644
  10. --- a/chrome/browser/pdf/pdf_extension_util.cc
  11. +++ b/chrome/browser/pdf/pdf_extension_util.cc
  12. @@ -8,7 +8,7 @@
  13. #include "base/values.h"
  14. #include "chrome/browser/browser_process.h"
  15. #include "chrome/common/chrome_content_client.h"
  16. -#include "chrome/grit/browser_resources.h"
  17. +#include "electron/grit/electron_resources.h"
  18. #include "components/strings/grit/components_strings.h"
  19. #include "components/zoom/page_zoom_constants.h"
  20. #include "pdf/pdf_features.h"