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

Side by Side 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, 5 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 unified diff | 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 »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 /** 5 /**
6 * @fileoverview 'settings-startup-urls-page' is the settings page 6 * @fileoverview 'settings-startup-urls-page' is the settings page
7 * containing the urls that will be opened when chrome is started. 7 * containing the urls that will be opened when chrome is started.
8 */ 8 */
9 9
10 Polymer({ 10 Polymer({
(...skipping 68 matching lines...) Expand 10 before | Expand all | Expand 10 after
79 if (this.startupUrlDialogAnchor_) { 79 if (this.startupUrlDialogAnchor_) {
80 cr.ui.focusWithoutInk(assert(this.startupUrlDialogAnchor_)); 80 cr.ui.focusWithoutInk(assert(this.startupUrlDialogAnchor_));
81 this.startupUrlDialogAnchor_ = null; 81 this.startupUrlDialogAnchor_ = null;
82 } 82 }
83 }, 83 },
84 84
85 /** @private */ 85 /** @private */
86 onUseCurrentPagesTap_: function() { 86 onUseCurrentPagesTap_: function() {
87 this.browserProxy_.useCurrentPages(); 87 this.browserProxy_.useCurrentPages();
88 }, 88 },
89
90 /**
91 * @return {boolean} Whether "Add new page" and "Use current pages" are
92 * allowed.
93 * @private
94 */
95 shouldAllowUrlsEdit_: function() {
96 return this.get('prefs.session.startup_urls.enforcement') !=
97 chrome.settingsPrivate.Enforcement.ENFORCED;
98 },
89 }); 99 });
OLDNEW
« 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