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

Issue 2225003: Implement upgrade notifications.... (Closed)

Created:
10 years, 7 months ago by Finnur
Modified:
9 years, 6 months ago
CC:
chromium-reviews, John Grabowski, Paweł Hajdan Jr., pam+watch_chromium.org, ben+cc_chromium.org
Visibility:
Public.

Description

Implement upgrade notifications. When we detect that the installed version is newer than the version you are running we show a little throbbing orange dot over the wrench menu. If you open the wrench menu and close it again, the throbbing will stop. However, if you look at the contents of the wrench menu you'll notice that the About box menu item has been removed and in its place is a menu item "Update Chrome Now" with a bright orange icon to draw your attention to it. Clicking on the icon shows a dialog box asking whether you want to restart Chrome. If you do, the browser restarts with your session restored (even if you have Session Restore turned off). Known issues: - Currently this is Windows only. We'll have to port this to Linux and do something differnet for Mac (which doesn't have the wrench menu). - Showing an icon in front of Update Chrome causes the checkbox for the bookmark bar menu to go away. Given that we will soon redesign the menus I'm not going to spend much time trying to fix it. BUG=27941 TEST=Wait for Chrome to be upgraded in the background, an orange dot should appear over the wrench menu and if you select Update Chrome your session should be retained. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=48318

Patch Set 1 #

Total comments: 5

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+586 lines, -20 lines) Patch
M chrome/app/generated_resources.grd View 3 chunks +17 lines, -0 lines 0 comments Download
M chrome/app/theme/theme_resources.grd View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/app_menu_model.h View 2 chunks +5 lines, -3 lines 0 comments Download
M chrome/browser/app_menu_model.cc View 1 4 chunks +40 lines, -5 lines 0 comments Download
M chrome/browser/browser.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/browser.cc View 4 chunks +12 lines, -2 lines 0 comments Download
M chrome/browser/browser_prefs.cc View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/browser/browser_shutdown.cc View 4 chunks +24 lines, -1 line 2 comments Download
M chrome/browser/browser_window.h View 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/cocoa/browser_window_cocoa.mm View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/gtk/browser_window_gtk.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/gtk/browser_window_gtk.cc View 1 chunk +4 lines, -0 lines 0 comments Download
A chrome/browser/upgrade_detector.h View 1 chunk +57 lines, -0 lines 0 comments Download
A chrome/browser/upgrade_detector.cc View 1 2 1 chunk +96 lines, -0 lines 0 comments Download
chrome/browser/views/frame/browser_view.h View 2 chunks +3 lines, -2 lines 0 comments Download
M chrome/browser/views/frame/browser_view.cc View 3 chunks +9 lines, -1 line 0 comments Download
M chrome/browser/views/toolbar_view.h View 6 chunks +26 lines, -1 line 0 comments Download
M chrome/browser/views/toolbar_view.cc View 1 10 chunks +108 lines, -4 lines 0 comments Download
A chrome/browser/views/update_recommended_message_box.h View 1 chunk +49 lines, -0 lines 0 comments Download
A chrome/browser/views/update_recommended_message_box.cc View 1 chunk +90 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 2 chunks +4 lines, -0 lines 0 comments Download
M chrome/common/notification_type.h View 2 chunks +15 lines, -1 line 0 comments Download
M chrome/common/pref_names.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/pref_names.cc View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/test/test_browser_window.h View 1 chunk +1 line, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Finnur
Looks a bit scarier than it is, since there is a bit of plumbing involved...
10 years, 7 months ago (2010-05-25 23:32:04 UTC) #1
Ben Goodger (Google)
http://codereview.chromium.org/2225003/diff/1/4 File chrome/browser/app_menu_model.cc (right): http://codereview.chromium.org/2225003/diff/1/4#newcode191 chrome/browser/app_menu_model.cc:191: } else { nit: no else after return http://codereview.chromium.org/2225003/diff/1/15 ...
10 years, 7 months ago (2010-05-26 00:06:33 UTC) #2
Finnur
Updated. http://codereview.chromium.org/2225003/diff/1/15 File chrome/browser/upgrade_detector.cc (right): http://codereview.chromium.org/2225003/diff/1/15#newcode30 chrome/browser/upgrade_detector.cc:30: static int kNotifyUserAfterMs = 0; See comment above ...
10 years, 7 months ago (2010-05-26 00:27:52 UTC) #3
John Grabowski
> > > > - Currently this is Windows only. We'll have to port this ...
10 years, 7 months ago (2010-05-26 01:15:11 UTC) #4
Ben Goodger (Google)
We're planning to turn on a unified menu on all platforms (see Cole for mocks) ...
10 years, 7 months ago (2010-05-26 01:27:25 UTC) #5
Finnur
> We're planning to turn on a unified menu on all platforms (see Cole > ...
10 years, 7 months ago (2010-05-26 04:06:42 UTC) #6
John Grabowski
Not suggesting you change paths. Was trying to help direct your 'We'll have to ...
10 years, 7 months ago (2010-05-26 04:13:13 UTC) #7
Finnur
> How expensive is this operation? I used the high-res timer of our built-in base::Time ...
10 years, 7 months ago (2010-05-26 16:29:46 UTC) #8
Ben Goodger (Google)
I see. The reason I asked about the cost of the image operations was that ...
10 years, 7 months ago (2010-05-26 18:17:31 UTC) #9
Nico
http://codereview.chromium.org/2225003/diff/41001/42008 File chrome/browser/browser_shutdown.cc (right): http://codereview.chromium.org/2225003/diff/41001/42008#newcode172 chrome/browser/browser_shutdown.cc:172: Upgrade::RelaunchChromeBrowser(command_line); Isn't this very racy? RelaunchChromeBrowser() mostly just calls ...
10 years, 3 months ago (2010-08-27 05:14:09 UTC) #10
Nico
10 years, 3 months ago (2010-08-27 05:17:15 UTC) #11
http://codereview.chromium.org/2225003/diff/41001/42008
File chrome/browser/browser_shutdown.cc (right):

http://codereview.chromium.org/2225003/diff/41001/42008#newcode172
chrome/browser/browser_shutdown.cc:172:
Upgrade::RelaunchChromeBrowser(command_line);
On 2010/08/27 05:14:09, Nico wrote:
> Isn't this very racy? RelaunchChromeBrowser() mostly just calls
> base::LaunchApp() directly, which means we're basically hope that the current
> process finishes fast enough before the new process starts up.

This might be the cause for http://crbug.com/50803 and possibly
http://crbug.com/49631

Powered by Google App Engine
This is Rietveld 408576698