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

Issue 4090011: Fix bug with context menus in incognito mode. (Closed)

Created:
10 years, 1 month ago by Matt Perry
Modified:
9 years, 7 months ago
CC:
chromium-reviews, Aaron Boodman, Erik does not do reviews, brettw-cc_chromium.org, pam+watch_chromium.org, ben+cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

Fix bug with context menus in incognito mode. If an extension uses "spanning" mode, the context menu items are shared between profiles. If an extension uses "split" mode, the items are separate per profile. In either case, they only appear in incognito if the extension is enabled in incognito. Also fixed a minor bug, so that tabs.create now can open extension URLs in incognito if the extension uses split mode. BUG=61147 TEST=see bug for repro steps; context menu items should work in incognito mode Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=64812

Patch Set 1 #

Patch Set 2 : oops #

Total comments: 6

Patch Set 3 : test #

Patch Set 4 : compile fix #

Patch Set 5 : manifest fix #

Unified diffs Side-by-side diffs Delta from patch set Stats (+212 lines, -53 lines) Patch
M chrome/browser/extensions/extension_context_menu_api.cc View 1 6 chunks +14 lines, -15 lines 0 comments Download
M chrome/browser/extensions/extension_context_menu_browsertest.cc View 8 chunks +66 lines, -7 lines 0 comments Download
M chrome/browser/extensions/extension_event_router.h View 1 chunk +7 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_event_router.cc View 1 2 2 chunks +18 lines, -11 lines 0 comments Download
M chrome/browser/extensions/extension_menu_manager.h View 1 2 2 chunks +15 lines, -4 lines 0 comments Download
M chrome/browser/extensions/extension_menu_manager.cc View 1 2 2 chunks +35 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_menu_manager_unittest.cc View 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_tabs_module.cc View 1 2 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_test_message_listener.h View 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_test_message_listener.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.h View 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 2 8 chunks +20 lines, -8 lines 0 comments Download
A chrome/test/data/extensions/context_menus/incognito/background.html View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/context_menus/incognito/manifest.json View 3 4 1 chunk +7 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/context_menus/incognito/test.js View 1 chunk +19 lines, -0 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
Matt Perry
10 years, 1 month ago (2010-10-29 21:50:24 UTC) #1
asargent_no_longer_on_chrome
Looks good in general. I'd like to see at least one browser test though; ExtensionContextMenuBrowserTest.Simple ...
10 years, 1 month ago (2010-11-01 17:33:31 UTC) #2
asargent_no_longer_on_chrome
http://codereview.chromium.org/4090011/diff/2001/3004 File chrome/browser/extensions/extension_menu_manager.cc (right): http://codereview.chromium.org/4090011/diff/2001/3004#newcode488 chrome/browser/extensions/extension_menu_manager.cc:488: extension_id == other.extension_id && style nit: should the two ...
10 years, 1 month ago (2010-11-01 17:33:56 UTC) #3
Matt Perry
I'll work on the browser test now. Thanks for the pointer to the similar test ...
10 years, 1 month ago (2010-11-01 19:34:01 UTC) #4
Matt Perry
OK, uploaded with a browser test
10 years, 1 month ago (2010-11-02 01:20:11 UTC) #5
asargent_no_longer_on_chrome
10 years, 1 month ago (2010-11-02 17:44:42 UTC) #6
lgtm

Powered by Google App Engine
This is Rietveld 408576698