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

Issue 2887523003: Introduced WebFactory and WebFactoryImpl for constructing web/ classes (Closed)

Created:
3 years, 7 months ago by sashab
Modified:
3 years, 6 months ago
Reviewers:
haraken, slangley, dcheng
CC:
blink-reviews, chromium-reviews, kinuko+watch
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Introduced WebFactory and WebFactoryImpl for constructing web/ classes Introduced WebFactory and WebFactoryImpl for constructing web/ classes outside of core/. This is a temporary class that will be removed once web/ is removed. BUG=712963 Review-Url: https://codereview.chromium.org/2887523003 Cr-Commit-Position: refs/heads/master@{#475451} Committed: https://chromium.googlesource.com/chromium/src/+/8d376e7d11c6d2efe83f46fa043f036b0f6246fe

Patch Set 1 #

Total comments: 9

Patch Set 2 : Review feedback #

Patch Set 3 : Removed file from wrong branch #

Total comments: 8

Patch Set 4 : Review feedback as discussed #

Total comments: 2

Patch Set 5 : Added TODOs for review feedback #

Unified diffs Side-by-side diffs Delta from patch set Stats (+118 lines, -5 lines) Patch
M third_party/WebKit/Source/core/exported/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/exported/WebFactory.h View 1 2 3 4 1 chunk +37 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/core/exported/WebFactory.cpp View 1 2 3 1 chunk +22 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/BUILD.gn View 1 2 3 4 1 chunk +2 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/WebFactoryImpl.h View 1 2 3 1 chunk +24 lines, -0 lines 0 comments Download
A third_party/WebKit/Source/web/WebFactoryImpl.cpp View 1 2 3 1 chunk +20 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebKit.cpp View 1 2 3 2 chunks +3 lines, -0 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.h View 1 2 3 4 4 chunks +5 lines, -3 lines 0 comments Download
M third_party/WebKit/Source/web/WebViewImpl.cpp View 1 2 3 4 3 chunks +3 lines, -2 lines 0 comments Download

Dependent Patchsets:

Messages

