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

Issue 628403003: In pdf context menu 'Print..' is coming 2 times. (Closed)

Created:
6 years, 2 months ago by Deepak
Modified:
6 years, 2 months ago
Reviewers:
lazyboy, raymes
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

In the OOP PDF context menu 'Print..' is being shown 2 times When we launch pdf with --out-of-process-pdf --enable-mime-handler-view and then select a word and then right click outside selection then context menu has 'Print..' 2 times. IDC_PRINT is getting added once as part of AppendPluginItem() and again as part of AppendPrintItem(). BUG=420954 Test= 1.launch chrome browser with --out-of-process-pdf --enable-mime-handler-view options. 2.Open a PDF and select some word. 3.Then right click outside selection. Then we will see 2 |Print..| context menu items. Committed: https://crrev.com/b3115e6252af69ca0aca60ed8b1334d46561b2b7 Cr-Commit-Position: refs/heads/master@{#298648}

Patch Set 1 #

Patch Set 2 : fixed compilation error. #

Total comments: 2

Patch Set 3 : Changes as per comments. #

Total comments: 2

Patch Set 4 : Changes as per comments. #

Total comments: 1

Patch Set 5 : nit correction. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+5 lines, -0 lines) Patch
M chrome/browser/renderer_context_menu/render_view_context_menu.cc View 1 2 3 4 1 chunk +5 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
Deepak
PTAL
6 years, 2 months ago (2014-10-07 08:05:00 UTC) #2
lazyboy
I'd change the CL description a bit, this is not specific to out-of-process-pdf. It happens ...
6 years, 2 months ago (2014-10-07 15:32:24 UTC) #3
Deepak
On 2014/10/07 15:32:24, lazyboy wrote: > I'd change the CL description a bit, this is ...
6 years, 2 months ago (2014-10-07 15:57:01 UTC) #4
Deepak
PTAL https://codereview.chromium.org/628403003/diff/20001/chrome/browser/renderer_context_menu/render_view_context_menu.cc File chrome/browser/renderer_context_menu/render_view_context_menu.cc (right): https://codereview.chromium.org/628403003/diff/20001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode831 chrome/browser/renderer_context_menu/render_view_context_menu.cc:831: menu_model_.GetIndexOfCommandId(IDC_PRINT) == -1) { On 2014/10/07 15:32:24, lazyboy ...
6 years, 2 months ago (2014-10-07 15:57:11 UTC) #5
lazyboy
lgtm Please also change the description of the CL Add the following section after BUG= ...
6 years, 2 months ago (2014-10-07 16:23:38 UTC) #6
Deepak
All changes done as suggested. Thanks https://codereview.chromium.org/628403003/diff/40001/chrome/browser/renderer_context_menu/render_view_context_menu.cc File chrome/browser/renderer_context_menu/render_view_context_menu.cc (right): https://codereview.chromium.org/628403003/diff/40001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode829 chrome/browser/renderer_context_menu/render_view_context_menu.cc:829: // here if.|IDC_PRINT| ...
6 years, 2 months ago (2014-10-07 16:33:20 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/628403003/60001
6 years, 2 months ago (2014-10-07 16:34:00 UTC) #9
raymes
https://codereview.chromium.org/628403003/diff/60001/chrome/browser/renderer_context_menu/render_view_context_menu.cc File chrome/browser/renderer_context_menu/render_view_context_menu.cc (right): https://codereview.chromium.org/628403003/diff/60001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode829 chrome/browser/renderer_context_menu/render_view_context_menu.cc:829: // here if |IDC_PRINT| is already present in context ...
6 years, 2 months ago (2014-10-07 17:09:14 UTC) #11
Deepak
On 2014/10/07 17:09:14, raymes wrote: > https://codereview.chromium.org/628403003/diff/60001/chrome/browser/renderer_context_menu/render_view_context_menu.cc > File chrome/browser/renderer_context_menu/render_view_context_menu.cc (right): > > https://codereview.chromium.org/628403003/diff/60001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode829 > ...
6 years, 2 months ago (2014-10-08 02:43:44 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/628403003/80001
6 years, 2 months ago (2014-10-08 02:44:44 UTC) #14
commit-bot: I haz the power
Committed patchset #5 (id:80001) as 711b255d37814790d28120be84b497b6a51109bb
6 years, 2 months ago (2014-10-08 03:33:35 UTC) #15
commit-bot: I haz the power
6 years, 2 months ago (2014-10-08 03:34:19 UTC) #16
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/b3115e6252af69ca0aca60ed8b1334d46561b2b7
Cr-Commit-Position: refs/heads/master@{#298648}

Powered by Google App Engine
This is Rietveld 408576698