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

Issue 2747683002: Merge CWVWebsiteDataStore into CWVWebViewConfiguration. (Closed)

Created:
3 years, 9 months ago by Hiroshi Ichikawa
Modified:
3 years, 9 months ago
CC:
chromium-reviews, Eugene But (OOO till 7-30), ios-reviews+web_chromium.org, ios-reviews_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Merge CWVWebsiteDataStore into CWVWebViewConfiguration. BUG=700791 Review-Url: https://codereview.chromium.org/2747683002 Cr-Commit-Position: refs/heads/master@{#457388} Committed: https://chromium.googlesource.com/chromium/src/+/7abaa4aa3e33391a1cf81ace5dc94bbb42ae507d

Patch Set 1 #

Total comments: 12

Patch Set 2 : Apply review comments, rebase and merge. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -125 lines) Patch
M ios/web_view/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M ios/web_view/internal/BUILD.gn View 1 1 chunk +1 line, -2 lines 0 comments Download
M ios/web_view/internal/cwv.mm View 2 chunks +1 line, -4 lines 0 comments Download
M ios/web_view/internal/cwv_web_view.mm View 1 3 chunks +2 lines, -3 lines 0 comments Download
M ios/web_view/internal/cwv_web_view_configuration.mm View 1 chunk +42 lines, -11 lines 0 comments Download
A ios/web_view/internal/cwv_web_view_configuration_internal.h View 1 chunk +22 lines, -0 lines 0 comments Download
D ios/web_view/internal/cwv_website_data_store.mm View 1 chunk +0 lines, -54 lines 0 comments Download
D ios/web_view/internal/cwv_website_data_store_internal.h View 1 chunk +0 lines, -22 lines 0 comments Download
M ios/web_view/public/BUILD.gn View 1 1 chunk +0 lines, -1 line 0 comments Download
M ios/web_view/public/cwv_web_view_configuration.h View 1 1 chunk +11 lines, -3 lines 0 comments Download
D ios/web_view/public/cwv_website_data_store.h View 1 chunk +0 lines, -24 lines 0 comments Download

Messages

