blob: 994409cca59db02a94f1bb8f6e6ec310a8bc03b9 [file] [log] [blame]
Avi Drissman64595482022-09-14 20:52:291// Copyright 2020 The Chromium Authors
David Benjaminf6f04312020-07-15 00:19:212// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "net/base/privacy_mode.h"
6
7#include "base/notreached.h"
8
9namespace net {
10
11const char* PrivacyModeToDebugString(PrivacyMode privacy_mode) {
12 switch (privacy_mode) {
13 case PRIVACY_MODE_DISABLED:
14 return "disabled";
15 case PRIVACY_MODE_ENABLED:
16 return "enabled";
17 case PRIVACY_MODE_ENABLED_WITHOUT_CLIENT_CERTS:
18 return "enabled without client certs";
Dylan Cutler86f47b02022-01-21 01:12:2219 case PRIVACY_MODE_ENABLED_PARTITIONED_STATE_ALLOWED:
20 return "enabled partitioned state allowed";
David Benjaminf6f04312020-07-15 00:19:2121 }
Peter Boström54bd8e32024-10-31 01:36:3722 NOTREACHED();
David Benjaminf6f04312020-07-15 00:19:2123}
24
25} // namespace net