OLD | NEW |
(Empty) | |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. |
| 4 |
| 5 #include "blimp/engine/common/blimp_user_agent.h" |
| 6 |
| 7 #include <string> |
| 8 |
| 9 #include "components/version_info/version_info.h" |
| 10 #include "content/public/common/user_agent.h" |
| 11 |
| 12 namespace blimp { |
| 13 namespace engine { |
| 14 |
| 15 namespace { |
| 16 |
| 17 std::string client_os_info = "Linux; Android 5.1.1"; |
| 18 |
| 19 } // namespace |
| 20 |
| 21 std::string GetBlimpEngineUserAgent() { |
| 22 return content::BuildUserAgentFromOSAndProduct( |
| 23 client_os_info, |
| 24 version_info::GetProductNameAndVersionForUserAgent() + " Mobile"); |
| 25 } |
| 26 |
| 27 void SetClientOSInfo(std::string os_version_info) { |
| 28 client_os_info = os_version_info; |
| 29 } |
| 30 |
| 31 } // namespace engine |
| 32 } // namespace blimp |
OLD | NEW |