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

Issue 3143046: The "Update Chrome" menu item should appear in addition to the About menu. (Closed)

Created:
10 years, 3 months ago by Elliot Glaysher
Modified:
9 years, 7 months ago
CC:
chromium-reviews, davemoore+watch_chromium.org, ben+cc_chromium.org, John Grabowski, pam+watch_chromium.org
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

The "Update Chrome" menu item should appear in addition to the About menu. It should not replace it. This patch modifications to the GTK and Cocoa ports to make the update chrome item appear when an update is available. On win/chromeos, the menu item is always there but disabled, since I'm having some problems figuring out the views custom menu implementation. BUG=46221 TEST=The upgrade item should now appear under instead of replacing the about command. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=58040

Patch Set 1 #

Patch Set 2 : Mac support #

Total comments: 11

Patch Set 3 : Update #

Patch Set 4 : Testing showed that changing the enabled state wasn't working. #

Total comments: 2

Patch Set 5 : estade fixes -> final try #

Unified diffs Side-by-side diffs Delta from patch set Stats (+74 lines, -44 lines) Patch
M app/menus/menu_model.h View 1 2 3 4 1 chunk +3 lines, -0 lines 0 comments Download
M app/menus/menu_model.cc View 1 chunk +4 lines, -0 lines 0 comments Download
M app/menus/simple_menu_model.h View 1 2 3 chunks +3 lines, -1 line 0 comments Download
M app/menus/simple_menu_model.cc View 1 2 3 chunks +16 lines, -0 lines 0 comments Download
M chrome/app/chrome_dll_resource.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/browser.cc View 1 2 3 4 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/cocoa/menu_controller.mm View 2 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/gtk/menu_gtk.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/gtk/menu_gtk.cc View 1 2 3 chunks +19 lines, -5 lines 0 comments Download
M chrome/browser/wrench_menu_model.h View 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/wrench_menu_model.cc View 1 2 4 chunks +18 lines, -30 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Elliot Glaysher
10 years, 3 months ago (2010-08-27 22:20:31 UTC) #1
sky
LGTM. Let me know when you land and I'll fix windows. -Scott
10 years, 3 months ago (2010-08-27 22:38:24 UTC) #2
Evan Stade
http://codereview.chromium.org/3143046/diff/2001/3001 File app/menus/menu_model.h (right): http://codereview.chromium.org/3143046/diff/2001/3001#newcode98 app/menus/menu_model.h:98: virtual bool IsVisibleAt(int index) const = 0; why don't ...
10 years, 3 months ago (2010-08-27 23:16:11 UTC) #3
Robert Sesek
http://codereview.chromium.org/3143046/diff/2001/3001 File app/menus/menu_model.h (right): http://codereview.chromium.org/3143046/diff/2001/3001#newcode98 app/menus/menu_model.h:98: virtual bool IsVisibleAt(int index) const = 0; On 2010/08/27 ...
10 years, 3 months ago (2010-08-29 18:38:42 UTC) #4
Elliot Glaysher
TAL. A question: how do I test this? Now that I'm waiting on the upgrade ...
10 years, 3 months ago (2010-08-30 18:23:42 UTC) #5
Evan Stade
On 2010/08/30 18:23:42, Elliot Glaysher wrote: > TAL. > > A question: how do I ...
10 years, 3 months ago (2010-08-30 18:52:18 UTC) #6
Robert Sesek
LGTM
10 years, 3 months ago (2010-08-30 20:36:23 UTC) #7
Elliot Glaysher
Evan, TAL? Testing showed that listening to the notification wasn't working. I'm going to take ...
10 years, 3 months ago (2010-08-30 23:33:31 UTC) #8
Evan Stade
10 years, 3 months ago (2010-08-31 02:03:58 UTC) #9
lgtm

http://codereview.chromium.org/3143046/diff/9002/15002
File app/menus/menu_model.h (right):

http://codereview.chromium.org/3143046/diff/9002/15002#newcode97
app/menus/menu_model.h:97: // Returns true the menu item is visible.
grammar

http://codereview.chromium.org/3143046/diff/9002/15007
File chrome/browser/back_forward_menu_model.h (right):

http://codereview.chromium.org/3143046/diff/9002/15007#newcode59
chrome/browser/back_forward_menu_model.h:59: virtual bool IsVisibleAt(int)
const;
no longer needed

Powered by Google App Engine
This is Rietveld 408576698