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

Issue 7309011: Remove dependencies on extensions from content/browser/debugger. (Closed)

Created:
9 years, 5 months ago by Jói
Modified:
9 years, 5 months ago
Reviewers:
brettw
CC:
chromium-reviews, joi+watch-content_chromium.org, Aaron Boodman, Erik does not do reviews, jam, Paweł Hajdan Jr.
Visibility:
Public.

Description

Remove dependencies on extensions from content/browser/debugger. This is done by moving embedder-specific protocol registration to ContentBrowserClient, moving ExtensionPortsRemoteService back to Chrome, and retrieving a list of "extensions" (in the WebKit debugger sense, not the Chrome extensions sense) to add to the debugger from the embedder. BUG=84078 TEST=existing (primarily unit_tests and interactive_ui_tests)

Patch Set 1 #

Total comments: 6

Patch Set 2 : Address review comments. #

Total comments: 2

Patch Set 3 : Move CancelableQuitTask. #

Patch Set 4 : Merge to head. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+304 lines, -706 lines) Patch
M chrome/browser/chrome_content_browser_client.h View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 4 chunks +30 lines, -0 lines 0 comments Download
A chrome/browser/debugger/devtools_extension_debug_unittest.cc View 1 2 1 chunk +137 lines, -0 lines 0 comments Download
A + chrome/browser/debugger/extension_ports_remote_service.h View 0 chunks +-1 lines, --1 lines 0 comments Download
A + chrome/browser/debugger/extension_ports_remote_service.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome.gyp View 1 2 3 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 2 chunks +2 lines, -0 lines 0 comments Download
M content/browser/content_browser_client.h View 2 chunks +12 lines, -0 lines 0 comments Download
M content/browser/debugger/DEPS View 2 chunks +0 lines, -4 lines 0 comments Download
M content/browser/debugger/devtools_protocol_handler.cc View 2 chunks +6 lines, -4 lines 0 comments Download
A content/browser/debugger/devtools_sanity_unittest.h View 1 2 1 chunk +33 lines, -0 lines 0 comments Download
M content/browser/debugger/devtools_sanity_unittest.cc View 1 2 3 4 chunks +62 lines, -183 lines 0 comments Download
M content/browser/debugger/devtools_window.cc View 1 2 3 4 chunks +4 lines, -18 lines 0 comments Download
D content/browser/debugger/extension_ports_remote_service.h View 1 chunk +0 lines, -110 lines 0 comments Download
D content/browser/debugger/extension_ports_remote_service.cc View 1 chunk +0 lines, -385 lines 0 comments Download
M content/browser/mock_content_browser_client.h View 1 chunk +4 lines, -0 lines 0 comments Download
M content/browser/mock_content_browser_client.cc View 1 chunk +8 lines, -0 lines 0 comments Download

Messages

Total messages: 7 (0 generated)
Jói
9 years, 5 months ago (2011-07-04 19:40:30 UTC) #1
brettw
I realize you didn't write the test stuff, but can you make a fix to ...
9 years, 5 months ago (2011-07-06 16:15:39 UTC) #2
brettw
LGTM with previous comments addressed.
9 years, 5 months ago (2011-07-06 16:15:47 UTC) #3
Jói
Thanks Brett, I plan to submit once try jobs pass. http://codereview.chromium.org/7309011/diff/1/chrome/browser/debugger/devtools_extension_debug_unittest.cc File chrome/browser/debugger/devtools_extension_debug_unittest.cc (right): http://codereview.chromium.org/7309011/diff/1/chrome/browser/debugger/devtools_extension_debug_unittest.cc#newcode48 ...
9 years, 5 months ago (2011-07-06 16:38:56 UTC) #4
brettw
http://codereview.chromium.org/7309011/diff/4002/content/browser/debugger/devtools_sanity_unittest.h File content/browser/debugger/devtools_sanity_unittest.h (right): http://codereview.chromium.org/7309011/diff/4002/content/browser/debugger/devtools_sanity_unittest.h#newcode18 content/browser/debugger/devtools_sanity_unittest.h:18: class CancelableQuitTask : public Task { Can you make ...
9 years, 5 months ago (2011-07-06 16:56:32 UTC) #5
Jói
Moved the class, plan to commit once trybots are happy. http://codereview.chromium.org/7309011/diff/4002/content/browser/debugger/devtools_sanity_unittest.h File content/browser/debugger/devtools_sanity_unittest.h (right): http://codereview.chromium.org/7309011/diff/4002/content/browser/debugger/devtools_sanity_unittest.h#newcode18 ...
9 years, 5 months ago (2011-07-06 18:04:52 UTC) #6
Jói
9 years, 5 months ago (2011-07-07 20:25:56 UTC) #7
I'm abandoning this change based on discussions with the devtools
team.  All of the legacy protocol stuff (which includes the
extension_ports_remote_service.cc and .h files) is going away soon,
and is not depended on by anything in content/, so we might as well
leave it all on the Chrome side, and this will be a separate
whole-sale move back of those files.

Sorry for the noise.

Cheers,
Jói


On Wed, Jul 6, 2011 at 2:04 PM,  <joi@chromium.org> wrote:
> Moved the class, plan to commit once trybots are happy.
>
>
>
http://codereview.chromium.org/7309011/diff/4002/content/browser/debugger/dev...
> File content/browser/debugger/devtools_sanity_unittest.h (right):
>
>
http://codereview.chromium.org/7309011/diff/4002/content/browser/debugger/dev...
> content/browser/debugger/devtools_sanity_unittest.h:18: class
> CancelableQuitTask : public Task {
> On 2011/07/06 16:56:32, brettw wrote:
>>
>> Can you make this a member of DevToolsSanityTest so this generic name
>
> isn't in
>>
>> the global scope?
>
> Taking another look at it, it's only used in
> chrome/browser/debugger/devtools_extension_debug_unittest.cc so I moved
> it there.
>
> http://codereview.chromium.org/7309011/
>

Powered by Google App Engine
This is Rietveld 408576698