From d3786fd69590669248c0e6b4c8b718c75f9e1e85 Mon Sep 17 00:00:00 2001 From: Allan Sandfeld Jensen Date: Tue, 29 Nov 2022 12:36:48 +0100 Subject: FIXUP: Fix browser DCHECK Actually compile. This time for real with d_check_is_on. Task-number: QTBUG-108904 Change-Id: Ieaf27da6698352e935deb83923a237a167fcbae2 Reviewed-on: https://codereview.qt-project.org/c/qt/qtwebengine-chromium/+/445916 Reviewed-by: Allan Sandfeld Jensen --- chromium/content/common/pseudonymization_salt.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/chromium/content/common/pseudonymization_salt.cc b/chromium/content/common/pseudonymization_salt.cc index d1b30bc544a..5dc3b676cd0 100644 --- a/chromium/content/common/pseudonymization_salt.cc +++ b/chromium/content/common/pseudonymization_salt.cc @@ -12,7 +12,7 @@ #if DCHECK_IS_ON() #include "base/command_line.h" -#include "sandbox/policy/switches.h" +#include "content/public/common/content_switches.h" #endif namespace content { @@ -46,7 +46,7 @@ uint32_t GetPseudonymizationSalt() { // Only the Browser process needs to initialize the `salt` on demand. // Other processes (identified via the process-type arg) should // receive the salt from their parent processes. - DCHECK(!command_line.HasSwitch(switches::kProcessType)); + DCHECK(!base::CommandLine::ForCurrentProcess()->HasSwitch(switches::kProcessType)); #endif salt = InitializeSalt(); } -- cgit v1.2.1