Commit 4f9535f4 authored by Kuo Jen Wei's avatar Kuo Jen Wei Committed by Commit Bot

[CCA] Remove isChromeVersionAbove util.

As the TOT of CCA source will ship with different chrome version
branches, we no longer need to check chrome version for compatibility in
different chrome version.

Bug: b/141518780
Change-Id: I1562dd39f57dd79b7318b136ca6c3e86b4c6396e
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1952059
Commit-Queue: Kuo Jen Wei <inker@chromium.org>
Commit-Queue: Shik Chen <shik@chromium.org>
Auto-Submit: Kuo Jen Wei <inker@chromium.org>
Reviewed-by: default avatarShik Chen <shik@chromium.org>
Cr-Commit-Position: refs/heads/master@{#721890}
parent 27001838
......@@ -156,17 +156,6 @@ cca.util.orientPhoto = function(blob, onSuccess, onFailure) {
});
};
/**
* Returns true if current installed Chrome version is larger than or equal to
* the given version.
* @param {number} minVersion the version to be compared with.
* @return {boolean}
*/
cca.util.isChromeVersionAbove = function(minVersion) {
var match = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);
return (match ? parseInt(match[2], 10) : 0) >= minVersion;
};
/**
* Animates the element once by applying 'animate' class.
* @param {HTMLElement} element Element to be animated.
......
......@@ -100,9 +100,6 @@ cca.views.MasterSettings = function() {
// End of properties, seal the object.
Object.seal(this);
document.querySelector('#settings-feedback').hidden =
!cca.util.isChromeVersionAbove(72); // Feedback available since M72.
};
cca.views.MasterSettings.prototype = {
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment