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

Issue 873253002: Show only one profile corrupted dialog, support --noerrdialogs (Closed)

Created:
5 years, 11 months ago by robwu
Modified:
5 years, 10 months ago
Reviewers:
Peter Kasting
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Show only one profile corrupted dialog, support --noerrdialogs Make sure that at most one profile corruption error dialog is shown at any given time. Currently I ocasionally get six dialogs with an identical error message when I start Chrome while the profile is locked. Although, the ShowProfileErrorDialog method is called with two different messages (corrupt profile vs incompatible profile), I have only seen one of them showing up at any time, so the boolean guard is applied to any dialog generated by ShowProfileErrorDialog. R=pkasting@chromium.org BUG=446732, 447791 TEST=Manually: 1. Start Chrome to initialize the profile directory. 2. Close Chrome. 3. Mark database as read-only: chmod a-r "/tmp/profile/Default/Web Data" 4. Start Chrome again. 5. Verify that only one dialog is shown (instead of six). 6. Close Chrome. 7. Start Chrome, with the --noerrdialogs flag. 8. Verify that no error dialogs are displayed at all (instead of six). Committed: https://crrev.com/6d12da2b4cf576e0b9f2d571701e86a0cbac65d7 Cr-Commit-Position: refs/heads/master@{#314318}

Patch Set 1 #

Total comments: 10

Patch Set 2 : review comments #2 #

Unified diffs Side-by-side diffs Delta from patch set Stats (+15 lines, -4 lines) Patch
M chrome/browser/ui/profile_error_dialog.cc View 1 2 chunks +15 lines, -4 lines 0 comments Download

Messages

Total messages: 10 (1 generated)
robwu
5 years, 11 months ago (2015-01-26 15:17:10 UTC) #1
Peter Kasting
https://codereview.chromium.org/873253002/diff/1/chrome/browser/ui/profile_error_dialog.cc File chrome/browser/ui/profile_error_dialog.cc (right): https://codereview.chromium.org/873253002/diff/1/chrome/browser/ui/profile_error_dialog.cc#newcode16 chrome/browser/ui/profile_error_dialog.cc:16: bool is_showing_profile_error_dialog = false; Nit: A static bool inside ...
5 years, 11 months ago (2015-01-26 19:52:46 UTC) #2
robwu
https://codereview.chromium.org/873253002/diff/1/chrome/browser/ui/profile_error_dialog.cc File chrome/browser/ui/profile_error_dialog.cc (right): https://codereview.chromium.org/873253002/diff/1/chrome/browser/ui/profile_error_dialog.cc#newcode16 chrome/browser/ui/profile_error_dialog.cc:16: bool is_showing_profile_error_dialog = false; On 2015/01/26 19:52:46, Peter Kasting ...
5 years, 11 months ago (2015-01-26 23:26:21 UTC) #3
Peter Kasting
https://codereview.chromium.org/873253002/diff/1/chrome/browser/ui/profile_error_dialog.cc File chrome/browser/ui/profile_error_dialog.cc (right): https://codereview.chromium.org/873253002/diff/1/chrome/browser/ui/profile_error_dialog.cc#newcode25 chrome/browser/ui/profile_error_dialog.cc:25: switches::kNoErrorDialogs)) On 2015/01/26 23:26:21, robwu wrote: > On 2015/01/26 ...
5 years, 11 months ago (2015-01-27 00:20:32 UTC) #4
robwu
https://codereview.chromium.org/873253002/diff/1/chrome/browser/ui/profile_error_dialog.cc File chrome/browser/ui/profile_error_dialog.cc (right): https://codereview.chromium.org/873253002/diff/1/chrome/browser/ui/profile_error_dialog.cc#newcode25 chrome/browser/ui/profile_error_dialog.cc:25: switches::kNoErrorDialogs)) On 2015/01/27 00:20:32, Peter Kasting wrote: > On ...
5 years, 11 months ago (2015-01-27 22:03:47 UTC) #5
Peter Kasting
On 2015/01/27 22:03:47, robwu wrote: > Meanwhile, can this patch be accepted? Besides getting rid ...
5 years, 11 months ago (2015-01-27 22:25:02 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/873253002/20001
5 years, 10 months ago (2015-02-03 10:59:05 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-03 12:34:15 UTC) #9
commit-bot: I haz the power
5 years, 10 months ago (2015-02-03 12:35:14 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/6d12da2b4cf576e0b9f2d571701e86a0cbac65d7
Cr-Commit-Position: refs/heads/master@{#314318}

Powered by Google App Engine
This is Rietveld 408576698