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

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: Added missing dependency for //blimp/client:blimp_shell on //ui/platform_window Created 4 years, 8 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
« no previous file with comments | « blimp/engine/common/blimp_user_agent.h ('k') | blimp/net/BUILD.gn » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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";
Wez 2016/04/26 23:34:02 Won't this cause an initializer? Why do we even n
nyquist 2016/04/27 00:56:39 It's part of EngineSettingsMessage, so we could mo
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
« no previous file with comments | « blimp/engine/common/blimp_user_agent.h ('k') | blimp/net/BUILD.gn » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698