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

Issue 8142028: When critical updates have been installed and the user has been idle for quite some time, show a ... (Closed)

Created:
9 years, 2 months ago by Finnur
Modified:
9 years, 2 months ago
CC:
chromium-reviews, finnur+watch_chromium.org, jshin+watch_chromium.org
Visibility:
Public.

Description

When critical updates have been installed and the user has been idle for quite some time, show a bubble anchored to the wrench menu with a countdown clock for auto-restarting. BUG=97665 TEST=The testing for this is a bit too long-windy to describe here. Contact me for details. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=105298

Patch Set 1 #

Patch Set 2 : '' #

Patch Set 3 : '' #

Patch Set 4 : '' #

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 9

Patch Set 7 : '' #

Patch Set 8 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+511 lines, -18 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 1 chunk +14 lines, -0 lines 0 comments Download
M chrome/app/resources/locale_settings.grd View 1 2 3 4 5 6 7 1 chunk +5 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/critical_notification_bubble_view.h View 1 2 3 4 5 6 7 1 chunk +74 lines, -0 lines 0 comments Download
A chrome/browser/ui/views/critical_notification_bubble_view.cc View 1 2 3 4 5 6 7 1 chunk +198 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.h View 1 2 3 4 5 6 7 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/views/toolbar_view.cc View 1 2 3 4 5 6 7 4 chunks +27 lines, -0 lines 0 comments Download
M chrome/browser/upgrade_detector.h View 1 2 3 4 5 6 7 4 chunks +41 lines, -6 lines 0 comments Download
M chrome/browser/upgrade_detector.cc View 1 2 3 4 5 6 7 5 chunks +75 lines, -1 line 0 comments Download
M chrome/browser/upgrade_detector_impl.cc View 1 2 3 4 5 6 7 8 chunks +33 lines, -8 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/chrome_notification_types.h View 1 2 3 4 5 6 7 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/installer/util/google_update_constants.h View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/google_update_constants.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/installer/util/install_util.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -3 lines 0 comments Download
M chrome/installer/util/install_util.cc View 1 2 3 4 5 6 7 1 chunk +25 lines, -0 lines 0 comments Download

Messages

Total messages: 4 (0 generated)
Finnur
Ben, you reviewed the upgrade detector a while back, so it makes sense for you ...
9 years, 2 months ago (2011-10-12 09:48:40 UTC) #1
Ben Goodger (Google)
LGTM http://codereview.chromium.org/8142028/diff/15001/chrome/browser/ui/views/critical_notification_bubble_view.cc File chrome/browser/ui/views/critical_notification_bubble_view.cc (right): http://codereview.chromium.org/8142028/diff/15001/chrome/browser/ui/views/critical_notification_bubble_view.cc#newcode108 chrome/browser/ui/views/critical_notification_bubble_view.cc:108: BrowserList::AttemptRestart(); btw, what happens if a tab stops ...
9 years, 2 months ago (2011-10-12 15:10:45 UTC) #2
Finnur
http://codereview.chromium.org/8142028/diff/15001/chrome/browser/ui/views/critical_notification_bubble_view.cc File chrome/browser/ui/views/critical_notification_bubble_view.cc (right): http://codereview.chromium.org/8142028/diff/15001/chrome/browser/ui/views/critical_notification_bubble_view.cc#newcode108 chrome/browser/ui/views/critical_notification_bubble_view.cc:108: BrowserList::AttemptRestart(); What happens? Good question. The "Leave-this-page?" dialog appears. ...
9 years, 2 months ago (2011-10-13 14:34:10 UTC) #3
Ben Goodger (Google)
9 years, 2 months ago (2011-10-13 14:59:39 UTC) #4
Thanks for the explanation. Aside from this work, I think it'd be
interesting to have an experimental/about:flags mode that just closes the
tab (i.e. performs the "leave this page" automatically).

My guess is that I have a Chrome tab open somewhere that has something
that'd prevent your feature from working (e.g. freenode IRC, or some other
poorly designed editor that wants to stop me from leaving), so I'd most
likely return to my computer in the morning and find it in this state,
defeating the purpose of the auto-restart.

Given that other modern app development platforms (e.g. iOS, Android) are
forcing developers to deal with their apps being terminated or freeze-dried
at any moment, it seems like it'd be an interesting experiment for us to try
for webapps.

-Ben

On Thu, Oct 13, 2011 at 7:34 AM, <finnur@chromium.org> wrote:

>
> http://codereview.chromium.**org/8142028/diff/15001/chrome/**
>
browser/ui/views/critical_**notification_bubble_view.cc<http://codereview.chromium.org/8142028/diff/15001/chrome/browser/ui/views/critical_notification_bubble_view.cc>
> File chrome/browser/ui/views/**critical_notification_bubble_**view.cc
> (right):
>
> http://codereview.chromium.**org/8142028/diff/15001/chrome/**
>
browser/ui/views/critical_**notification_bubble_view.cc#**newcode108<http://codereview.chromium.org/8142028/diff/15001/chrome/browser/ui/views/critical_notification_bubble_view.cc#newcode108>
> chrome/browser/ui/views/**critical_notification_bubble_**view.cc:108:
> BrowserList::AttemptRestart();
> What happens? Good question. The "Leave-this-page?" dialog appears.
>
> If you select Leave, the browser shuts down and is restored, as it would
> normally.
>
> If you select Stay, the restart sequence halts, but the critical
> notification bubble remains open, allowing you to Reboot directly from
> the bubble (browser is restored, everything works normally).
>
> If you choose "Don't reboot" in the bubble, the bubble dismisses and you
> can continue to use the browser. Once you decide to shutdown, the flag
> (to restart on shutdown) has already been set, so the browser
> relaunches, restoring your session. I guess we should clean the pref to
> restart if the user opts to not restart... I'll submit a follow-up
> changelist.
>
> The only other thing that annoys me about this is that by selecting
> "Leave" during onbeforeunload the bubble is up with the message "Google
> Chrome will restart in 1 seconds", which is now misleading (the counter
> is frozen because the clock has been stopped)... :/
>
> I'll submit a followup that changes the headline on 0 seconds to:
>
> You should restart [PRODUCT_NAME] now.
>
>
>
> On 2011/10/12 15:10:45, Ben Goodger (Google) wrote:
>
>> btw, what happens if a tab stops shutdown (with an onbeforeunload
>>
> etc.)?
>
> http://codereview.chromium.**org/8142028/diff/15001/chrome/**
>
browser/ui/views/critical_**notification_bubble_view.h<http://codereview.chromium.org/8142028/diff/15001/chrome/browser/ui/views/critical_notification_bubble_view.h>
> File chrome/browser/ui/views/**critical_notification_bubble_**view.h
> (right):
>
> http://codereview.chromium.**org/8142028/diff/15001/chrome/**
>
browser/ui/views/critical_**notification_bubble_view.h#**newcode42<http://codereview.chromium.org/8142028/diff/15001/chrome/browser/ui/views/critical_notification_bubble_view.h#newcode42>
> chrome/browser/ui/views/**critical_notification_bubble_**view.h:42:
> virtual
> string16 accessible_name() OVERRIDE;
> Yeah, don't worry about this. Someone fixed the string16 issue right
> under my nose and fixed the unix_hacker style as well.
>
>
http://codereview.chromium.**org/8142028/<http://codereview.chromium.org/8142...
>

Powered by Google App Engine
This is Rietveld 408576698