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

Issue 2850153002: Disable Open in Incognito context item for urls disallowed in Incognito (Closed)

Created:
3 years, 7 months ago by elawrence
Modified:
3 years, 7 months ago
Reviewers:
lazyboy
CC:
chromium-reviews
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Disable Open in Incognito menu item for urls disallowed in Incognito Some URLs are not permitted to load in Incognito mode, instead opening back in the regular browser window, making the "Open Link in Incognito Window" context menu link misleading. To address this, disable the menu command for links that are disallowed in Incognito mode. BUG=682163 Review-Url: https://codereview.chromium.org/2850153002 Cr-Commit-Position: refs/heads/master@{#468958} Committed: https://chromium.googlesource.com/chromium/src/+/b60fcce6235c4ff9a4a2fbdd18e0d36f29879d4f

Patch Set 1 : Use IsURLAllowedInIncognito function to control link #

Total comments: 4

Patch Set 2 : Address feedback #

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

Messages

Total messages: 21 (16 generated)
elawrence
PTAL?
3 years, 7 months ago (2017-05-02 18:14:37 UTC) #7
lazyboy
lgtm https://codereview.chromium.org/2850153002/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/2850153002/diff/40001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode2158 chrome/browser/renderer_context_menu/render_view_context_menu.cc:2158: if (!chrome::IsURLAllowedInIncognito(params_.link_url, browser_context_)) { nit: drop {} https://codereview.chromium.org/2850153002/diff/40001/chrome/browser/renderer_context_menu/render_view_context_menu_unittest.cc ...
3 years, 7 months ago (2017-05-02 23:44:56 UTC) #14
elawrence
https://codereview.chromium.org/2850153002/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/2850153002/diff/40001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode2158 chrome/browser/renderer_context_menu/render_view_context_menu.cc:2158: if (!chrome::IsURLAllowedInIncognito(params_.link_url, browser_context_)) { On 2017/05/02 23:44:55, lazyboy wrote: ...
3 years, 7 months ago (2017-05-03 01:44:47 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2850153002/60001
3 years, 7 months ago (2017-05-03 13:04:50 UTC) #18
commit-bot: I haz the power
3 years, 7 months ago (2017-05-03 14:02:46 UTC) #21
Message was sent while issue was closed.
Committed patchset #2 (id:60001) as
https://chromium.googlesource.com/chromium/src/+/b60fcce6235c4ff9a4a2fbdd18e0...

Powered by Google App Engine
This is Rietveld 408576698