From 934d2999eba845d05aa03b74f3f2c3e6e4191134 Mon Sep 17 00:00:00 2001 From: Taylor `Riastradh' Campbell Date: Thu, 14 Jun 2018 23:25:50 +0000 Subject: [PATCH] Propagate off-the-recordness to URL request context. This is necessary because we use `persist:tor' since for hysterical raisins there's only one normal `private' partition with in_memory_ = true. We use the virtual method IsOffTheRecord() to discriminate instead. Fixes https://github.com/brave/muon/issues/608. Fixes https://github.com/brave/browser-laptop/issues/14392. Auditors: @darkdh --- vendor/brightray/browser/browser_context.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/vendor/brightray/browser/browser_context.cc b/vendor/brightray/browser/browser_context.cc index a6820ef9f8..c6de88e96f 100644 --- a/vendor/brightray/browser/browser_context.cc +++ b/vendor/brightray/browser/browser_context.cc @@ -125,7 +125,7 @@ net::URLRequestContextGetter* BrowserContext::CreateRequestContext( this, static_cast(BrowserClient::Get()->GetNetLog()), GetPath(), - in_memory_, + IsOffTheRecord(), BrowserThread::GetTaskRunnerForThread(BrowserThread::IO), protocol_handlers, std::move(protocol_interceptors));