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

Issue 3419020: dom-ui settings: properly implement the 'metrics reporting' checkbox.... (Closed)

Created:
10 years, 3 months ago by csilv
Modified:
9 years, 7 months ago
Reviewers:
satorux1
CC:
chromium-reviews, dhg, arv (Not doing code reviews), ben+cc_chromium.org, James Hawkins
Visibility:
Public.

Description

dom-ui settings: properly implement the 'metrics reporting' checkbox. - the metrics reporting preference is unique, so handle it correctly. - show a 'restart required' alert when changing the metrics reporting setting. - enhance alert overlay to allow only an OK button. - fix a bug in the alert overlay where it was incorrectly loading default strings. BUG=56536 TEST=Verify that the metrics reporting checkbox works properly on Chrome branded builds. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=60717

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 8

Patch Set 3 : '' #

Patch Set 4 : Rebase to r60664. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -10 lines) Patch
M chrome/browser/dom_ui/advanced_options_handler.h View 1 2 3 3 chunks +8 lines, -1 line 0 comments Download
M chrome/browser/dom_ui/advanced_options_handler.cc View 1 2 3 6 chunks +37 lines, -0 lines 0 comments Download
M chrome/browser/resources/options/advanced_options.html View 1 2 3 1 chunk +2 lines, -4 lines 0 comments Download
M chrome/browser/resources/options/advanced_options.js View 1 2 3 4 chunks +31 lines, -1 line 0 comments Download
M chrome/browser/resources/options/alert_overlay.js View 2 3 1 chunk +9 lines, -4 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
csilv
+satorux for review
10 years, 3 months ago (2010-09-24 00:05:25 UTC) #1
satorux1
LGTM. Thank you for implementing this so quickly! The change seems to have fixed issues ...
10 years, 3 months ago (2010-09-24 03:58:58 UTC) #2
csilv
Updated the CL description to account for alert changes. http://codereview.chromium.org/3419020/diff/4001/5001 File chrome/browser/dom_ui/advanced_options_handler.cc (right): http://codereview.chromium.org/3419020/diff/4001/5001#newcode270 chrome/browser/dom_ui/advanced_options_handler.cc:270: ...
10 years, 3 months ago (2010-09-24 18:05:31 UTC) #3
satorux1
10 years, 2 months ago (2010-09-27 02:08:31 UTC) #4
LGTM++

On 2010/09/24 18:05:31, csilv wrote:
> Updated the CL description to account for alert changes.
> 
> http://codereview.chromium.org/3419020/diff/4001/5001
> File chrome/browser/dom_ui/advanced_options_handler.cc (right):
> 
> http://codereview.chromium.org/3419020/diff/4001/5001#newcode270
> chrome/browser/dom_ui/advanced_options_handler.cc:270:
> SetupMetricsReportingCheckbox(enabled == is_enabled);
> On 2010/09/24 03:58:58, satorux1 wrote:
> > Giving it a name would make the code a bit easier to read?
> > 
> > bool user_changed = (enabled == is_enabled);
> 
> Done.
> 
> http://codereview.chromium.org/3419020/diff/4001/5004
> File chrome/browser/resources/options/advanced_options.js (right):
> 
> http://codereview.chromium.org/3419020/diff/4001/5004#newcode25
> chrome/browser/resources/options/advanced_options.js:25: * Initialize the
page.
> On 2010/09/24 03:58:58, satorux1 wrote:
> > Initialize -> Initializes, per our JavaScript style guide. You might want to
> fix
> > other comments, but as long as it's consistent in the file, I don't have a
> > strong feeling. 
> 
> Done.
> 
> http://codereview.chromium.org/3419020/diff/4001/5004#newcode42
> chrome/browser/resources/options/advanced_options.js:42: if
> ($('metricsReportingEnabled')) {
> On 2010/09/24 03:58:58, satorux1 wrote:
> > Would be nice to add a comment like
> > 
> > // "metricsReportingEnabled" element is only present on Chrome branded
builds.
> > 
> 
> Done.
> 
> http://codereview.chromium.org/3419020/diff/4001/5004#newcode45
> chrome/browser/resources/options/advanced_options.js:45:
> [String($('metricsReportingEnabled').checked)]);
> On 2010/09/24 03:58:58, satorux1 wrote:
> > I think you can use "event.target.checked" instead of
> > $('metricsReportingEnabled')
> 
> Done.

Powered by Google App Engine
This is Rietveld 408576698