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

Issue 538063003: Move execute_code_function to extensions. (Closed)

Created:
6 years, 3 months ago by lfg
Modified:
6 years, 3 months ago
Reviewers:
Ken Rockot(use gerrit already), Fady Samuel, littleone691
CC:
chromium-reviews, extensions-reviews_chromium.org, jennb, plundblad+watch_chromium.org, aboxhall+watch_chromium.org, jianli, Dmitry Titov, yuzo+watch_chromium.org, dmazzoni+watch_chromium.org, dtseng+watch_chromium.org, chromium-apps-reviews_chromium.org, dcheng, Xi Han, wjmaclean
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Move execute_code_function to extensions. BUG=352293 Committed: https://crrev.com/cc21ae467a60a64e14a1f112c496be7b65a2b5f5 Cr-Commit-Position: refs/heads/master@{#293770}

Patch Set 1 #

Patch Set 2 : Rebasing and fixing include guards #

Patch Set 3 : Formatting #

Patch Set 4 : Refactor patch to use direct inheritance, move only constants that are used from tabs_constants #

Patch Set 5 : Rebasing #

Total comments: 5

Patch Set 6 : Cleanup #

Patch Set 7 : Rebasing #

Patch Set 8 : #

Patch Set 9 : gn build #

Unified diffs Side-by-side diffs Delta from patch set Stats (+107 lines, -394 lines) Patch
D chrome/browser/extensions/api/execute_code_function.h View 1 2 3 4 6 1 chunk +0 lines, -74 lines 0 comments Download
D chrome/browser/extensions/api/execute_code_function.cc View 1 chunk +0 lines, -222 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_api.h View 1 2 3 4 6 2 chunks +1 line, -1 line 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_api.cc View 1 2 3 4 5 6 2 chunks +1 line, -2 lines 0 comments Download
D chrome/browser/extensions/api/tabs/tabs_constants.h View 1 2 3 1 chunk +0 lines, -3 lines 0 comments Download
D chrome/browser/extensions/api/tabs/tabs_constants.cc View 1 2 3 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/extensions/api/web_view/web_view_internal_api.h View 1 2 3 1 chunk +1 line, -2 lines 0 comments Download
M chrome/browser/extensions/api/web_view/web_view_internal_api.cc View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 3 4 5 6 7 1 chunk +0 lines, -2 lines 0 comments Download
M chrome/common/extensions/api/tabs.json View 3 chunks +2 lines, -19 lines 0 comments Download
M chrome/common/extensions/api/web_view_internal.json View 2 chunks +2 lines, -2 lines 0 comments Download
M extensions/browser/BUILD.gn View 1 2 3 4 5 6 7 8 1 chunk +2 lines, -0 lines 0 comments Download
M extensions/browser/api/capture_web_contents_function.h View 1 2 chunks +3 lines, -3 lines 0 comments Download
M extensions/browser/api/capture_web_contents_function_impl.h View 1 2 chunks +4 lines, -0 lines 0 comments Download
A + extensions/browser/api/execute_code_function.h View 1 2 3 4 6 4 chunks +10 lines, -12 lines 0 comments Download
A + extensions/browser/api/execute_code_function.cc View 1 2 3 4 5 7 8 12 chunks +61 lines, -47 lines 0 comments Download
M extensions/common/api/extension_types.json View 1 2 3 4 5 6 1 chunk +17 lines, -0 lines 0 comments Download
M extensions/extensions.gyp View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 20 (3 generated)
lfg
6 years, 3 months ago (2014-09-04 18:31:15 UTC) #2
Ken Rockot(use gerrit already)
On 2014/09/04 18:31:15, lfg wrote: Haven't done a full review yet, but for starters I ...
6 years, 3 months ago (2014-09-04 20:51:57 UTC) #3
Fady Samuel
On 2014/09/04 20:51:57, Ken Rockot wrote: > On 2014/09/04 18:31:15, lfg wrote: > > Haven't ...
6 years, 3 months ago (2014-09-04 20:58:24 UTC) #4
Ken Rockot(use gerrit already)
Yeah, it seems fine to want to move ExecuteCodeFunction. Though to be honest I am ...
6 years, 3 months ago (2014-09-04 21:09:34 UTC) #5
lfg
Yes, I think this should be possible in this case, as it only uses the ...
6 years, 3 months ago (2014-09-04 21:25:40 UTC) #6
Ken Rockot(use gerrit already)
In that case, I would just use Profile::GetFromBrowserContext(context()) directly in the implementation rather than GetProfile(). ...
6 years, 3 months ago (2014-09-04 21:27:54 UTC) #7
Ken Rockot(use gerrit already)
Also sorry, that would be Profile::FromBrowserContext(browser_context()) :) On Thu, Sep 4, 2014 at 2:27 PM, ...
6 years, 3 months ago (2014-09-04 21:34:04 UTC) #8
lfg
PTAL, I've rebased against HEAD + https://codereview.chromium.org/543873002/ . On 2014/09/04 21:34:04, Ken Rockot wrote: > ...
6 years, 3 months ago (2014-09-04 22:41:21 UTC) #9
Ken Rockot(use gerrit already)
lgtm pending landing of base CL https://codereview.chromium.org/538063003/diff/80001/extensions/browser/api/execute_code_function.cc File extensions/browser/api/execute_code_function.cc (right): https://codereview.chromium.org/538063003/diff/80001/extensions/browser/api/execute_code_function.cc#newcode33 extensions/browser/api/execute_code_function.cc:33: const std::string& data) ...
6 years, 3 months ago (2014-09-04 22:54:47 UTC) #10
Fady Samuel
https://codereview.chromium.org/538063003/diff/80001/extensions/common/constants.cc File extensions/common/constants.cc (right): https://codereview.chromium.org/538063003/diff/80001/extensions/common/constants.cc#newcode61 extensions/common/constants.cc:61: const char kMoreThanOneValuesError[] = "Code and file should not ...
6 years, 3 months ago (2014-09-04 22:59:59 UTC) #12
Ken Rockot(use gerrit already)
Generally we don't bother localizing console error strings. There are tons of these strings throughout ...
6 years, 3 months ago (2014-09-04 23:01:27 UTC) #13
lfg
On 2014/09/04 22:54:47, Ken Rockot wrote: > lgtm pending landing of base CL > > ...
6 years, 3 months ago (2014-09-05 14:41:02 UTC) #14
Fady Samuel
lgtm
6 years, 3 months ago (2014-09-05 14:43:00 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/lfg@chromium.org/538063003/160001
6 years, 3 months ago (2014-09-08 16:09:26 UTC) #17
littleone691_gmail.com
thanks On Mon, Sep 8, 2014 at 12:09 PM, <commit-bot@chromium.org> wrote: > CQ is trying ...
6 years, 3 months ago (2014-09-08 16:10:45 UTC) #18
commit-bot: I haz the power
Committed patchset #9 (id:160001) as 03ae304424c8f04a7a790b70a2e4a97cf814cb22
6 years, 3 months ago (2014-09-08 19:36:28 UTC) #19
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:47:41 UTC) #20
Message was sent while issue was closed.
Patchset 9 (id:??) landed as
https://crrev.com/cc21ae467a60a64e14a1f112c496be7b65a2b5f5
Cr-Commit-Position: refs/heads/master@{#293770}

Powered by Google App Engine
This is Rietveld 408576698