summaryrefslogtreecommitdiff
path: root/chromium/headless/public/util/user_agent.cc
blob: 13ffe9fb62a8a9cb02e15ddf99e6239b6c80775c (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
// Copyright 2016 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "headless/public/util/user_agent.h"

#include "content/public/common/user_agent.h"

namespace headless {

std::string BuildUserAgentFromProduct(const std::string& product) {
  return content::BuildUserAgentFromProduct(product);
}

std::string BuildUserAgentFromOSAndProduct(const std::string& os_info,
                                           const std::string& product) {
  return content::BuildUserAgentFromOSAndProduct(os_info, product);
}

}  // namespace headless