Skip to content

Commit

Permalink
Merge pull request #8061 from /issues/14338
Browse files Browse the repository at this point in the history
Drop chrome-common-chrome_content_client_constants.cc.patch
  • Loading branch information
mariospr authored Feb 26, 2021
2 parents bdcfc05 + f2ea9a0 commit 0385748
Show file tree
Hide file tree
Showing 3 changed files with 39 additions and 13 deletions.
22 changes: 22 additions & 0 deletions chromium_src/chrome/common/chrome_content_client.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
/* Copyright (c) 2021 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

#ifndef BRAVE_CHROMIUM_SRC_CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
#define BRAVE_CHROMIUM_SRC_CHROME_COMMON_CHROME_CONTENT_CLIENT_H_

#define kPDFExtensionPluginName \
kPDFExtensionPluginName_Unused[]; \
static const char kPDFExtensionPluginName

#define kPDFInternalPluginName \
kPDFInternalPluginName_Unused[]; \
static const char kPDFInternalPluginName

#include "../../../../chrome/common/chrome_content_client.h"

#undef kPDFExtensionPluginName
#undef kPDFInternalPluginName

#endif // BRAVE_CHROMIUM_SRC_CHROME_COMMON_CHROME_CONTENT_CLIENT_H_
17 changes: 17 additions & 0 deletions chromium_src/chrome/common/chrome_content_client_constants.cc
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
/* Copyright (c) 2021 The Brave Authors. All rights reserved.
* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this file,
* You can obtain one at http://mozilla.org/MPL/2.0/. */

#include "chrome/common/chrome_content_client.h"

#define kPDFExtensionPluginName kPDFExtensionPluginName_Unused
#define kPDFInternalPluginName kPDFInternalPluginName_Unused

#include "../../../../chrome/common/chrome_content_client_constants.cc"

#undef kPDFExtensionPluginName
#undef kPDFInternalPluginName

const char ChromeContentClient::kPDFExtensionPluginName[] = "Chrome PDF Viewer";
const char ChromeContentClient::kPDFInternalPluginName[] = "Chrome PDF Plugin";
13 changes: 0 additions & 13 deletions patches/chrome-common-chrome_content_client_constants.cc.patch

This file was deleted.

0 comments on commit 0385748

Please sign in to comment.