diff options
author | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-07-17 13:57:45 +0200 |
---|---|---|
committer | Allan Sandfeld Jensen <allan.jensen@qt.io> | 2017-07-19 13:44:40 +0000 |
commit | 6ec7b8da05d21a3878bd21c691b41e675d74bb1c (patch) | |
tree | b87f250bc19413750b9bb9cdbf2da20ef5014820 /chromium/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js | |
parent | ec02ee4181c49b61fce1c8fb99292dbb8139cc90 (diff) |
BASELINE: Update Chromium to 60.0.3112.70
Change-Id: I9911c2280a014d4632f254857876a395d4baed2d
Reviewed-by: Alexandru Croitor <alexandru.croitor@qt.io>
Diffstat (limited to 'chromium/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js')
-rw-r--r-- | chromium/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js | 28 |
1 files changed, 28 insertions, 0 deletions
diff --git a/chromium/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js b/chromium/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js index 2b592acb563..892ceca55f2 100644 --- a/chromium/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js +++ b/chromium/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js @@ -35,6 +35,14 @@ var ChannelInfo; var VersionInfo; /** + * @typedef {{ + * version: (string|undefined), + * size: (string|undefined), + * }} + */ +var AboutPageUpdateInfo; + +/** * Enumeration of all possible browser channels. * @enum {string} */ @@ -58,6 +66,7 @@ var UpdateStatus = { FAILED: 'failed', DISABLED: 'disabled', DISABLED_BY_ADMIN: 'disabled_by_admin', + NEED_PERMISSION_TO_UPDATE: 'need_permission_to_update', }; // <if expr="_google_chrome and is_macosx"> @@ -78,6 +87,8 @@ var PromoteUpdaterStatus; * progress: (number|undefined), * message: (string|undefined), * connectionTypes: (string|undefined), + * version: (string|undefined), + * size: (string|undefined), * }} */ var UpdateStatusChangedEvent; @@ -147,6 +158,18 @@ cr.define('settings', function() { requestUpdate: function() {}, /** + * Checks for the update with specified version and size and applies over + * cellular. The target version and size are the same as were received from + * 'update-status-changed' WebUI event. We send this back all the way to + * update engine for it to double check with update server in case there's a + * new update available. This prevents downloading the new update that user + * didn't agree to. + * @param {string} target_version + * @param {string} target_size + */ + requestUpdateOverCellular: function(target_version, target_size) {}, + + /** * @param {!BrowserChannel} channel * @param {boolean} isPowerwashAllowed */ @@ -214,6 +237,11 @@ cr.define('settings', function() { }, /** @override */ + requestUpdateOverCellular: function(target_version, target_size) { + chrome.send('requestUpdateOverCellular', [target_version, target_size]); + }, + + /** @override */ setChannel: function(channel, isPowerwashAllowed) { chrome.send('setChannel', [channel, isPowerwashAllowed]); }, |