-
Notifications
You must be signed in to change notification settings - Fork 921
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
89d399d
commit 90b655e
Showing
8 changed files
with
158 additions
and
1 deletion.
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
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 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,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/. */ | ||
|
||
#ifndef BRAVE_CHROMIUM_SRC_BASE_THREADING_THREAD_RESTRICTIONS_H_ | ||
#define BRAVE_CHROMIUM_SRC_BASE_THREADING_THREAD_RESTRICTIONS_H_ | ||
|
||
class BraveBrowsingDataRemoverDelegate; | ||
|
||
#define BRAVE_SCOPED_ALLOW_BASE_SYNC_PRIMITIVES_H \ | ||
friend class ::BraveBrowsingDataRemoverDelegate; | ||
|
||
#include "../../../../base/threading/thread_restrictions.h" | ||
#undef BRAVE_SCOPED_ALLOW_BASE_SYNC_PRIMITIVES_H | ||
|
||
#endif // BRAVE_CHROMIUM_SRC_BASE_THREADING_THREAD_RESTRICTIONS_H_ |
17 changes: 17 additions & 0 deletions
17
chromium_src/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.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
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/. */ | ||
|
||
#ifndef BRAVE_CHROMIUM_SRC_CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H_ | ||
#define BRAVE_CHROMIUM_SRC_CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H_ | ||
|
||
class BraveBrowsingDataRemoverDelegate; | ||
|
||
#define BRAVE_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H \ | ||
friend class BraveBrowsingDataRemoverDelegate; | ||
|
||
#include "../../../../../chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h" | ||
#undef BRAVE_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H | ||
|
||
#endif // BRAVE_CHROMIUM_SRC_CHROME_BROWSER_BROWSING_DATA_CHROME_BROWSING_DATA_REMOVER_DELEGATE_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
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,12 @@ | ||
diff --git a/base/threading/thread_restrictions.h b/base/threading/thread_restrictions.h | ||
index ac19eaecc4cc36c4376052c33314bc289bab7bcf..6e79d17b49ba84fa4ccbbfefd88c3aa1888a855b 100644 | ||
--- a/base/threading/thread_restrictions.h | ||
+++ b/base/threading/thread_restrictions.h | ||
@@ -433,6 +433,7 @@ INLINE_IF_DCHECK_IS_OFF void DisallowBaseSyncPrimitives() | ||
EMPTY_BODY_IF_DCHECK_IS_OFF; | ||
|
||
class BASE_EXPORT ScopedAllowBaseSyncPrimitives { | ||
+ BRAVE_SCOPED_ALLOW_BASE_SYNC_PRIMITIVES_H | ||
private: | ||
// This can only be instantiated by friends. Use | ||
// ScopedAllowBaseSyncPrimitivesForTesting in unit tests to avoid the friend |
12 changes: 12 additions & 0 deletions
12
patches/chrome-browser-browsing_data-chrome_browsing_data_remover_delegate.h.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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
diff --git a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h | ||
index ae0d55606244bca6ac1a1fa0037e0dc286c36174..74bc2123ced2db3fcdfc8854aac5a61f6067bd62 100644 | ||
--- a/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h | ||
+++ b/chrome/browser/browsing_data/chrome_browsing_data_remover_delegate.h | ||
@@ -195,6 +195,7 @@ class ChromeBrowsingDataRemoverDelegate | ||
void OverrideDomainReliabilityClearerForTesting( | ||
DomainReliabilityClearer clearer); | ||
|
||
+ BRAVE_CHROME_BROWSING_DATA_REMOVER_DELEGATE_H | ||
private: | ||
using WebRtcEventLogManager = webrtc_event_logging::WebRtcEventLogManager; | ||
|