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

Issue 1117893002: Moving extension code out of "components/" to avoid layering violations. (Closed)

Created:
5 years, 7 months ago by Deepak
Modified:
5 years, 7 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Moving extension code out of "components/" to avoid layering violations. component should not know and access extensions code directly. Test=None, internal cleanup. BUG=477096 Committed: https://crrev.com/b49c1e93eaf4182b629ce36b2feaea2f60b1e5f4 Cr-Commit-Position: refs/heads/master@{#328342}

Patch Set 1 #

Total comments: 14

Patch Set 2 : Changes as per review comments. #

Total comments: 2

Patch Set 3 : Addressing nit. #

Total comments: 4

Patch Set 4 : Changes as per review comments. #

Total comments: 2

Patch Set 5 : Changes as per review comments. #

Total comments: 2

Patch Set 6 : Changes as per review comments. #

Total comments: 2

Patch Set 7 : Addressing nit. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+61 lines, -48 lines) Patch
M chrome/browser/guest_view/web_view/context_menu_content_type_web_view.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/guest_view/web_view/context_menu_content_type_web_view.cc View 1 2 3 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/renderer_context_menu/context_menu_content_type_platform_app.h View 1 2 chunks +6 lines, -0 lines 0 comments Download
M chrome/browser/renderer_context_menu/context_menu_content_type_platform_app.cc View 1 2 3 2 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu.h View 1 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/browser/renderer_context_menu/render_view_context_menu.cc View 1 2 3 4 5 6 3 chunks +19 lines, -1 line 0 comments Download
M components/renderer_context_menu/DEPS View 1 1 chunk +0 lines, -2 lines 0 comments Download
M components/renderer_context_menu/context_menu_content_type.h View 1 2 2 chunks +2 lines, -7 lines 0 comments Download
M components/renderer_context_menu/context_menu_content_type.cc View 2 chunks +0 lines, -19 lines 0 comments Download
M components/renderer_context_menu/render_view_context_menu_base.h View 1 chunk +0 lines, -4 lines 0 comments Download
M components/renderer_context_menu/render_view_context_menu_base.cc View 3 chunks +0 lines, -15 lines 0 comments Download

Messages

