chrome: Fix potential UAF of ChromeBrowserContext and Profile (see issue #2969)

This commit is contained in:
Marshall Greenblatt
2021-07-23 15:55:22 -04:00
parent 3492b1bd76
commit af1a5c6f6b
4 changed files with 45 additions and 7 deletions

View File

@@ -16,6 +16,7 @@
#include "base/callback.h"
#include "base/files/file_path.h"
#include "base/memory/weak_ptr.h"
#include "base/sequenced_task_runner_helpers.h"
#include "chrome/common/plugin.mojom.h"
#include "services/network/public/mojom/network_context.mojom.h"
#include "third_party/abseil-cpp/absl/types/optional.h"
@@ -236,6 +237,9 @@ class CefBrowserContext {
base::FilePath cache_path_;
private:
// For DeleteSoon().
friend class base::DeleteHelper<CefBrowserContext>;
scoped_refptr<CefIOThreadState> iothread_state_;
CookieableSchemes cookieable_schemes_;
std::unique_ptr<CefMediaRouterManager> media_router_manager_;