Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(60)

Side by Side Diff: blimp/engine/common/blimp_user_agent.cc

Issue 1922613003: Add blimp to root GN check_targets (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Add missing visibility entries to ppapi_plugin_sources Created 4 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
(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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698