Total messages: 63 (24 generated)
sashab
thoughts welcome :)
3 years, 7 months ago (2017-05-16 05:04:45 UTC) #3
sashab
Ping haraken/dcheng thoughts.
3 years, 7 months ago (2017-05-17 04:34:41 UTC) #7
dcheng
https://codereview.chromium.org/2887523003/diff/1/third_party/WebKit/Source/core/WebFactory.h File third_party/WebKit/Source/core/WebFactory.h (right): https://codereview.chromium.org/2887523003/diff/1/third_party/WebKit/Source/core/WebFactory.h#newcode6 third_party/WebKit/Source/core/WebFactory.h:6: #define WebFactory_h Maybe this file should be in page? ...
3 years, 7 months ago (2017-05-17 04:35:58 UTC) #8
slangley
https://codereview.chromium.org/2887523003/diff/1/third_party/WebKit/Source/core/WebFactory.h File third_party/WebKit/Source/core/WebFactory.h (right): https://codereview.chromium.org/2887523003/diff/1/third_party/WebKit/Source/core/WebFactory.h#newcode6 third_party/WebKit/Source/core/WebFactory.h:6: #define WebFactory_h On 2017/05/17 at 04:35:58, dcheng (in AEST) ...
3 years, 7 months ago (2017-05-17 04:39:44 UTC) #9
sashab
Ty all; ptal at new code with comments done. https://codereview.chromium.org/2887523003/diff/1/third_party/WebKit/Source/core/WebFactory.h File third_party/WebKit/Source/core/WebFactory.h (right): https://codereview.chromium.org/2887523003/diff/1/third_party/WebKit/Source/core/WebFactory.h#newcode6 third_party/WebKit/Source/core/WebFactory.h:6: ...
3 years, 7 months ago (2017-05-22 03:45:06 UTC) #12
dcheng
LGTM from my perspective (but I'd like to hear haraken's opinion) https://codereview.chromium.org/2887523003/diff/40001/third_party/WebKit/Source/core/WebFactory.cpp File third_party/WebKit/Source/core/WebFactory.cpp (right): ...
3 years, 7 months ago (2017-05-22 09:16:49 UTC) #17
slangley
lgtm
3 years, 7 months ago (2017-05-22 10:42:38 UTC) #18
haraken
Sorry for the review delay! This slipped off my head... How many methods are going ...
3 years, 7 months ago (2017-05-22 13:40:40 UTC) #19
slangley
On 2017/05/22 at 13:40:40, haraken wrote: > Sorry for the review delay! This slipped off ...
3 years, 7 months ago (2017-05-23 00:00:11 UTC) #20
dcheng
On 2017/05/23 00:00:11, slangley wrote: > On 2017/05/22 at 13:40:40, haraken wrote: > > Sorry ...
3 years, 7 months ago (2017-05-23 00:18:47 UTC) #21
slangley
On 2017/05/23 at 00:18:47, dcheng wrote: > On 2017/05/23 00:00:11, slangley wrote: > > On ...
3 years, 7 months ago (2017-05-23 01:49:43 UTC) #22
dcheng
On 2017/05/23 01:49:43, slangley wrote: > On 2017/05/23 at 00:18:47, dcheng wrote: > > On ...
3 years, 7 months ago (2017-05-23 01:52:36 UTC) #23
haraken
On 2017/05/23 01:49:43, slangley wrote: > On 2017/05/23 at 00:18:47, dcheng wrote: > > On ...
3 years, 7 months ago (2017-05-23 01:56:24 UTC) #24
haraken
https://codereview.chromium.org/2887523003/diff/40001/third_party/WebKit/Source/web/WebViewImpl.cpp File third_party/WebKit/Source/web/WebViewImpl.cpp (right): https://codereview.chromium.org/2887523003/diff/40001/third_party/WebKit/Source/web/WebViewImpl.cpp#newcode342 third_party/WebKit/Source/web/WebViewImpl.cpp:342: chrome_client_(WebFactory::GetInstance().CreateChromeClient(this)), Just to clarify: How will this code be ...
3 years, 7 months ago (2017-05-23 01:56:36 UTC) #25
haraken
On 2017/05/23 01:52:36, dcheng wrote: > On 2017/05/23 01:49:43, slangley wrote: > > On 2017/05/23 ...
3 years, 7 months ago (2017-05-23 01:58:15 UTC) #26
slangley
Ahhh - so your suggestion is to add per class factory methods instead? Ideally it ...
3 years, 7 months ago (2017-05-23 01:59:57 UTC) #27
slangley
Ahhh - so your suggestion is to add per class factory methods instead? Ideally it ...
3 years, 7 months ago (2017-05-23 01:59:58 UTC) #28
dcheng
On 2017/05/23 01:59:58, slangley wrote: > Ahhh - so your suggestion is to add per ...
3 years, 7 months ago (2017-05-23 02:02:23 UTC) #29
slangley
In this case, mocking out ChromeClient would be the most obvious example. On Tue, May ...
3 years, 7 months ago (2017-05-23 02:15:46 UTC) #30
slangley
In this case, mocking out ChromeClient would be the most obvious example. On Tue, May ...
3 years, 7 months ago (2017-05-23 02:15:47 UTC) #31
dcheng
Ah, that's a good point. However, I think things like ChromeClient are probably things we ...
3 years, 7 months ago (2017-05-23 03:01:53 UTC) #32
slangley
Well we kinda mock it today with EmptyChromeClient in places, although it not solely used ...
3 years, 7 months ago (2017-05-23 03:26:34 UTC) #33
slangley
Well we kinda mock it today with EmptyChromeClient in places, although it not solely used ...
3 years, 7 months ago (2017-05-23 03:26:35 UTC) #34
dcheng
On 2017/05/23 03:26:35, slangley wrote: > Well we kinda mock it today with EmptyChromeClient in ...
3 years, 7 months ago (2017-05-23 03:45:12 UTC) #35
slangley
Yes to be clear the reason for having this right now is to tease apart ...
3 years, 7 months ago (2017-05-23 03:56:53 UTC) #36
slangley
Yes to be clear the reason for having this right now is to tease apart ...
3 years, 7 months ago (2017-05-23 03:56:54 UTC) #37
slangley
Sorry, after all of that discussion I finally remembered why static ctor() is not going ...
3 years, 7 months ago (2017-05-23 06:39:21 UTC) #38
slangley
Sorry, after all of that discussion I finally remembered why static ctor() is not going ...
3 years, 7 months ago (2017-05-23 06:39:22 UTC) #39
sashab
Thanks slangley@ for the great explanation. Yes, it is not possible to put this code ...
3 years, 6 months ago (2017-05-29 04:34:01 UTC) #42
slangley
I believe Daniels main concern was ppl overloading the use of this factory. We should ...
3 years, 6 months ago (2017-05-29 04:42:57 UTC) #43
dcheng
LGTM with comments addressed (I'd slightly prefer SetInstance to be private but I don't feel ...
3 years, 6 months ago (2017-05-29 08:02:30 UTC) #46
haraken
LGTM
3 years, 6 months ago (2017-05-29 08:39:37 UTC) #47
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2887523003/80001
3 years, 6 months ago (2017-05-30 02:54:41 UTC) #51
sashab
Added TODO to make SetInstance private, since there are multiple ways to do this lets ...
3 years, 6 months ago (2017-05-30 02:56:18 UTC) #52
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/466989)
3 years, 6 months ago (2017-05-30 04:09:35 UTC) #54
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2887523003/80001
3 years, 6 months ago (2017-05-30 04:13:56 UTC) #56
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_rel_ng/builds/467072)
3 years, 6 months ago (2017-05-30 05:17:51 UTC) #58
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.chromium.org/2887523003/80001
3 years, 6 months ago (2017-05-30 06:21:20 UTC) #60
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 07:16:33 UTC) #63
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/8d376e7d11c6d2efe83f46fa043f...

Powered by Google App Engine
This is Rietveld 408576698