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

Issue 2791403005: Remove CWV class and move setting User Agent to CWVWebViewConfiguration. (Closed)

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

Description

Remove CWV class and move setting User Agent to CWVWebViewConfiguration. Move Browser State and Web Client ownership to CWVWebViewConfiguration. CWVWebViewConfiguration will now create it’s own browser state and will not share a browser state between copies of the configuration. BUG=690182, 703359, 706287 Review-Url: https://codereview.chromium.org/2791403005 Cr-Commit-Position: refs/heads/master@{#464848} Committed: https://chromium.googlesource.com/chromium/src/+/f21fa55c1594deac368f09c8847b451bea0c1bc2

Patch Set 1 #

Total comments: 5

Patch Set 2 : Rebase. Move setUserAgentProduct to CWVWebView static method. #

Patch Set 3 : Remove cwv.h import from Framework header. #

Total comments: 6

Patch Set 4 : Move Browser State and Web Client ownership to CWVWebViewConfiguration. Each CWVWebViewConfiguratio… #

Total comments: 26

Patch Set 5 : Respond to comments. #

Total comments: 13

Patch Set 6 : Respond to comments. #

Patch Set 7 : Respond to comments. #

Patch Set 8 : Rebase. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+104 lines, -202 lines) Patch
M ios/web_view/BUILD.gn View 1 2 chunks +0 lines, -2 lines 0 comments Download
D ios/web_view/internal/cwv.mm View 1 chunk +0 lines, -67 lines 0 comments Download
M ios/web_view/internal/cwv_web_view.mm View 1 2 3 4 5 6 7 3 chunks +12 lines, -1 line 0 comments Download
M ios/web_view/internal/cwv_web_view_configuration.mm View 1 2 3 4 5 6 2 chunks +57 lines, -27 lines 0 comments Download
M ios/web_view/internal/web_view_browser_state.mm View 1 2 3 4 2 chunks +7 lines, -0 lines 0 comments Download
M ios/web_view/internal/web_view_web_client.h View 1 2 3 4 2 chunks +1 line, -10 lines 0 comments Download
M ios/web_view/internal/web_view_web_client.mm View 1 2 3 4 3 chunks +4 lines, -11 lines 0 comments Download
M ios/web_view/internal/web_view_web_main_delegate.h View 1 2 3 1 chunk +1 line, -8 lines 0 comments Download
M ios/web_view/internal/web_view_web_main_delegate.mm View 1 2 3 2 chunks +1 line, -7 lines 0 comments Download
M ios/web_view/internal/web_view_web_main_parts.h View 1 2 3 2 chunks +0 lines, -16 lines 0 comments Download
M ios/web_view/internal/web_view_web_main_parts.mm View 1 2 3 2 chunks +0 lines, -14 lines 0 comments Download
M ios/web_view/public/ChromeWebView.h View 1 2 1 chunk +0 lines, -1 line 0 comments Download
D ios/web_view/public/cwv.h View 1 chunk +0 lines, -33 lines 0 comments Download
M ios/web_view/public/cwv_web_view.h View 1 2 3 4 5 6 1 chunk +15 lines, -0 lines 0 comments Download
M ios/web_view/shell/shell_app_delegate.m View 1 2 3 4 5 6 7 2 chunks +0 lines, -4 lines 0 comments Download
M ios/web_view/shell/shell_view_controller.m View 1 2 3 4 5 6 7 1 chunk +6 lines, -1 line 0 comments Download

Messages

