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

Issue 9561006: Respect policy for list of startup pages (Closed)

Created:
8 years, 9 months ago by Tyler Breisacher (Chromium)
Modified:
8 years, 9 months ago
Reviewers:
csilv, Evan Stade
CC:
chromium-reviews, arv (Not doing code reviews)
Visibility:
Public.

Description

Respect policy for list of startup pages BUG=116207 TEST=set RestoreOnStartupURLs policy, list in dialog is disabled Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=124689

Patch Set 1 #

Total comments: 1

Patch Set 2 : disallow clicking if 'list of urls' option is prohibited #

Patch Set 3 : disable link when it's not clickable #

Total comments: 4

Patch Set 4 : more fixes #

Total comments: 1

Patch Set 5 : indentation #

Unified diffs Side-by-side diffs Delta from patch set Stats (+52 lines, -1 line) Patch
M chrome/browser/resources/options2/browser_options.js View 1 2 3 4 1 chunk +10 lines, -1 line 0 comments Download
M chrome/browser/resources/options2/startup_overlay.html View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/resources/options2/startup_overlay.js View 3 chunks +37 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
Tyler Breisacher (Chromium)
https://chromiumcodereview.appspot.com/9561006/diff/1/chrome/browser/resources/options2/startup_overlay.html File chrome/browser/resources/options2/startup_overlay.html (right): https://chromiumcodereview.appspot.com/9561006/diff/1/chrome/browser/resources/options2/startup_overlay.html#newcode7 chrome/browser/resources/options2/startup_overlay.html:7: <input type="text" pref="session.urls_to_restore_on_startup" hidden> This has no effect currently, ...
8 years, 9 months ago (2012-03-01 00:15:14 UTC) #1
Tyler Breisacher (Chromium)
+estade
8 years, 9 months ago (2012-03-01 00:54:22 UTC) #2
csilv
lgtm
8 years, 9 months ago (2012-03-01 01:14:59 UTC) #3
Evan Stade
this doesn't completely fix the bug, right? The link is still clickable. It should be ...
8 years, 9 months ago (2012-03-01 17:42:42 UTC) #4
Tyler Breisacher (Chromium)
Good point. It should probably also be grayed out, or at least a "grayer" shade ...
8 years, 9 months ago (2012-03-01 19:06:58 UTC) #5
Evan Stade
On 2012/03/01 19:06:58, Tyler Breisacher wrote: > Good point. It should probably also be grayed ...
8 years, 9 months ago (2012-03-01 22:21:36 UTC) #6
Tyler Breisacher (Chromium)
On 2012/03/01 22:21:36, Evan Stade wrote: > just set the disabled property. I'll add some ...
8 years, 9 months ago (2012-03-01 22:49:37 UTC) #7
Evan Stade
http://codereview.chromium.org/9561006/diff/10002/chrome/browser/resources/options2/browser_options.js File chrome/browser/resources/options2/browser_options.js (right): http://codereview.chromium.org/9561006/diff/10002/chrome/browser/resources/options2/browser_options.js#newcode89 chrome/browser/resources/options2/browser_options.js:89: startupSetPagesLink.disabled = this indent can't be right. http://codereview.chromium.org/9561006/diff/10002/chrome/browser/resources/options2/browser_options.js#newcode94 chrome/browser/resources/options2/browser_options.js:94: ...
8 years, 9 months ago (2012-03-02 03:38:35 UTC) #8
Tyler Breisacher (Chromium)
http://codereview.chromium.org/9561006/diff/10002/chrome/browser/resources/options2/browser_options.js File chrome/browser/resources/options2/browser_options.js (right): http://codereview.chromium.org/9561006/diff/10002/chrome/browser/resources/options2/browser_options.js#newcode89 chrome/browser/resources/options2/browser_options.js:89: startupSetPagesLink.disabled = Is this better? http://codereview.chromium.org/9561006/diff/10002/chrome/browser/resources/options2/browser_options.js#newcode94 chrome/browser/resources/options2/browser_options.js:94: if (!startupSetPagesLink.disabled) ...
8 years, 9 months ago (2012-03-02 04:10:46 UTC) #9
Evan Stade
8 years, 9 months ago (2012-03-02 17:26:32 UTC) #10
lgtm

http://codereview.chromium.org/9561006/diff/13002/chrome/browser/resources/op...
File chrome/browser/resources/options2/browser_options.js (right):

http://codereview.chromium.org/9561006/diff/13002/chrome/browser/resources/op...
chrome/browser/resources/options2/browser_options.js:87: function(event) {
I honestly don't know what the correct indentation is. This seems ok. I guess
the last version you had wasn't bad either. Or maybe make the function(event)
line flush with the first argument, and the body indented by 2 instead of 6.

Powered by Google App Engine
This is Rietveld 408576698