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

Unified Diff: chrome/browser/resources/settings/about_page/about_page_browser_proxy.js

Issue 2583743002: Add mac-only "Set Up Automatic Updates..." button to the new about page. (Closed)
Patch Set: add back nullptr check Created 4 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
Index: chrome/browser/resources/settings/about_page/about_page_browser_proxy.js
diff --git a/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js b/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js
index b1ee8af3c2f5170a61a000f4cb3a944a99fe8943..4de02486958e94f79d9a4b569f6309501728af9e 100644
--- a/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js
+++ b/chrome/browser/resources/settings/about_page/about_page_browser_proxy.js
@@ -60,6 +60,18 @@ var UpdateStatus = {
DISABLED_BY_ADMIN: 'disabled_by_admin',
};
+<if expr="_google_chrome and is_macosx">
+/**
+ * @typedef {{
+ * hidden: boolean,
+ * disabled: boolean,
+ * actionable: boolean,
+ * text: (string|undefined)
+ * }}
+ */
+var PromoteUpdaterStatus;
+</if>
+
/**
* @typedef {{
* status: !UpdateStatus,
@@ -148,6 +160,13 @@ cr.define('settings', function() {
/** @return {!Promise<?RegulatoryInfo>} */
getRegulatoryInfo: function() {},
</if>
+
+<if expr="_google_chrome and is_macosx">
+ /**
+ * Triggers setting up auto-updates for all users.
+ */
+ promoteUpdater: function() {},
+</if>
};
/**
@@ -168,6 +187,13 @@ cr.define('settings', function() {
chrome.send('refreshUpdateStatus');
},
+<if expr="_google_chrome and is_macosx">
+ /** @override */
+ promoteUpdater: function() {
+ chrome.send('promoteUpdater');
+ },
+</if>
+
/** @override */
openHelpPage: function() {
chrome.send('openHelpPage');
« no previous file with comments | « chrome/browser/resources/settings/about_page/about_page.js ('k') | chrome/browser/ui/webui/help/help_handler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698