Built UserAgent according to OS And Product.
[platform/framework/web/crosswalk-tizen.git] / atom / app / atom_content_client.cc
index 8e2a6c5..59538a8 100644 (file)
@@ -22,6 +22,7 @@
 #include "pdf/pdf.h"
 #include "ppapi/shared_impl/ppapi_permissions.h"
 #include "third_party/widevine/cdm/stub/widevine_cdm_version.h"
+#include "tizen_src/ewk/efl_integration/common/version_info.h"
 #include "ui/base/l10n/l10n_util.h"
 #include "url/url_constants.h"
 
@@ -189,9 +190,9 @@ std::string AtomContentClient::GetProduct() const {
 }
 
 std::string AtomContentClient::GetUserAgent() const {
-  return content::BuildUserAgentFromProduct(
-      "Chrome/" CHROME_VERSION_STRING " "
-      ATOM_PRODUCT_NAME "/" ATOM_VERSION_STRING);
+  const std::string system_info= EflWebView::VersionInfo::GetInstance()->OSType();
+  return content::BuildUserAgentFromOSAndProduct(
+      system_info,"Chrome/" CHROME_VERSION_STRING " " ATOM_PRODUCT_NAME "/" ATOM_VERSION_STRING);
 }
 
 base::string16 AtomContentClient::GetLocalizedString(int message_id) const {