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

Issue 3176021: Ensure that a browser action is never passed to a function which expects a page action. (Closed)

Created:
10 years, 4 months ago by Sam Kerner (Chrome)
Modified:
9 years, 7 months ago
CC:
chromium-reviews, John Grabowski, pam+watch_chromium.org, ben+cc_chromium.org, Erik does not do reviews, Aaron Boodman
Base URL:
http://src.chromium.org/git/chromium.git
Visibility:
Public.

Description

Ensure that a browser action is never passed to a function which expects a page action. (Changed review name, because the solution has changed) BUG=53041 TEST=On a mac, install a browser action and a page action, right click on each icon, select "Inspect Popup". Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=57048

Patch Set 1 #

Total comments: 2

Patch Set 2 : Better fix: don't pass a browser action into a function expecting a page action. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+13 lines, -4 lines) Patch
M chrome/browser/cocoa/extensions/extension_action_context_menu.mm View 1 chunk +8 lines, -3 lines 0 comments Download
M chrome/browser/cocoa/location_bar/location_bar_view_mac.h View 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/cocoa/location_bar/location_bar_view_mac.mm View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
Sam Kerner (Chrome)
Scott, I think a NOTREACHED() that you added should be reachable. Let me know if ...
10 years, 4 months ago (2010-08-19 23:55:40 UTC) #1
Scott Hess - ex-Googler
LGTM. I think you're right, but I was faithfully replicating older code, warts and all ...
10 years, 4 months ago (2010-08-20 00:00:23 UTC) #2
Bons
http://codereview.chromium.org/3176021/diff/1/2 File chrome/browser/cocoa/location_bar/location_bar_view_mac.mm (right): http://codereview.chromium.org/3176021/diff/1/2#newcode290 chrome/browser/cocoa/location_bar/location_bar_view_mac.mm:290: // We will get here if |page_action| is actually ...
10 years, 4 months ago (2010-08-20 16:24:20 UTC) #3
Sam Kerner (Chrome)
After looking at all callers to the function I was changing, I think it is ...
10 years, 4 months ago (2010-08-23 03:15:04 UTC) #4
Bons
10 years, 4 months ago (2010-08-23 03:38:24 UTC) #5
LGTM

Powered by Google App Engine
This is Rietveld 408576698