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

Unified Diff: chrome/browser/resources/settings/on_startup_page/startup_urls_page.js

Issue 2960773002: M60 merge: MD Settings: Allow editing startup URLs when "recommended" policy is present. (Closed)
Patch Set: Created 3 years, 6 months 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
« no previous file with comments | « chrome/browser/resources/settings/on_startup_page/startup_urls_page.html ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/resources/settings/on_startup_page/startup_urls_page.js
diff --git a/chrome/browser/resources/settings/on_startup_page/startup_urls_page.js b/chrome/browser/resources/settings/on_startup_page/startup_urls_page.js
index 1a0b376c8c7d7f17da41796e6d3fdb3d89ec10f4..ec56f1a1d854bd86774c6f07875549d3ca472d3b 100644
--- a/chrome/browser/resources/settings/on_startup_page/startup_urls_page.js
+++ b/chrome/browser/resources/settings/on_startup_page/startup_urls_page.js
@@ -86,4 +86,14 @@ Polymer({
onUseCurrentPagesTap_: function() {
this.browserProxy_.useCurrentPages();
},
+
+ /**
+ * @return {boolean} Whether "Add new page" and "Use current pages" are
+ * allowed.
+ * @private
+ */
+ shouldAllowUrlsEdit_: function() {
+ return this.get('prefs.session.startup_urls.enforcement') !=
+ chrome.settingsPrivate.Enforcement.ENFORCED;
+ },
});
« no previous file with comments | « chrome/browser/resources/settings/on_startup_page/startup_urls_page.html ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698