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

Issue 3017047: Set a max limit on extension items' labels in context menus.... (Closed)

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

Description

Set a max limit on extension items' labels in context menus. Also do some cleanup of context menu tests, including adding a generic mechanism to let javascript pass a test message and have C++ test code wait for and retrieve those messages. BUG=49744 TEST=Follow steps in bug report Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=54514

Patch Set 1 #

Total comments: 8

Patch Set 2 : '' #

Patch Set 3 : '' #

Total comments: 2

Patch Set 4 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+361 lines, -93 lines) Patch
M chrome/browser/extensions/extension_context_menu_browsertest.cc View 1 2 3 2 chunks +158 lines, -48 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_menu_manager.h View 1 2 3 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_menu_manager.cc View 1 2 3 2 chunks +7 lines, -1 line 0 comments Download
M chrome/browser/extensions/extension_test_api.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_test_api.cc View 1 2 3 2 chunks +13 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_test_message_listener.h View 1 2 1 chunk +70 lines, -0 lines 0 comments Download
A chrome/browser/extensions/extension_test_message_listener.cc View 1 2 3 1 chunk +43 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/tab_contents/render_view_context_menu.cc View 1 2 3 4 chunks +11 lines, -3 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 1 chunk +8 lines, -0 lines 0 comments Download
M chrome/common/notification_type.h View 1 2 3 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/context_menus/long_title/background.html View 1 chunk +1 line, -0 lines 0 comments Download
A chrome/test/data/extensions/context_menus/long_title/manifest.json View 1 chunk +6 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/context_menus/long_title/test.js View 1 chunk +17 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/context_menus/patterns/test.js View 1 2 3 1 chunk +1 line, -19 lines 0 comments Download
M chrome/test/data/extensions/context_menus/simple/test.js View 1 2 3 1 chunk +2 lines, -20 lines 0 comments Download

Messages

Total messages: 5 (0 generated)
asargent_no_longer_on_chrome
10 years, 4 months ago (2010-07-30 19:45:10 UTC) #1
rafaelw
http://codereview.chromium.org/3017047/diff/1/4 File chrome/browser/extensions/extension_menu_manager.cc (right): http://codereview.chromium.org/3017047/diff/1/4#newcode90 chrome/browser/extensions/extension_menu_manager.cc:90: DCHECK(result.length() <= max_length); this seem just a tad defensive. ...
10 years, 4 months ago (2010-07-30 21:20:37 UTC) #2
asargent_no_longer_on_chrome
http://codereview.chromium.org/3017047/diff/1/4 File chrome/browser/extensions/extension_menu_manager.cc (right): http://codereview.chromium.org/3017047/diff/1/4#newcode90 chrome/browser/extensions/extension_menu_manager.cc:90: DCHECK(result.length() <= max_length); On 2010/07/30 21:20:37, rafaelw wrote: > ...
10 years, 4 months ago (2010-07-30 22:34:28 UTC) #3
asargent_no_longer_on_chrome
Changed the ExtensionTestListener class based on our offline discussion. Take another look.
10 years, 4 months ago (2010-07-30 23:36:19 UTC) #4
rafaelw
10 years, 4 months ago (2010-07-31 00:03:33 UTC) #5
lgtm. nice!

http://codereview.chromium.org/3017047/diff/25001/5008
File chrome/browser/extensions/extension_test_message_listener.cc (right):

http://codereview.chromium.org/3017047/diff/25001/5008#newcode27
chrome/browser/extensions/extension_test_message_listener.cc:27: return
satisfied_;
nit: DCHECK(satisfied);

http://codereview.chromium.org/3017047/diff/25001/5008#newcode36
chrome/browser/extensions/extension_test_message_listener.cc:36: satisfied_ =
true;
might also be worth removing the listen here. just in case a test has multiple
and we end up tracking down the notifications.

Powered by Google App Engine
This is Rietveld 408576698