Total messages: 33 (8 generated)
Deepak
Please review.
5 years, 7 months ago (2015-04-30 12:20:33 UTC) #2
lazyboy
Thanks for the CL. Could you also update the CL description adding a Test= section? ...
5 years, 7 months ago (2015-04-30 16:33:31 UTC) #3
Deepak
Thanks for review. Changes done as suggested. PTAL. https://codereview.chromium.org/1117893002/diff/1/chrome/browser/guest_view/web_view/context_menu_content_type_web_view.h File chrome/browser/guest_view/web_view/context_menu_content_type_web_view.h (right): https://codereview.chromium.org/1117893002/diff/1/chrome/browser/guest_view/web_view/context_menu_content_type_web_view.h#newcode28 chrome/browser/guest_view/web_view/context_menu_content_type_web_view.h:28: const ...
5 years, 7 months ago (2015-05-02 06:25:21 UTC) #4
lazyboy
LGTM with a nit. https://codereview.chromium.org/1117893002/diff/20001/components/renderer_context_menu/context_menu_content_type.h File components/renderer_context_menu/context_menu_content_type.h (right): https://codereview.chromium.org/1117893002/diff/20001/components/renderer_context_menu/context_menu_content_type.h#newcode67 components/renderer_context_menu/context_menu_content_type.h:67: // TODO(lazyboy): Return const content::Webcontents ...
5 years, 7 months ago (2015-05-02 07:17:15 UTC) #5
Deepak
nit addressed. Thanks. https://codereview.chromium.org/1117893002/diff/20001/components/renderer_context_menu/context_menu_content_type.h File components/renderer_context_menu/context_menu_content_type.h (right): https://codereview.chromium.org/1117893002/diff/20001/components/renderer_context_menu/context_menu_content_type.h#newcode67 components/renderer_context_menu/context_menu_content_type.h:67: // TODO(lazyboy): Return const content::Webcontents pointer. ...
5 years, 7 months ago (2015-05-02 07:56:24 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1117893002/40001
5 years, 7 months ago (2015-05-02 07:56:59 UTC) #9
Deepak
Dear @fsamuel and @jochen Please give approval for below files. ++ fsamuel for guest_view/web_view/context_menu_content_type_web_view.h guest_view/web_view/context_menu_content_type_web_view.cpp ...
5 years, 7 months ago (2015-05-02 08:09:58 UTC) #12
Fady Samuel
https://codereview.chromium.org/1117893002/diff/40001/chrome/browser/guest_view/web_view/context_menu_content_type_web_view.cc File chrome/browser/guest_view/web_view/context_menu_content_type_web_view.cc (right): https://codereview.chromium.org/1117893002/diff/40001/chrome/browser/guest_view/web_view/context_menu_content_type_web_view.cc#newcode15 chrome/browser/guest_view/web_view/context_menu_content_type_web_view.cc:15: #if defined(ENABLE_EXTENSIONS) This (#if defined) is unnecessary. <webview>s are ...
5 years, 7 months ago (2015-05-03 03:08:46 UTC) #13
Deepak
@fsamuel Thanks for review. Changes done as suggested. PTAL https://codereview.chromium.org/1117893002/diff/40001/chrome/browser/guest_view/web_view/context_menu_content_type_web_view.cc File chrome/browser/guest_view/web_view/context_menu_content_type_web_view.cc (right): https://codereview.chromium.org/1117893002/diff/40001/chrome/browser/guest_view/web_view/context_menu_content_type_web_view.cc#newcode15 chrome/browser/guest_view/web_view/context_menu_content_type_web_view.cc:15: ...
5 years, 7 months ago (2015-05-04 04:10:10 UTC) #14
Fady Samuel
https://codereview.chromium.org/1117893002/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/1117893002/diff/60001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode314 chrome/browser/renderer_context_menu/render_view_context_menu.cc:314: extensions::MimeHandlerViewGuest::FromWebContents(web_contents); Taking a look at this code now: is ...
5 years, 7 months ago (2015-05-04 04:16:10 UTC) #15
Deepak
PTAL https://codereview.chromium.org/1117893002/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/1117893002/diff/60001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode314 chrome/browser/renderer_context_menu/render_view_context_menu.cc:314: extensions::MimeHandlerViewGuest::FromWebContents(web_contents); On 2015/05/04 04:16:10, Fady Samuel wrote: > ...
5 years, 7 months ago (2015-05-04 06:06:45 UTC) #16
jochen (gone - plz use gerrit)
I wonder whether it's preferable to move the code to //extensions?
5 years, 7 months ago (2015-05-04 07:28:57 UTC) #18
Fady Samuel
On 2015/05/04 07:28:57, jochen wrote: > I wonder whether it's preferable to move the code ...
5 years, 7 months ago (2015-05-04 14:17:58 UTC) #19
Deepak
@lazyboy and @fsamuel Please review. Thanks
5 years, 7 months ago (2015-05-05 02:36:14 UTC) #20
lazyboy
https://codereview.chromium.org/1117893002/diff/80001/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/1117893002/diff/80001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode310 chrome/browser/renderer_context_menu/render_view_context_menu.cc:310: extensions::GuestViewBase::GetTopLevelWebContents(web_contents); GuestViewBase is too broad for this, I'd only ...
5 years, 7 months ago (2015-05-05 05:16:16 UTC) #21
Deepak
Changes done as suggested. PTAL Thanks https://codereview.chromium.org/1117893002/diff/80001/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/1117893002/diff/80001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode310 chrome/browser/renderer_context_menu/render_view_context_menu.cc:310: extensions::GuestViewBase::GetTopLevelWebContents(web_contents); On 2015/05/05 ...
5 years, 7 months ago (2015-05-05 06:28:22 UTC) #22
lazyboy
LGTM https://codereview.chromium.org/1117893002/diff/100001/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/1117893002/diff/100001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode311 chrome/browser/renderer_context_menu/render_view_context_menu.cc:311: // If we're viewing in a MimeHandlerViewGuest, use ...
5 years, 7 months ago (2015-05-05 06:49:54 UTC) #23
Deepak
Done. PTAL https://codereview.chromium.org/1117893002/diff/100001/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/1117893002/diff/100001/chrome/browser/renderer_context_menu/render_view_context_menu.cc#newcode311 chrome/browser/renderer_context_menu/render_view_context_menu.cc:311: // If we're viewing in a MimeHandlerViewGuest, ...
5 years, 7 months ago (2015-05-05 06:54:47 UTC) #24
jochen (gone - plz use gerrit)
lgtm
5 years, 7 months ago (2015-05-05 14:01:01 UTC) #25
Deepak
On 2015/05/05 14:01:01, jochen wrote: > lgtm @fsamuel Please give approval for guest_view/web_view/context_menu_content_type_web_view.h guest_view/web_view/context_menu_content_type_web_view.cpp Thanks
5 years, 7 months ago (2015-05-05 14:02:32 UTC) #26
Fady Samuel
lgtm
5 years, 7 months ago (2015-05-05 14:48:10 UTC) #27
Deepak
On 2015/05/05 14:48:10, Fady Samuel wrote: > lgtm Thanks @lazyboy,@jochen,@fsamuel.
5 years, 7 months ago (2015-05-05 14:49:10 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1117893002/120001
5 years, 7 months ago (2015-05-05 14:49:48 UTC) #31
commit-bot: I haz the power
Committed patchset #7 (id:120001)
5 years, 7 months ago (2015-05-05 16:35:13 UTC) #32
commit-bot: I haz the power
5 years, 7 months ago (2015-05-05 16:36:16 UTC) #33
Message was sent while issue was closed.
Patchset 7 (id:??) landed as
https://crrev.com/b49c1e93eaf4182b629ce36b2feaea2f60b1e5f4
Cr-Commit-Position: refs/heads/master@{#328342}

Powered by Google App Engine
This is Rietveld 408576698