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

Unified 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: Flipped the order of the conditional in //content/app/BUILD.gn 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 side-by-side diff with in-line comments
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 »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/common/blimp_user_agent.cc
diff --git a/blimp/engine/common/blimp_user_agent.cc b/blimp/engine/common/blimp_user_agent.cc
new file mode 100644
index 0000000000000000000000000000000000000000..85182e0abf794a4ce4a52308881e9abd75d282c2
--- /dev/null
+++ b/blimp/engine/common/blimp_user_agent.cc
@@ -0,0 +1,32 @@
+// 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 "blimp/engine/common/blimp_user_agent.h"
+
+#include <string>
+
+#include "components/version_info/version_info.h"
+#include "content/public/common/user_agent.h"
+
+namespace blimp {
+namespace engine {
+
+namespace {
+
+std::string client_os_info = "Linux; Android 5.1.1";
+
+} // namespace
+
+std::string GetBlimpEngineUserAgent() {
+ return content::BuildUserAgentFromOSAndProduct(
+ client_os_info,
+ version_info::GetProductNameAndVersionForUserAgent() + " Mobile");
+}
+
+void SetClientOSInfo(std::string os_version_info) {
+ client_os_info = os_version_info;
+}
+
+} // namespace engine
+} // namespace blimp
« 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