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

Issue 492133002: Renderer changes for wiring up shared memory with declarative injection (Closed)

Created:
6 years, 4 months ago by Mark Dittmer
Modified:
6 years, 3 months ago
Reviewers:
kenrb, Devlin
CC:
chromium-reviews, darin-cc_chromium.org, jam, extensions-reviews_chromium.org, chromium-apps-reviews_chromium.org, not at google - send to devlin, Jeffrey Yasskin
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Renderer changes for wiring up shared memory with declarative injection BUG=377978 Committed: https://crrev.com/9ea140f4f6a694b3a65461f4ac41daf94dc2c59c Cr-Commit-Position: refs/heads/master@{#292558}

Patch Set 1 #

Total comments: 14

Patch Set 2 : IGNORE PATCH (diff against wrong branch) #

Patch Set 3 : Address first round of review comments #

Patch Set 4 : Add browsertests #

Total comments: 30

Patch Set 5 : Fix tests, revert mistaken changes, address nits #

Total comments: 29

Patch Set 6 : Double-check and/or address missed code review comments #

Patch Set 7 : Fixed up tests and responded to other comments #

Total comments: 21

Patch Set 8 : Fix up API tests, int64s, and check URL before declarative injection #

Total comments: 12

Patch Set 9 : Fix final nits #

Unified diffs Side-by-side diffs Delta from patch set Stats (+681 lines, -158 lines) Patch
M chrome/browser/extensions/api/declarative_content/content_action.h View 1 2 3 4 5 6 7 8 2 chunks +87 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/declarative_content/content_action.cc View 1 2 3 4 5 6 7 8 7 chunks +174 lines, -126 lines 0 comments Download
A chrome/browser/extensions/api/declarative_content/request_content_script_apitest.cc View 1 2 3 4 5 6 7 8 1 chunk +223 lines, -0 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
M extensions/common/extension_messages.h View 1 2 3 4 1 chunk +7 lines, -0 lines 0 comments Download
M extensions/renderer/script_injection_manager.h View 1 2 3 4 5 6 7 1 chunk +7 lines, -0 lines 0 comments Download
M extensions/renderer/script_injection_manager.cc View 1 2 3 4 5 6 7 8 5 chunks +51 lines, -0 lines 0 comments Download
M extensions/renderer/user_script_injector.h View 1 2 2 chunks +6 lines, -1 line 0 comments Download
M extensions/renderer/user_script_injector.cc View 1 2 3 4 2 chunks +23 lines, -8 lines 0 comments Download
M extensions/renderer/user_script_set.h View 1 2 3 4 5 6 7 2 chunks +10 lines, -1 line 0 comments Download
M extensions/renderer/user_script_set.cc View 1 2 3 4 5 4 chunks +40 lines, -8 lines 0 comments Download
M extensions/renderer/user_script_set_manager.h View 1 2 3 4 5 6 7 2 chunks +11 lines, -2 lines 0 comments Download
M extensions/renderer/user_script_set_manager.cc View 1 2 3 4 5 6 7 6 chunks +41 lines, -12 lines 0 comments Download

Messages

