blob: 2bb455917be7caae1d57f1776b3dac498abf3589 [file] [edit]
// Copyright 2025 The Chromium Authors
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
#include "url/origin_debug.h"
#include "url/origin.h"
namespace url::debug {
ScopedOriginCrashKey::ScopedOriginCrashKey(
gurl_base::debug::CrashKeyString* crash_key,
const url::Origin* value)
: scoped_string_value_(
crash_key,
value ? value->GetDebugString(/*include_nonce=*/false) : "nullptr") {}
ScopedOriginCrashKey::~ScopedOriginCrashKey() = default;
} // namespace url::debug