Use auto generated instead of hardcoded chromium version number.
authorPiotr Tworek <p.tworek@samsung.com>
Thu, 9 Apr 2015 16:25:46 +0000 (18:25 +0200)
committerYoungsoo Choi <kenshin.choi@samsung.com>
Tue, 10 Jul 2018 06:57:09 +0000 (06:57 +0000)
Since we want to emulate chrome behaviour and provide UA version number
in UA string, let's make sure the version is correct.

Change-Id: I5a9591d14cf3263c23a6461c0680bb2557de11f6
Signed-off-by: Piotr Tworek <p.tworek@samsung.com>
tizen_src/ewk/efl_integration/common/version_info.cc
tizen_src/ewk/efl_integration/efl_integration.gypi

index 2d098e0..5c8e7c1 100644 (file)
@@ -116,7 +116,7 @@ std::string VersionInfo::ProductNameAndVersionForUserAgent() const {
   // See http://crbug.com/297522
   // Does we need to open our real version number?
   // or just use 33.0.0.0 as Chromium does.
-  return std::string("Chrome/34.0.1847.76 ") +
+  return std::string("Chrome/" CHROMIUM_VERSION " ") +
          Name() +
          std::string("/") +
          Version();
index 1a5096c..a708f08 100644 (file)
@@ -5,6 +5,11 @@
 {
   'variables': {
     'edje_compiler%': 'edje_cc',
+
+    # Components used to auto generate CHROMIUM_VERSION preprocessor define.
+    'version_file'   : '<(DEPTH)/chrome/VERSION',
+    'version_script' : '<(DEPTH)/build/util/version.py',
+    'version_pattern': '@MAJOR@.@MINOR@.@BUILD@.@PATCH@',
   },
 
   'targets': [{
@@ -57,6 +62,7 @@
       # TODO: Autofill has changed significantly in M42 compared to
       #       M40. Disable it until it is fixed.
       #'TIZEN_AUTOFILL_SUPPORT=1',
+      'CHROMIUM_VERSION=\"<!(python <(version_script) -f <(version_file) -t "<(version_pattern)")\"',
     ],
     'link_settings': {
       'ldflags': [