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

Issue 10446091: Prompt user before restarting System Preferences. (Closed)

Created:
8 years, 6 months ago by Lambros
Modified:
8 years, 6 months ago
Reviewers:
Jamie, dcaiafa
CC:
chromium-reviews, jamiewalch+watch_chromium.org, dcaiafa+watch_chromium.org, simonmorris+watch_chromium.org, hclam+watch_chromium.org, wez+watch_chromium.org, amit, sanjeevr, garykac+watch_chromium.org, lambroslambrou+watch_chromium.org, alexeypa+watch_chromium.org, sergeyu+watch_chromium.org
Visibility:
Public.

Description

Prompt user before restarting System Preferences. When Chromoting Host components have been upgraded on Mac whilst the pref-pane is still loaded, prompt the user before restarting System Preferences. The user has the opportunity to cancel, in case they were doing something in a different pref-pane. In that case, the Chromoting pref-pane should be completely disabled, and shouldn't process any new config data until it is restarted. This is a followup CL to http://codereview.chromium.org/10413065/ BUG=129226 TEST=manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=141583

Patch Set 1 #

Patch Set 2 : Send notification if user cancels the "restart" alert #

Total comments: 20

Patch Set 3 : Update comments #

Total comments: 2

Patch Set 4 : Rename variable and move check out of readNewConfig #

Total comments: 2

Patch Set 5 : Fix if.. brace style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+143 lines, -44 lines) Patch
M remoting/host/me2me_preference_pane.h View 1 2 3 3 chunks +30 lines, -3 lines 0 comments Download
M remoting/host/me2me_preference_pane.mm View 1 2 3 4 6 chunks +113 lines, -41 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Lambros
8 years, 6 months ago (2012-05-31 00:10:35 UTC) #1
Jamie
Doesn't this mean that if the user clicks Cancel then the web-app will be stuck ...
8 years, 6 months ago (2012-05-31 00:18:29 UTC) #2
Lambros
On 2012/05/31 00:18:29, Jamie wrote: > Doesn't this mean that if the user clicks Cancel ...
8 years, 6 months ago (2012-05-31 22:45:29 UTC) #3
Jamie
http://codereview.chromium.org/10446091/diff/6003/remoting/host/me2me_preference_pane.h File remoting/host/me2me_preference_pane.h (right): http://codereview.chromium.org/10446091/diff/6003/remoting/host/me2me_preference_pane.h#newcode101 remoting/host/me2me_preference_pane.h:101: // leaving the config file untouched. Is this second ...
8 years, 6 months ago (2012-06-01 18:53:26 UTC) #4
Lambros
http://codereview.chromium.org/10446091/diff/6003/remoting/host/me2me_preference_pane.h File remoting/host/me2me_preference_pane.h (right): http://codereview.chromium.org/10446091/diff/6003/remoting/host/me2me_preference_pane.h#newcode101 remoting/host/me2me_preference_pane.h:101: // leaving the config file untouched. On 2012/06/01 18:53:26, ...
8 years, 6 months ago (2012-06-05 17:57:39 UTC) #5
Jamie
http://codereview.chromium.org/10446091/diff/6003/remoting/host/me2me_preference_pane.h File remoting/host/me2me_preference_pane.h (right): http://codereview.chromium.org/10446091/diff/6003/remoting/host/me2me_preference_pane.h#newcode71 remoting/host/me2me_preference_pane.h:71: BOOL is_pane_disabled_; Now that I understand better what's going ...
8 years, 6 months ago (2012-06-06 16:26:49 UTC) #6
Lambros
http://codereview.chromium.org/10446091/diff/6003/remoting/host/me2me_preference_pane.h File remoting/host/me2me_preference_pane.h (right): http://codereview.chromium.org/10446091/diff/6003/remoting/host/me2me_preference_pane.h#newcode71 remoting/host/me2me_preference_pane.h:71: BOOL is_pane_disabled_; On 2012/06/06 16:26:49, Jamie wrote: > Now ...
8 years, 6 months ago (2012-06-07 00:25:27 UTC) #7
Jamie
lgtm with one nit. http://codereview.chromium.org/10446091/diff/16001/remoting/host/me2me_preference_pane.mm File remoting/host/me2me_preference_pane.mm (right): http://codereview.chromium.org/10446091/diff/16001/remoting/host/me2me_preference_pane.mm#newcode184 remoting/host/me2me_preference_pane.mm:184: if (!restart_pending_or_canceled_) Nit: You've used ...
8 years, 6 months ago (2012-06-07 20:41:35 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lambroslambrou@chromium.org/10446091/20001
8 years, 6 months ago (2012-06-11 23:42:17 UTC) #9
commit-bot: I haz the power
Change committed as 141583
8 years, 6 months ago (2012-06-12 01:23:00 UTC) #10
Lambros
8 years, 6 months ago (2012-06-14 00:36:34 UTC) #11
http://codereview.chromium.org/10446091/diff/16001/remoting/host/me2me_prefer...
File remoting/host/me2me_preference_pane.mm (right):

http://codereview.chromium.org/10446091/diff/16001/remoting/host/me2me_prefer...
remoting/host/me2me_preference_pane.mm:184: if (!restart_pending_or_canceled_)
On 2012/06/07 20:41:35, Jamie wrote:
> Nit: You've used a mix of braced and unbraced one-line ifs in this CL. My
> preference is for the former, but stick to whatever is used elsewhere in this
> file for consistency.

Done.

Powered by Google App Engine
This is Rietveld 408576698