1 // Copyright 2021 The Chromium Authors
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #include "printing/metafile_agent.h"
9 #include "base/no_destructor.h"
15 std::string& GetAgentImpl() {
16 static base::NoDestructor<std::string> instance;
22 void SetAgent(const std::string& user_agent) {
23 GetAgentImpl() = user_agent;
26 const std::string& GetAgent() {
27 return GetAgentImpl();
30 } // namespace printing