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

Issue 8540012: Enable extension APIs for content scripts. (Closed)

Created:
9 years, 1 month ago by Aaron Boodman
Modified:
9 years, 1 month ago
Reviewers:
Matt Perry
CC:
chromium-reviews, Erik does not do reviews, Paweł Hajdan Jr., mihaip+watch_chromium.org, darin-cc_chromium.org, brettw-cc_chromium.org
Visibility:
Public.

Description

Enable extension APIs for content scripts. This only enables extension functions. I will do events in a separate change. BUG=81760, 80308 Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=109812

Patch Set 1 #

Total comments: 18

Patch Set 2 : ready for another look #

Patch Set 3 : IsUnprivileged->IsPrivileged #

Patch Set 4 : IsUnprivileged->IsPrivileged #

Patch Set 5 : blargh #

Patch Set 6 : Fix ExtensionApiTest.ContentScriptExtensionIframe #

Patch Set 7 : rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+478 lines, -2734 lines) Patch
M chrome/browser/autocomplete/autocomplete_match.cc View 1 2 3 4 5 6 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/extensions/content_script_apitest.cc View 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/extensions/extension_devtools_events.h View 1 2 chunks +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/extension_devtools_events.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/extension_function_dispatcher.cc View 1 2 3 4 5 6 6 chunks +9 lines, -5 lines 0 comments Download
M chrome/browser/extensions/extension_messages_browsertest.cc View 1 4 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/extensions/stubs_apitest.cc View 1 1 chunk +0 lines, -5 lines 0 comments Download
M chrome/chrome_common.gypi View 1 2 3 4 5 6 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_renderer.gypi View 1 2 chunks +6 lines, -6 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A chrome/common/extensions/api/extension_api.h View 1 2 3 4 1 chunk +66 lines, -0 lines 0 comments Download
A chrome/common/extensions/api/extension_api.cc View 1 2 3 4 1 chunk +95 lines, -0 lines 0 comments Download
M chrome/common/extensions/api/extension_api.json View 1 2 3 4 5 6 20 chunks +7 lines, -13 lines 0 comments Download
A chrome/common/extensions/api/extension_api_unittest.cc View 1 2 1 chunk +27 lines, -0 lines 0 comments Download
M chrome/common/extensions/extension_messages.h View 1 1 chunk +9 lines, -1 line 0 comments Download
M chrome/renderer/chrome_content_renderer_client.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/chrome_v8_extension.h View 1 chunk +1 line, -1 line 0 comments Download
M chrome/renderer/extensions/chrome_v8_extension.cc View 1 2 3 4 chunks +36 lines, -13 lines 0 comments Download
M chrome/renderer/extensions/event_bindings.cc View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/extension_api_json_validity_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/extensions/extension_dispatcher.cc View 1 4 chunks +8 lines, -6 lines 0 comments Download
M chrome/renderer/extensions/extension_helper.cc View 1 4 chunks +6 lines, -4 lines 0 comments Download
D chrome/renderer/extensions/extension_process_bindings.h View 1 2 3 4 5 6 1 chunk +0 lines, -35 lines 0 comments Download
M chrome/renderer/extensions/extension_process_bindings.cc View 1 1 chunk +0 lines, -665 lines 0 comments Download
A + chrome/renderer/extensions/miscellaneous_bindings.h View 1 2 3 chunks +13 lines, -6 lines 0 comments Download
A + chrome/renderer/extensions/miscellaneous_bindings.cc View 1 4 chunks +9 lines, -5 lines 0 comments Download
D chrome/renderer/extensions/renderer_extension_bindings.h View 1 1 chunk +0 lines, -40 lines 0 comments Download
D chrome/renderer/extensions/renderer_extension_bindings.cc View 1 1 chunk +0 lines, -294 lines 0 comments Download
A + chrome/renderer/extensions/schema_generated_bindings.h View 1 2 3 4 5 6 3 chunks +10 lines, -6 lines 0 comments Download
A + chrome/renderer/extensions/schema_generated_bindings.cc View 1 13 chunks +56 lines, -24 lines 0 comments Download
M chrome/renderer/renderer_resources.grd View 1 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/renderer/resources/extensions/event.js View 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/renderer/resources/extensions/extension_process_bindings.js View 1 1 chunk +0 lines, -1058 lines 0 comments Download
A + chrome/renderer/resources/extensions/miscellaneous_bindings.js View 1 2 chunks +5 lines, -104 lines 0 comments Download
M chrome/renderer/resources/extensions/renderer_process_bindings.js View 1 1 chunk +0 lines, -386 lines 0 comments Download
A + chrome/renderer/resources/extensions/schema_generated_bindings.js View 1 6 chunks +39 lines, -10 lines 0 comments Download
M chrome/test/base/chrome_render_view_test.cc View 1 3 chunks +6 lines, -4 lines 0 comments Download
A chrome/test/data/extensions/api_test/content_scripts/extension_api/functions.js View 1 chunk +2 lines, -0 lines 0 comments Download
A chrome/test/data/extensions/api_test/content_scripts/extension_api/manifest.json View 1 chunk +11 lines, -0 lines 0 comments Download
M chrome/test/data/extensions/api_test/content_scripts/extension_iframe/iframe.html View 1 2 3 4 5 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/stubs/background.html View 1 1 chunk +1 line, -1 line 0 comments Download
M chrome/test/data/extensions/api_test/stubs/content_script.js View 6 chunks +7 lines, -13 lines 0 comments Download
M content/public/renderer/v8_value_converter.h View 1 1 chunk +1 line, -1 line 0 comments Download
M content/renderer/v8_value_converter_impl.h View 1 2 1 chunk +5 lines, -4 lines 0 comments Download
M content/renderer/v8_value_converter_impl.cc View 1 5 chunks +8 lines, -6 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Aaron Boodman
9 years, 1 month ago (2011-11-11 18:34:32 UTC) #1
Matt Perry
yay http://codereview.chromium.org/8540012/diff/1/chrome/browser/extensions/extension_function_dispatcher.cc File chrome/browser/extensions/extension_function_dispatcher.cc (right): http://codereview.chromium.org/8540012/diff/1/chrome/browser/extensions/extension_function_dispatcher.cc#newcode656 chrome/browser/extensions/extension_function_dispatcher.cc:656: if (!process_map.Contains(extension->id(), requesting_process_id)) did you mean to remove ...
9 years, 1 month ago (2011-11-11 20:07:19 UTC) #2
Aaron Boodman
http://codereview.chromium.org/8540012/diff/1/chrome/browser/extensions/extension_function_dispatcher.cc File chrome/browser/extensions/extension_function_dispatcher.cc (right): http://codereview.chromium.org/8540012/diff/1/chrome/browser/extensions/extension_function_dispatcher.cc#newcode656 chrome/browser/extensions/extension_function_dispatcher.cc:656: if (!process_map.Contains(extension->id(), requesting_process_id)) On 2011/11/11 20:07:19, Matt Perry wrote: ...
9 years, 1 month ago (2011-11-11 23:12:02 UTC) #3
Matt Perry
lgtm http://codereview.chromium.org/8540012/diff/1/chrome/common/extensions/api/extension_api.cc File chrome/common/extensions/api/extension_api.cc (right): http://codereview.chromium.org/8540012/diff/1/chrome/common/extensions/api/extension_api.cc#newcode29 chrome/common/extensions/api/extension_api.cc:29: base::JSONReader::ReadAndReturnError( On 2011/11/11 23:12:02, Aaron Boodman wrote: > ...
9 years, 1 month ago (2011-11-11 23:35:23 UTC) #4
Aaron Boodman
On 2011/11/11 23:35:23, Matt Perry wrote: > meh, i don't think the default really matters ...
9 years, 1 month ago (2011-11-11 23:55:03 UTC) #5
Matt Perry
On 2011/11/11 23:55:03, Aaron Boodman wrote: > On 2011/11/11 23:35:23, Matt Perry wrote: > > ...
9 years, 1 month ago (2011-11-12 00:24:15 UTC) #6
Aaron Boodman
On 2011/11/12 00:24:15, Matt Perry wrote: > On 2011/11/11 23:55:03, Aaron Boodman wrote: > > ...
9 years, 1 month ago (2011-11-12 00:44:06 UTC) #7
Matt Perry
lgtm
9 years, 1 month ago (2011-11-12 01:26:10 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aa@chromium.org/8540012/5007
9 years, 1 month ago (2011-11-12 17:34:51 UTC) #9
commit-bot: I haz the power
Can't apply patch for file chrome/browser/autocomplete/autocomplete_match.cc. While running patch -p1 --forward --force; patching file chrome/browser/autocomplete/autocomplete_match.cc ...
9 years, 1 month ago (2011-11-12 17:35:58 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/aa@chromium.org/8540012/9002
9 years, 1 month ago (2011-11-12 22:01:12 UTC) #11
commit-bot: I haz the power
9 years, 1 month ago (2011-11-12 22:02:06 UTC) #12
Presubmit check for 8540012-9002 failed and returned exit status 1.

Running presubmit commit checks ...

** Presubmit Messages **
If this change requires manual test instructions to QA team, add
TEST=[instructions].

** Presubmit Warnings **
License must match:
.*? Copyright \(c\) 2011 The Chromium Authors\. All rights reserved\.\n.*? Use
of this source code is governed by a BSD-style license that can be\n.*? found in
the LICENSE file\.\n
Found a bad license header in these files:
 
chrome/test/data/extensions/api_test/content_scripts/extension_api/functions.js
\
  chrome/test/data/extensions/api_test/stubs/content_script.js

** Presubmit ERRORS **
Missing LGTM from an OWNER for:
content/renderer/v8_value_converter_impl.cc,content/renderer/v8_value_converter_impl.h,content/public/renderer/v8_value_converter.h

Presubmit checks took 4.3s to calculate.

Powered by Google App Engine
This is Rietveld 408576698