diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-11-29 12:36:48 +0100 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2022-11-29 18:34:00 +0000 |
commit | d3786fd69590669248c0e6b4c8b718c75f9e1e85 (patch) | |
tree | b6783d372e725410acff9b52cdd06cfeed1eafad | |
parent | 530b858a55b5b3963be9805b349f07b34a50d5c7 (diff) | |
download | qtwebengine-chromium-d3786fd69590669248c0e6b4c8b718c75f9e1e85.tar.gz |
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 <allan.jensen@qt.io>
-rw-r--r-- | chromium/content/common/pseudonymization_salt.cc | 4 |
1 files 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(); } |