-
Notifications
You must be signed in to change notification settings - Fork 901
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix test build and eliminate one extra patch
- Loading branch information
Showing
10 changed files
with
50 additions
and
52 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
chromium_src/chrome/browser/extensions/chrome_test_extension_loader.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* Copyright (c) 2020 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 "extensions/common/manifest_handlers/incognito_info.h" | ||
|
||
#define IsSplitMode ForSplitModeCheck(browser_context_->IsTor())->IsSplitMode | ||
#include "../../../../../chrome/browser/extensions/chrome_test_extension_loader.cc" | ||
#undef IsSplitMode |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
/* Copyright (c) 2020 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_EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ | ||
#define BRAVE_CHROMIUM_SRC_EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ | ||
|
||
#define IsIncognitoEnabled \ | ||
IsTorEnabled(const std::string& extension_id, \ | ||
content::BrowserContext* context); \ | ||
bool IsIncognitoEnabled | ||
#include "../../../../extensions/browser/extension_util.h" | ||
#undef IsIncognitoEnabled | ||
|
||
#endif // BRAVE_CHROMIUM_SRC_EXTENSIONS_BROWSER_EXTENSION_UTIL_H_ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
10 changes: 10 additions & 0 deletions
10
chromium_src/extensions/test/extension_background_page_waiter.cc
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
/* Copyright (c) 2020 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 "extensions/common/manifest_handlers/incognito_info.h" | ||
|
||
#define IsSplitMode ForSplitModeCheck(browser_context_->IsTor())->IsSplitMode | ||
#include "../../../../extensions/test/extension_background_page_waiter.cc" | ||
#undef IsSplitMode |
13 changes: 0 additions & 13 deletions
13
patches/chrome-browser-extensions-chrome_test_extension_loader.cc.patch
This file was deleted.
Oops, something went wrong.
6 changes: 3 additions & 3 deletions
6
patches/chrome-browser-extensions-extension_tab_util.cc.patch
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file was deleted.
Oops, something went wrong.
13 changes: 0 additions & 13 deletions
13
patches/extensions-test-extension_background_page_waiter.cc.patch
This file was deleted.
Oops, something went wrong.