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

Issue 11232059: Clean up copy&paste in confirmation dialogs for prefs (Closed)

Created:
8 years, 2 months ago by bartfab (slow)
Modified:
8 years, 2 months ago
Reviewers:
James Hawkins, battre
CC:
chromium-reviews, samarth, sreeram, gideonwald, dominich, arv (Not doing code reviews), David Black, Jered, Shishir
Visibility:
Public.

Description

Clean up copy&paste in confirmation dialogs for prefs This CL consolidates the three implementations of virtually identical confirmation dialogs for prefs into a single class. The new code has the further advantage that the confirmation dialogs no longer know about and manipulate any input elements directly but instead, use the dialog pref system to commit or roll back changes when they are confirmed or cancelled. BUG=157319 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=163874

Patch Set 1 #

Patch Set 2 : Add missing user metrics support. #

Patch Set 3 : Updated OptionsWebUITest - thanks for pointing this out, Dominic. #

Total comments: 2

Patch Set 4 : Nit addressed. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+155 lines, -239 lines) Patch
M chrome/browser/resources/options/browser_options.html View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/resources/options/browser_options.js View 5 chunks +0 lines, -64 lines 0 comments Download
A chrome/browser/resources/options/confirm_dialog.js View 1 2 3 1 chunk +110 lines, -0 lines 0 comments Download
D chrome/browser/resources/options/do_not_track_confirm_overlay.js View 1 chunk +0 lines, -45 lines 0 comments Download
D chrome/browser/resources/options/instant_confirm_overlay.js View 1 chunk +0 lines, -50 lines 0 comments Download
M chrome/browser/resources/options/options.js View 1 6 chunks +31 lines, -9 lines 0 comments Download
M chrome/browser/resources/options/options_bundle.js View 3 chunks +1 line, -3 lines 0 comments Download
D chrome/browser/resources/options/spelling_confirm_overlay.js View 1 chunk +0 lines, -53 lines 0 comments Download
M chrome/browser/ui/webui/options/options_browsertest.js View 1 2 6 chunks +10 lines, -12 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
bartfab (slow)
Hi James, this CL is motivated by Joao's comment in CL 11232046 that a clean-up ...
8 years, 2 months ago (2012-10-23 10:04:26 UTC) #1
James Hawkins
LGTM with optional nit. https://codereview.chromium.org/11232059/diff/11/chrome/browser/resources/options/confirm_dialog.js File chrome/browser/resources/options/confirm_dialog.js (right): https://codereview.chromium.org/11232059/diff/11/chrome/browser/resources/options/confirm_dialog.js#newcode53 chrome/browser/resources/options/confirm_dialog.js:53: if (event.value.value && !this.confirmed_) Optional ...
8 years, 2 months ago (2012-10-24 00:54:17 UTC) #2
bartfab (slow)
https://chromiumcodereview.appspot.com/11232059/diff/11/chrome/browser/resources/options/confirm_dialog.js File chrome/browser/resources/options/confirm_dialog.js (right): https://chromiumcodereview.appspot.com/11232059/diff/11/chrome/browser/resources/options/confirm_dialog.js#newcode53 chrome/browser/resources/options/confirm_dialog.js:53: if (event.value.value && !this.confirmed_) On 2012/10/24 00:54:17, James Hawkins ...
8 years, 2 months ago (2012-10-24 13:51:45 UTC) #3
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11232059/15001
8 years, 2 months ago (2012-10-24 13:52:26 UTC) #4
commit-bot: I haz the power
Retried try job too often for step(s) browser_tests
8 years, 2 months ago (2012-10-24 16:21:59 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/bartfab@chromium.org/11232059/15001
8 years, 2 months ago (2012-10-24 17:45:20 UTC) #6
commit-bot: I haz the power
8 years, 2 months ago (2012-10-24 18:38:21 UTC) #7
Change committed as 163874

Powered by Google App Engine
This is Rietveld 408576698