Total messages: 32 (15 generated)
Hiroshi Ichikawa
3 years, 9 months ago (2017-03-13 07:07:51 UTC) #2
michaeldo
lgtm Thanks! https://codereview.chromium.org/2747683002/diff/1/ios/web_view/internal/cwv_web_view_configuration.mm File ios/web_view/internal/cwv_web_view_configuration.mm (right): https://codereview.chromium.org/2747683002/diff/1/ios/web_view/internal/cwv_web_view_configuration.mm#newcode32 ios/web_view/internal/cwv_web_view_configuration.mm:32: configuration = [[self alloc] initWithBrowserState:client->browser_state()]; Please use ...
3 years, 9 months ago (2017-03-13 14:54:02 UTC) #3
Eugene But (OOO till 7-30)
lgtm https://codereview.chromium.org/2747683002/diff/1/ios/web_view/internal/cwv_web_view_configuration.mm File ios/web_view/internal/cwv_web_view_configuration.mm (right): https://codereview.chromium.org/2747683002/diff/1/ios/web_view/internal/cwv_web_view_configuration.mm#newcode27 ios/web_view/internal/cwv_web_view_configuration.mm:27: static dispatch_once_t once; In WKWebView these these methods ...
3 years, 9 months ago (2017-03-13 21:17:02 UTC) #4
michaeldo
https://codereview.chromium.org/2747683002/diff/1/ios/web_view/internal/cwv_web_view_configuration.mm File ios/web_view/internal/cwv_web_view_configuration.mm (right): https://codereview.chromium.org/2747683002/diff/1/ios/web_view/internal/cwv_web_view_configuration.mm#newcode32 ios/web_view/internal/cwv_web_view_configuration.mm:32: configuration = [[self alloc] initWithBrowserState:client->browser_state()]; On 2017/03/13 21:17:01, Eugene ...
3 years, 9 months ago (2017-03-13 21:27:58 UTC) #5
Hiroshi Ichikawa
https://codereview.chromium.org/2747683002/diff/1/ios/web_view/internal/cwv_web_view_configuration.mm File ios/web_view/internal/cwv_web_view_configuration.mm (right): https://codereview.chromium.org/2747683002/diff/1/ios/web_view/internal/cwv_web_view_configuration.mm#newcode27 ios/web_view/internal/cwv_web_view_configuration.mm:27: static dispatch_once_t once; On 2017/03/13 21:17:01, Eugene But wrote: ...
3 years, 9 months ago (2017-03-16 05:38:57 UTC) #6
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/2747683002/1
3 years, 9 months ago (2017-03-16 05:39:49 UTC) #8
commit-bot: I haz the power
Try jobs failed on following builders: ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-simulator-xcode-clang/builds/60431)
3 years, 9 months ago (2017-03-16 05:45:46 UTC) #11
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/2747683002/20001
3 years, 9 months ago (2017-03-16 05:57:30 UTC) #14
commit-bot: I haz the power
Try jobs failed on following builders: cast_shell_linux on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/cast_shell_linux/builds/327997)
3 years, 9 months ago (2017-03-16 06:29:38 UTC) #16
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/2747683002/20001
3 years, 9 months ago (2017-03-16 06:43:37 UTC) #18
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_chromeos_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_chromeos_rel_ng/builds/384826)
3 years, 9 months ago (2017-03-16 07:19:18 UTC) #20
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/2747683002/20001
3 years, 9 months ago (2017-03-16 07:35:45 UTC) #22
commit-bot: I haz the power
Try jobs failed on following builders: linux_chromium_asan_rel_ng on master.tryserver.chromium.linux (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.linux/builders/linux_chromium_asan_rel_ng/builds/329648)
3 years, 9 months ago (2017-03-16 08:58:54 UTC) #24
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/2747683002/20001
3 years, 9 months ago (2017-03-16 09:08:24 UTC) #26
commit-bot: I haz the power
Committed patchset #2 (id:20001) as https://chromium.googlesource.com/chromium/src/+/7abaa4aa3e33391a1cf81ace5dc94bbb42ae507d
3 years, 9 months ago (2017-03-16 10:04:09 UTC) #29
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2747683002/diff/1/ios/web_view/internal/cwv_web_view_configuration.mm File ios/web_view/internal/cwv_web_view_configuration.mm (right): https://codereview.chromium.org/2747683002/diff/1/ios/web_view/internal/cwv_web_view_configuration.mm#newcode27 ios/web_view/internal/cwv_web_view_configuration.mm:27: static dispatch_once_t once; On 2017/03/16 05:38:57, Hiroshi Ichikawa wrote: ...
3 years, 9 months ago (2017-03-16 16:45:25 UTC) #30
Hiroshi Ichikawa
3 years, 9 months ago (2017-03-17 04:37:11 UTC) #31
Message was sent while issue was closed.
On 2017/03/16 16:45:25, Eugene But wrote:
>
https://codereview.chromium.org/2747683002/diff/1/ios/web_view/internal/cwv_w...
> File ios/web_view/internal/cwv_web_view_configuration.mm (right):
> 
>
https://codereview.chromium.org/2747683002/diff/1/ios/web_view/internal/cwv_w...
> ios/web_view/internal/cwv_web_view_configuration.mm:27: static dispatch_once_t
> once;
> On 2017/03/16 05:38:57, Hiroshi Ichikawa wrote:
> > On 2017/03/13 21:17:01, Eugene But wrote:
> > > In WKWebView these these methods return new object every time they are
> called.
> > > Is there a reason why you want them to be singletons? The downside of a
> > > singleton is that you can't have 2 incognito web view. Upside is that
> cookies
> > > will always be shared for all non-incognito web view. Also from the
current
> > > interface comments I would not expect to have singletons.
> > 
> > With the current implementation where WebViewMainParts owns BrowserState
> > instances, don't they share the cookies/storage/etc. even if this method
> returns
> > a new object? Are you suggesting to create a new BrowserState here (after we
> > resolve crbug.com/690182)?
> Yes, the suggestion is to create a new BrowserState for each
> WebViewConfiguration. If you want to have these API return singletons, then
> could you please update the comments to explicitly state that the result is a
> singleton. Otherwise could you please add a TODO to return a new object every
> time this method is called.

I see, makes sense. Will create an issue for it since this CL has already been
submitted.

Powered by Google App Engine
This is Rietveld 408576698