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

Unified Diff: blimp/engine/common/blimp_content_client.cc

Issue 1535563002: [Blimp Net] Update engine version (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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/BUILD.gn ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: blimp/engine/common/blimp_content_client.cc
diff --git a/blimp/engine/common/blimp_content_client.cc b/blimp/engine/common/blimp_content_client.cc
index 00c2c2d8474f4f85e3a12f94a470e94316956703..d348839aa6b153d7f8f210a337d2958f1c022557 100644
--- a/blimp/engine/common/blimp_content_client.cc
+++ b/blimp/engine/common/blimp_content_client.cc
@@ -4,6 +4,7 @@
#include "blimp/engine/common/blimp_content_client.h"
+#include "components/version_info/version_info.h"
#include "content/public/common/user_agent.h"
#include "ui/base/l10n/l10n_util.h"
#include "ui/base/resource/resource_bundle.h"
@@ -11,11 +12,9 @@
namespace blimp {
namespace engine {
-// TODO(haibinlu) Generate proper version. See crbug/537367.
-const char kProduct[] = "Chrome/20.77.33.5";
-
std::string GetBlimpEngineUserAgent() {
Wez 2015/12/17 02:01:31 Do we need this as a static? Can't we just fold it
haibinlu 2015/12/17 02:28:55 it is also in blimp_url_request_context_getter.cc
- return content::BuildUserAgentFromProduct(kProduct);
+ return content::BuildUserAgentFromProduct(
+ version_info::GetProductNameAndVersionForUserAgent() + " Mobile");
}
BlimpContentClient::~BlimpContentClient() {}
« no previous file with comments | « blimp/engine/common/BUILD.gn ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698