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

Issue 2701313002: Adds a modal dialog implementation of the settings reset prompt. (Closed)

Created:
3 years, 10 months ago by alito
Modified:
3 years, 10 months ago
Reviewers:
robertshield, sky
CC:
chromium-reviews, grt+watch_chromium.org, tfarina
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Adds a modal dialog implementation of the settings reset prompt. The settings reset prompt will ask users whose settings may have been modified by unwanted software or extensions if they want to reset some of their settings. BUG= Review-Url: https://codereview.chromium.org/2701313002 Cr-Commit-Position: refs/heads/master@{#453048} Committed: https://chromium.googlesource.com/chromium/src/+/c61da3e4d5f324c493728c5cc2f56c8dc962817d

Patch Set 1 #

Total comments: 37

Patch Set 2 : Addressed sky@'s comments #

Total comments: 16

Patch Set 3 : More comments from sky@ #

Patch Set 4 : Use a CreateLabelView function instead of the SimpleMessageView class #

Patch Set 5 : Add a cancel button to the dialog #

Patch Set 6 : Fix member initializer list order in constructor #

Patch Set 7 : Fix constness in mock test class #

Unified diffs Side-by-side diffs Delta from patch set Stats (+1077 lines, -50 lines) Patch
M chrome/app/chromium_strings.grd View 1 1 chunk +21 lines, -3 lines 0 comments Download
M chrome/app/generated_resources.grd View 1 1 chunk +5 lines, -5 lines 0 comments Download
M chrome/app/google_chrome_strings.grd View 1 1 chunk +21 lines, -3 lines 0 comments Download
M chrome/browser/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/settings_reset_prompt/extension_info.h View 1 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/settings_reset_prompt/extension_info.cc View 1 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config.h View 1 chunk +0 lines, -3 lines 0 comments Download
M chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config.cc View 1 chunk +4 lines, -8 lines 0 comments Download
M chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config_unittest.cc View 1 3 chunks +6 lines, -9 lines 0 comments Download
A chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_controller.h View 1 1 chunk +85 lines, -0 lines 0 comments Download
A chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_controller.cc View 1 1 chunk +270 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.h View 1 2 chunks +21 lines, -18 lines 0 comments Download
M chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_model.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_test_utils.cc View 1 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/BUILD.gn View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/settings_reset_prompt_dialog.h View 1 2 3 4 1 chunk +78 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/settings_reset_prompt_dialog.cc View 1 2 3 4 5 1 chunk +325 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/settings_reset_prompt_dialog_browsertest.cc View 1 2 3 4 5 6 1 chunk +222 lines, -0 lines 0 comments Download
M chrome/test/BUILD.gn View 1 1 chunk +4 lines, -1 line 0 comments Download

Messages

Total messages: 31 (12 generated)
alito
Scott, could you please take a look at the code for this new dialog? We ...
3 years, 10 months ago (2017-02-20 00:36:25 UTC) #2
sky
You need test coverage of the view->controller interaction too. https://codereview.chromium.org/2701313002/diff/1/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config.h File chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config.h (left): https://codereview.chromium.org/2701313002/diff/1/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config.h#oldcode36 chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config.h:36: ...
3 years, 10 months ago (2017-02-21 17:37:28 UTC) #3
sky
Also, please make sure you have a test to show the dialog. See https://groups.google.com/a/chromium.org/forum/#!searchin/chromium-dev/Testing$20Chromium$20Browser$20Dialogs$20%22interactively%22$20-$20Now$20You$20Can%7Csort:relevance/chromium-dev/hqQAZNXkzOI/wG2f18N1CgAJ for ...
3 years, 10 months ago (2017-02-21 17:39:29 UTC) #4
alito
Thanks Scott. I've addressed your comments. PTAnL! Also added dialog browsertests (the DialogBrowserTest fixture seems ...
3 years, 10 months ago (2017-02-23 02:32:00 UTC) #5
sky
https://codereview.chromium.org/2701313002/diff/1/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config.h File chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config.h (left): https://codereview.chromium.org/2701313002/diff/1/chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config.h#oldcode36 chrome/browser/safe_browsing/settings_reset_prompt/settings_reset_prompt_config.h:36: virtual ~SettingsResetPromptConfig(); On 2017/02/23 02:31:59, alito wrote: > On ...
3 years, 10 months ago (2017-02-23 04:27:31 UTC) #6
alito
Thanks Scott. I addressed your comments, but was unsure about one of your suggestions, so ...
3 years, 10 months ago (2017-02-23 05:37:09 UTC) #7
sky
https://codereview.chromium.org/2701313002/diff/20001/chrome/browser/ui/views/settings_reset_prompt_dialog.cc File chrome/browser/ui/views/settings_reset_prompt_dialog.cc (right): https://codereview.chromium.org/2701313002/diff/20001/chrome/browser/ui/views/settings_reset_prompt_dialog.cc#newcode58 chrome/browser/ui/views/settings_reset_prompt_dialog.cc:58: class SimpleMessageView : public views::View { On 2017/02/23 05:37:08, ...
3 years, 10 months ago (2017-02-23 18:44:52 UTC) #8
alito
Scott, I've made the change you suggested. Also, after a chat with UI, we decided ...
3 years, 10 months ago (2017-02-24 00:19:09 UTC) #9
sky
LGTM - thanks!
3 years, 10 months ago (2017-02-24 04:11:09 UTC) #10
alito
Thanks Scott. Robert, any comments?
3 years, 10 months ago (2017-02-24 17:21:31 UTC) #11
robertshield
lgtm
3 years, 10 months ago (2017-02-24 19:43:20 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2701313002/80001
3 years, 10 months ago (2017-02-24 19:50:08 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/397515)
3 years, 10 months ago (2017-02-24 20:15:02 UTC) #16
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2701313002/80001
3 years, 10 months ago (2017-02-24 21:11:09 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/176811)
3 years, 10 months ago (2017-02-24 22:53:12 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2701313002/100001
3 years, 10 months ago (2017-02-24 23:08:43 UTC) #23
commit-bot: I haz the power
Try jobs failed on following builders: win_clang on master.tryserver.chromium.win (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.win/builders/win_clang/builds/176909)
3 years, 10 months ago (2017-02-25 00:46:22 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2701313002/120001
3 years, 10 months ago (2017-02-25 01:14:51 UTC) #28
commit-bot: I haz the power
3 years, 10 months ago (2017-02-25 02:34:12 UTC) #31
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/c61da3e4d5f324c493728c5cc2f5...

Powered by Google App Engine
This is Rietveld 408576698