Skip to content

Commit

Permalink
Rename pdf plugins name from chromium to chrome
Browse files Browse the repository at this point in the history
Some google sites check pdf plugin name and do a different behavior whether
browser has chrome pdf plugin or not.
Ex, google docs print menu displays print preview when chrome pdf plugin is available.
Otherwise, just tries to download that documents as a pdf document.
  • Loading branch information
simonhong authored and bsclifton committed May 24, 2019
1 parent d9aabff commit f6df699
Showing 1 changed file with 16 additions and 0 deletions.
16 changes: 16 additions & 0 deletions patches/chrome-common-chrome_content_client_constants.cc.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
diff --git a/chrome/common/chrome_content_client_constants.cc b/chrome/common/chrome_content_client_constants.cc
index a8365688d3ea165e26bc6a9e1b1851cbacaf59b2..a4f7083b44b8c6d9614bc5f1d72ddd78ff602900 100644
--- a/chrome/common/chrome_content_client_constants.cc
+++ b/chrome/common/chrome_content_client_constants.cc
@@ -19,9 +19,9 @@ const char ChromeContentClient::kPDFExtensionPluginName[] = "Chrome PDF Viewer";
const char ChromeContentClient::kPDFInternalPluginName[] = "Chrome PDF Plugin";
#else
const char ChromeContentClient::kPDFExtensionPluginName[] =
- "Chromium PDF Viewer";
+ "Chrome PDF Viewer";
const char ChromeContentClient::kPDFInternalPluginName[] =
- "Chromium PDF Plugin";
+ "Chrome PDF Plugin";
#endif

const base::FilePath::CharType ChromeContentClient::kPDFPluginPath[] =

0 comments on commit f6df699

Please sign in to comment.