Total messages: 24 (0 generated)
Mark Dittmer
Hey Devlin, here are the IPC + renderer changes for wiring up RequestContentScript to actual ...
6 years, 4 months ago (2014-08-21 01:49:55 UTC) #1
Devlin
https://codereview.chromium.org/492133002/diff/1/chrome/browser/extensions/api/declarative_content/content_action.cc File chrome/browser/extensions/api/declarative_content/content_action.cc (right): https://codereview.chromium.org/492133002/diff/1/chrome/browser/extensions/api/declarative_content/content_action.cc#newcode261 chrome/browser/extensions/api/declarative_content/content_action.cc:261: contents->GetRenderProcessHost()->Send( Why not send this to the RenderViewHost so ...
6 years, 4 months ago (2014-08-21 17:06:17 UTC) #2
Devlin
And if this one is the last CL for this part (I think it is?) ...
6 years, 4 months ago (2014-08-21 17:12:38 UTC) #3
Mark Dittmer
Adding Ken for owners review of IPC messages. Addressed first round of comments (no tests ...
6 years, 4 months ago (2014-08-23 12:21:39 UTC) #4
Mark Dittmer
On 2014/08/21 17:12:38, Devlin wrote: > And if this one is the last CL for ...
6 years, 4 months ago (2014-08-23 17:03:44 UTC) #5
Devlin
On 2014/08/23 17:03:44, Mark Dittmer wrote: > On 2014/08/21 17:12:38, Devlin wrote: > > And ...
6 years, 3 months ago (2014-08-25 16:19:19 UTC) #6
Mark Dittmer
Rebased from new revision of browser-side CL and added browsertests.
6 years, 3 months ago (2014-08-25 22:01:02 UTC) #7
Devlin
https://codereview.chromium.org/492133002/diff/60001/chrome/browser/extensions/api/declarative_content/content_action.cc File chrome/browser/extensions/api/declarative_content/content_action.cc (right): https://codereview.chromium.org/492133002/diff/60001/chrome/browser/extensions/api/declarative_content/content_action.cc#newcode21 chrome/browser/extensions/api/declarative_content/content_action.cc:21: #include "content/public/browser/render_process_host.h" still need this? https://codereview.chromium.org/492133002/diff/60001/chrome/browser/extensions/api/declarative_content/request_content_script_browsertest.cc File chrome/browser/extensions/api/declarative_content/request_content_script_browsertest.cc (right): ...
6 years, 3 months ago (2014-08-25 22:31:06 UTC) #8
Mark Dittmer
Addressed latest round of comments, including refactoring browser tests code. https://codereview.chromium.org/492133002/diff/60001/chrome/browser/extensions/api/declarative_content/content_action.cc File chrome/browser/extensions/api/declarative_content/content_action.cc (right): https://codereview.chromium.org/492133002/diff/60001/chrome/browser/extensions/api/declarative_content/content_action.cc#newcode21 ...
6 years, 3 months ago (2014-08-26 17:53:59 UTC) #9
Devlin
It looks like a few of the comments that were marked as fixed actually weren't... ...
6 years, 3 months ago (2014-08-26 21:59:16 UTC) #10
Mark Dittmer
Double-check and/or address missed code review comments. Sorry for the confusion! https://codereview.chromium.org/492133002/diff/60001/extensions/renderer/user_script_set.cc File extensions/renderer/user_script_set.cc (right): ...
6 years, 3 months ago (2014-08-27 21:21:48 UTC) #11
Mark Dittmer
Fixed up tests and responded to other comments. https://codereview.chromium.org/492133002/diff/80001/chrome/browser/extensions/api/declarative_content/content_action.cc File chrome/browser/extensions/api/declarative_content/content_action.cc (right): https://codereview.chromium.org/492133002/diff/80001/chrome/browser/extensions/api/declarative_content/content_action.cc#newcode19 chrome/browser/extensions/api/declarative_content/content_action.cc:19: #include ...
6 years, 3 months ago (2014-08-27 22:37:04 UTC) #12
Devlin
https://codereview.chromium.org/492133002/diff/60001/extensions/renderer/user_script_set.h File extensions/renderer/user_script_set.h (right): https://codereview.chromium.org/492133002/diff/60001/extensions/renderer/user_script_set.h#newcode19 extensions/renderer/user_script_set.h:19: #include "extensions/renderer/script_injection.h" On 2014/08/27 21:21:48, Mark Dittmer wrote: > ...
6 years, 3 months ago (2014-08-27 23:01:12 UTC) #13
Mark Dittmer
Addressed all comments with one potential concern about the URL check before injection (see inline ...
6 years, 3 months ago (2014-08-28 13:02:42 UTC) #14
kenrb
ipc lgtm
6 years, 3 months ago (2014-08-28 15:03:59 UTC) #15
Devlin
Will review the rest in a couple of hours, but I suspect it will be ...
6 years, 3 months ago (2014-08-28 17:53:58 UTC) #16
Mark Dittmer
On 2014/08/28 17:53:58, Devlin wrote: > Will review the rest in a couple of hours, ...
6 years, 3 months ago (2014-08-28 21:20:16 UTC) #17
Devlin
If all the bots are happy, I'm happy, modulo a few nits. LGTM. https://codereview.chromium.org/492133002/diff/140001/chrome/browser/extensions/api/declarative_content/request_content_script_apitest.cc File ...
6 years, 3 months ago (2014-08-28 21:38:11 UTC) #18
Mark Dittmer
Fixed final nits. https://codereview.chromium.org/492133002/diff/140001/chrome/browser/extensions/api/declarative_content/request_content_script_apitest.cc File chrome/browser/extensions/api/declarative_content/request_content_script_apitest.cc (right): https://codereview.chromium.org/492133002/diff/140001/chrome/browser/extensions/api/declarative_content/request_content_script_apitest.cc#newcode122 chrome/browser/extensions/api/declarative_content/request_content_script_apitest.cc:122: scoped_ptr<ExtensionTestMessageListener> injection_succeeded_listener; On 2014/08/28 21:38:10, Devlin ...
6 years, 3 months ago (2014-08-28 23:49:47 UTC) #19
Mark Dittmer
The CQ bit was checked by markdittmer@chromium.org
6 years, 3 months ago (2014-08-28 23:53:57 UTC) #20
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/markdittmer@chromium.org/492133002/160001
6 years, 3 months ago (2014-08-28 23:55:11 UTC) #21
commit-bot: I haz the power
FYI, CQ is re-trying this CL (attempt #1). The failing builders are: mac_gpu on tryserver.chromium.gpu ...
6 years, 3 months ago (2014-08-29 01:35:57 UTC) #22
commit-bot: I haz the power
Committed patchset #9 (id:160001) as 4f974cc82ccda03ede230f8aded6c8ce0b8d640e
6 years, 3 months ago (2014-08-29 02:46:29 UTC) #23
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:05:45 UTC) #24
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/9ea140f4f6a694b3a65461f4ac41daf94dc2c59c
Cr-Commit-Position: refs/heads/master@{#292558}

Powered by Google App Engine
This is Rietveld 408576698