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

Issue 543873002: Add ChromeExtensionFunctionDetails (Closed)

Created:
6 years, 3 months ago by Ken Rockot(use gerrit already)
Modified:
6 years, 3 months ago
Reviewers:
scheib, Yoyo Zhou
CC:
chromium-reviews, chromium-apps-reviews_chromium.org, extensions-reviews_chromium.org, Yoyo Zhou, lfg
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Project:
chromium
Visibility:
Public.

Description

Add ChromeExtensionFunctionDetails In the interest of phasing out the totally unnecessary *Chrome*ExtensionFunction base classes, this establishes a ChromeExtensionFunctionDetails object which can be created by extension function implementations in //chrome who need access to Chrome-specific details. This object can be very easily composed into such function implementations such that they can move away from using e.g. ChromeAsyncExtensionFunction or ChromeUIThreadExtensionFunction as a base class and instead rely on more universal and generic ExtensionFunction and its immediate derivatives. A conversion of the tabs API ExecuteCodeInTabFunction is included for demonstration purposes. BUG=None R=scheib@chromium.org CC=lfg@chromium.org Committed: https://crrev.com/1e1bbdec0613dedaa9e43c84a9b5346a942f1841 Cr-Commit-Position: refs/heads/master@{#293570}

Patch Set 1 #

Total comments: 4

Patch Set 2 : #

Total comments: 8

Patch Set 3 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+175 lines, -107 lines) Patch
M chrome/browser/extensions/api/execute_code_function.h View 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_api.h View 1 2 2 chunks +3 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/tabs/tabs_api.cc View 1 2 5 chunks +36 lines, -36 lines 0 comments Download
M chrome/browser/extensions/api/tabs/windows_util.cc View 3 chunks +6 lines, -4 lines 0 comments Download
M chrome/browser/extensions/chrome_extension_function.h View 1 3 chunks +14 lines, -0 lines 0 comments Download
M chrome/browser/extensions/chrome_extension_function.cc View 2 chunks +2 lines, -1 line 0 comments Download
A chrome/browser/extensions/chrome_extension_function_details.h View 1 2 1 chunk +73 lines, -0 lines 0 comments Download
A + chrome/browser/extensions/chrome_extension_function_details.cc View 6 chunks +29 lines, -56 lines 0 comments Download
M chrome/browser/extensions/window_controller_list.h View 2 chunks +3 lines, -3 lines 0 comments Download
M chrome/browser/extensions/window_controller_list.cc View 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/chrome_browser_extensions.gypi View 1 2 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 22 (8 generated)
Ken Rockot(use gerrit already)
scheib: Ask and you shall receive! Behold, a code review. This is motivated by some ...
6 years, 3 months ago (2014-09-04 22:25:41 UTC) #1
Ken Rockot(use gerrit already)
Also +CC yoz who may have some feels about this.
6 years, 3 months ago (2014-09-04 22:27:02 UTC) #2
Yoyo Zhou
Cool, I like the looks of this. https://codereview.chromium.org/543873002/diff/1/chrome/browser/extensions/chrome_extension_function_details.h File chrome/browser/extensions/chrome_extension_function_details.h (right): https://codereview.chromium.org/543873002/diff/1/chrome/browser/extensions/chrome_extension_function_details.h#newcode22 chrome/browser/extensions/chrome_extension_function_details.h:22: class ChromeExtensionFunctionDetails ...
6 years, 3 months ago (2014-09-04 23:41:59 UTC) #4
Ken Rockot(use gerrit already)
Heh yeah, oops. I wrote that comment before windows_util reared its head. I'll reword it. ...
6 years, 3 months ago (2014-09-04 23:53:57 UTC) #5
Ken Rockot(use gerrit already)
Also added deprecation notices to chrome_extension_function.h https://codereview.chromium.org/543873002/diff/1/chrome/browser/extensions/chrome_extension_function_details.h File chrome/browser/extensions/chrome_extension_function_details.h (right): https://codereview.chromium.org/543873002/diff/1/chrome/browser/extensions/chrome_extension_function_details.h#newcode22 chrome/browser/extensions/chrome_extension_function_details.h:22: class ChromeExtensionFunctionDetails { ...
6 years, 3 months ago (2014-09-05 00:45:03 UTC) #6
scheib
lgtm with optional nits. https://codereview.chromium.org/543873002/diff/20001/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/543873002/diff/20001/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode1713 chrome/browser/extensions/api/tabs/tabs_api.cc:1713: bool ExecuteCodeInTabFunction::Init() { Thanks for ...
6 years, 3 months ago (2014-09-05 03:17:22 UTC) #7
Ken Rockot(use gerrit already)
https://codereview.chromium.org/543873002/diff/20001/chrome/browser/extensions/api/tabs/tabs_api.cc File chrome/browser/extensions/api/tabs/tabs_api.cc (right): https://codereview.chromium.org/543873002/diff/20001/chrome/browser/extensions/api/tabs/tabs_api.cc#newcode1713 chrome/browser/extensions/api/tabs/tabs_api.cc:1713: bool ExecuteCodeInTabFunction::Init() { On 2014/09/05 03:17:22, scheib wrote: > ...
6 years, 3 months ago (2014-09-05 16:47:40 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/543873002/40001
6 years, 3 months ago (2014-09-05 16:48:23 UTC) #10
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_gn_rel on tryserver.chromium.linux (http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_gn_rel/builds/12721)
6 years, 3 months ago (2014-09-05 17:10:36 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/543873002/40001
6 years, 3 months ago (2014-09-05 17:19:15 UTC) #16
commit-bot: I haz the power
Exceeded time limit waiting for builds to trigger.
6 years, 3 months ago (2014-09-05 19:21:59 UTC) #18
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/rockot@chromium.org/543873002/40001
6 years, 3 months ago (2014-09-05 19:24:31 UTC) #20
commit-bot: I haz the power
Committed patchset #3 (id:40001) as 5bb3897ed4c37bad5181ee90798cbb5dc8c173de
6 years, 3 months ago (2014-09-05 20:03:30 UTC) #21
commit-bot: I haz the power
6 years, 3 months ago (2014-09-10 03:41:14 UTC) #22
Message was sent while issue was closed.
Patchset 3 (id:??) landed as
https://crrev.com/1e1bbdec0613dedaa9e43c84a9b5346a942f1841
Cr-Commit-Position: refs/heads/master@{#293570}

Powered by Google App Engine
This is Rietveld 408576698