Total messages: 22 (7 generated)
michaeldo
3 years, 8 months ago (2017-04-04 21:40:34 UTC) #2
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2791403005/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/2791403005/diff/1/ios/web_view/internal/cwv_web_view_configuration.mm#newcode63 ios/web_view/internal/cwv_web_view_configuration.mm:63: + (void)setupWebClientIfNeeded { Does this method need a different ...
3 years, 8 months ago (2017-04-04 21:50:26 UTC) #3
michaeldo
PTAL. https://codereview.chromium.org/2791403005/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/2791403005/diff/1/ios/web_view/internal/cwv_web_view_configuration.mm#newcode63 ios/web_view/internal/cwv_web_view_configuration.mm:63: + (void)setupWebClientIfNeeded { On 2017/04/04 21:50:26, Eugene But ...
3 years, 8 months ago (2017-04-07 22:31:35 UTC) #4
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2791403005/diff/40001/ios/web_view/internal/cwv_web_view_configuration.mm File ios/web_view/internal/cwv_web_view_configuration.mm (right): https://codereview.chromium.org/2791403005/diff/40001/ios/web_view/internal/cwv_web_view_configuration.mm#newcode52 ios/web_view/internal/cwv_web_view_configuration.mm:52: + (ios_web_view::WebViewWebClient*)webClient { This whole method looks awkward, and ...
3 years, 8 months ago (2017-04-08 00:34:36 UTC) #5
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2791403005/diff/40001/ios/web_view/internal/cwv_web_view_configuration.mm File ios/web_view/internal/cwv_web_view_configuration.mm (right): https://codereview.chromium.org/2791403005/diff/40001/ios/web_view/internal/cwv_web_view_configuration.mm#newcode63 ios/web_view/internal/cwv_web_view_configuration.mm:63: return static_cast<ios_web_view::WebViewWebClient*>(web::GetWebClient()); After giving some thoughts, I this we ...
3 years, 8 months ago (2017-04-08 00:49:57 UTC) #6
michaeldo
PTAL at latest patch. Sorry the size of this CL is growing, but with last ...
3 years, 8 months ago (2017-04-11 17:07:48 UTC) #9
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2791403005/diff/60001/ios/web_view/internal/cwv_web_view.mm File ios/web_view/internal/cwv_web_view.mm (right): https://codereview.chromium.org/2791403005/diff/60001/ios/web_view/internal/cwv_web_view.mm#newcode49 ios/web_view/internal/cwv_web_view.mm:49: // The configuration of the web view. s/The configuration ...
3 years, 8 months ago (2017-04-11 17:52:42 UTC) #10
michaeldo
https://codereview.chromium.org/2791403005/diff/60001/ios/web_view/internal/cwv_web_view.mm File ios/web_view/internal/cwv_web_view.mm (right): https://codereview.chromium.org/2791403005/diff/60001/ios/web_view/internal/cwv_web_view.mm#newcode49 ios/web_view/internal/cwv_web_view.mm:49: // The configuration of the web view. On 2017/04/11 ...
3 years, 8 months ago (2017-04-11 21:57:03 UTC) #11
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2791403005/diff/60001/ios/web_view/internal/cwv_web_view_configuration.mm File ios/web_view/internal/cwv_web_view_configuration.mm (right): https://codereview.chromium.org/2791403005/diff/60001/ios/web_view/internal/cwv_web_view_configuration.mm#newcode32 ios/web_view/internal/cwv_web_view_configuration.mm:32: static std::unique_ptr<ios_web_view::WebViewWebClient> webClient; On 2017/04/11 21:57:02, michaeldo wrote: > ...
3 years, 8 months ago (2017-04-12 00:46:18 UTC) #12
michaeldo
https://codereview.chromium.org/2791403005/diff/80001/ios/web_view/internal/cwv_web_view.mm File ios/web_view/internal/cwv_web_view.mm (right): https://codereview.chromium.org/2791403005/diff/80001/ios/web_view/internal/cwv_web_view.mm#newcode71 ios/web_view/internal/cwv_web_view.mm:71: gUserAgentProduct = product; On 2017/04/12 00:46:17, Eugene But wrote: ...
3 years, 8 months ago (2017-04-12 17:16:48 UTC) #13
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2791403005/diff/60001/ios/web_view/internal/cwv_web_view_configuration.mm File ios/web_view/internal/cwv_web_view_configuration.mm (right): https://codereview.chromium.org/2791403005/diff/60001/ios/web_view/internal/cwv_web_view_configuration.mm#newcode32 ios/web_view/internal/cwv_web_view_configuration.mm:32: static std::unique_ptr<ios_web_view::WebViewWebClient> webClient; On 2017/04/12 00:46:17, Eugene But wrote: ...
3 years, 8 months ago (2017-04-12 17:48:28 UTC) #14
michaeldo
https://codereview.chromium.org/2791403005/diff/60001/ios/web_view/internal/cwv_web_view_configuration.mm File ios/web_view/internal/cwv_web_view_configuration.mm (right): https://codereview.chromium.org/2791403005/diff/60001/ios/web_view/internal/cwv_web_view_configuration.mm#newcode32 ios/web_view/internal/cwv_web_view_configuration.mm:32: static std::unique_ptr<ios_web_view::WebViewWebClient> webClient; On 2017/04/12 17:48:27, Eugene But wrote: ...
3 years, 8 months ago (2017-04-12 18:22:55 UTC) #15
Eugene But (OOO till 7-30)
lgtm!
3 years, 8 months ago (2017-04-12 18:26:17 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/2791403005/140001
3 years, 8 months ago (2017-04-14 23:23:21 UTC) #19
commit-bot: I haz the power
3 years, 8 months ago (2017-04-15 01:46:05 UTC) #22
Message was sent while issue was closed.
Committed patchset #8 (id:140001) as
https://chromium.googlesource.com/chromium/src/+/f21fa55c1594deac368f09c8847b...

Powered by Google App Engine
This is Rietveld 408576698