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

Issue 262016: Implement chrome.extension.connectExternal and fix various API inconsistencies. (Closed)

Created:
11 years, 2 months ago by Matt Perry
Modified:
9 years, 7 months ago
Reviewers:
Aaron Boodman
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Implement chrome.extension.connectExternal and fix various API inconsistencies. BUG=23583 BUG=17910 TEST=no Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=28565

Patch Set 1 #

Patch Set 2 : comments #

Patch Set 3 : compile fixes #

Patch Set 4 : fixed unit tests #

Total comments: 8

Patch Set 5 : addressed comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+376 lines, -94 lines) Patch
M chrome/browser/extensions/extension_message_service.h View 3 chunks +9 lines, -3 lines 0 comments Download
M chrome/browser/extensions/extension_message_service.cc View 8 chunks +23 lines, -12 lines 0 comments Download
A chrome/browser/extensions/extension_messages_apitest.cc View 1 chunk +16 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_messages_unittest.cc View 3 3 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.h View 1 2 3 4 1 chunk +3 lines, -1 line 0 comments Download
M chrome/browser/renderer_host/resource_message_filter.cc View 1 2 3 4 1 chunk +4 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 3 chunks +18 lines, -1 line 0 comments Download
M chrome/common/extensions/docs/extension.html View 8 chunks +192 lines, -5 lines 0 comments Download
M chrome/common/render_messages_internal.h View 1 2 3 4 1 chunk +3 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/bindings_utils.h View 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/renderer/extensions/renderer_extension_bindings.cc View 1 chunk +7 lines, -4 lines 0 comments Download
M chrome/renderer/mock_render_thread.h View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/mock_render_thread.cc View 1 chunk +2 lines, -1 line 0 comments Download
M chrome/renderer/resources/event_bindings.js View 1 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/renderer/resources/extension_process_bindings.js View 3 chunks +2 lines, -11 lines 0 comments Download
M chrome/renderer/resources/renderer_extension_bindings.js View 1 2 3 4 4 chunks +54 lines, -37 lines 0 comments Download
M chrome/renderer/user_script_slave.cc View 1 2 3 4 1 chunk +2 lines, -6 lines 0 comments Download
A chrome/test/data/extensions/api_test/connect_external/connect.html View 1 chunk +13 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/connect_external/manifest.json View 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/good/Extensions/bjafgdebaacbbbecmhlhpofkepfkgcpa/1.0/toolstrip.html View 1 chunk +7 lines, -0 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
Matt Perry
11 years, 2 months ago (2009-10-07 23:11:14 UTC) #1
Aaron Boodman
lgtm Would prefer the test as an api test, though. http://codereview.chromium.org/262016/diff/33/34 File chrome/browser/extensions/extension_browsertests_misc.cc (right): http://codereview.chromium.org/262016/diff/33/34#newcode514 ...
11 years, 2 months ago (2009-10-08 18:09:57 UTC) #2
Matt Perry
11 years, 2 months ago (2009-10-08 21:15:30 UTC) #3
http://codereview.chromium.org/262016/diff/33/34
File chrome/browser/extensions/extension_browsertests_misc.cc (right):

http://codereview.chromium.org/262016/diff/33/34#newcode514
Line 514: // Tests that message passing between extensions and content scripts
works.
On 2009/10/08 18:09:57, Aaron Boodman wrote:
> Would it be possible to implement this as an api test instead? I'd like to
keep
> this file from growing even larger.

Done.

http://codereview.chromium.org/262016/diff/33/47
File chrome/renderer/resources/renderer_extension_bindings.js (right):

http://codereview.chromium.org/262016/diff/33/47#newcode63
Line 63: var connectEvent = (sourceExtensionId == chromeHidden.extensionId ?
On 2009/10/08 18:09:57, Aaron Boodman wrote:
> This is an important line. Maybe add a comment?

Done.

http://codereview.chromium.org/262016/diff/33/47#newcode71
Line 71: // TODO(mpcomplete): port.tab is obsolete. remove backwards compat at
1.0.
On 2009/10/08 18:09:57, Aaron Boodman wrote:
> Should we have a convention for marking backward compat code, so that we can
> grep for it later?
> 
> Some ideas:
> 
> // TODO(OLD_API)
> // TODO(EXTENSIONS_DEPRECATED)
> ...

Done.

Powered by Google App Engine
This is Rietveld 408576698