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

Issue 2755823002: Moved |openedByDOM| to WebState's CreateParams and public interface. (Closed)

Created:
3 years, 9 months ago by kkhorimoto
Modified:
3 years, 9 months ago
CC:
chromium-reviews, ios-reviews+chrome_chromium.org, ios-reviews_chromium.org, Eugene But (OOO till 7-30), pkl (ping after 24h if needed), ios-reviews+web_chromium.org, noyau+watch_chromium.org, marq+watch_chromium.org, sdefresne+watch_chromium.org, sdefresne, michaeldo
Target Ref:
refs/heads/master
Project:
chromium
Visibility:
Public.

Description

Moved |openedByDOM| to WebState's CreateParams and public interface. WebContents::CreateParams also includes opened by DOM information. Our interface diverges slightly because web// requires that information to be exposed, while content// handles that logic internally via render view hosts. BUG=454984, 620045, 620045 Review-Url: https://codereview.chromium.org/2755823002 Cr-Commit-Position: refs/heads/master@{#458274} Committed: https://chromium.googlesource.com/chromium/src/+/a8ee9decef09022c19cab0238a80487e96f408d4

Patch Set 1 #

Patch Set 2 : self review #

Patch Set 3 : BVC session controller cleanup #

Total comments: 12

Patch Set 4 : Eugene's comments #

Patch Set 5 : Fix session storage test #

Patch Set 6 : test fix & removed include #

Total comments: 14

Patch Set 7 : addressed comments, added test #

Patch Set 8 : fix DEPS #

Patch Set 9 : fix DEPS (forealz) #

Patch Set 10 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+163 lines, -155 lines) Patch
M ios/chrome/browser/sessions/DEPS View 1 2 3 1 chunk +0 lines, -12 lines 0 comments Download
M ios/chrome/browser/sessions/session_window.h View 1 1 chunk +0 lines, -2 lines 0 comments Download
M ios/chrome/browser/sessions/session_window.mm View 1 2 3 4 5 6 7 8 9 1 chunk +0 lines, -4 lines 0 comments Download
M ios/chrome/browser/sessions/session_window_unittest.mm View 1 2 3 4 5 6 7 5 chunks +36 lines, -30 lines 0 comments Download
M ios/chrome/browser/sessions/tab_restore_service_delegate_impl_ios.mm View 1 1 chunk +2 lines, -1 line 0 comments Download
M ios/chrome/browser/tabs/tab.mm View 1 2 3 4 5 6 2 chunks +4 lines, -5 lines 0 comments Download
M ios/chrome/browser/tabs/tab_unittest.mm View 1 2 chunks +6 lines, -4 lines 0 comments Download
M ios/chrome/browser/ui/browser_view_controller.mm View 1 2 3 4 5 6 2 chunks +1 line, -3 lines 0 comments Download
M ios/chrome/browser/ui/browser_view_controller_unittest.mm View 1 2 3 2 chunks +3 lines, -6 lines 0 comments Download
M ios/web/navigation/crw_session_controller.h View 1 2 3 4 5 6 1 chunk +0 lines, -3 lines 0 comments Download
M ios/web/navigation/crw_session_controller.mm View 1 2 3 4 5 6 2 chunks +1 line, -5 lines 0 comments Download
M ios/web/navigation/crw_session_controller+private_constructors.h View 1 chunk +1 line, -2 lines 0 comments Download
M ios/web/navigation/crw_session_controller_unittest.mm View 1 7 chunks +7 lines, -14 lines 0 comments Download
M ios/web/navigation/crw_session_storage_unittest.mm View 1 2 3 4 2 chunks +2 lines, -2 lines 0 comments Download
M ios/web/navigation/navigation_manager_impl.h View 1 2 3 4 5 6 1 chunk +2 lines, -3 lines 0 comments Download
M ios/web/navigation/navigation_manager_impl.mm View 1 2 3 4 5 6 1 chunk +3 lines, -4 lines 0 comments Download
M ios/web/navigation/navigation_manager_impl_unittest.mm View 1 2 3 1 chunk +2 lines, -3 lines 0 comments Download
M ios/web/navigation/session_storage_builder.mm View 1 2 3 5 chunks +9 lines, -11 lines 0 comments Download
M ios/web/public/crw_session_storage.h View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ios/web/public/crw_session_storage.mm View 1 2 3 4 chunks +4 lines, -4 lines 0 comments Download
M ios/web/public/test/fakes/test_web_state.h View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M ios/web/public/test/fakes/test_web_state.mm View 1 2 3 1 chunk +4 lines, -0 lines 0 comments Download
M ios/web/public/test/fakes/test_web_state_delegate.mm View 1 2 3 2 chunks +3 lines, -4 lines 0 comments Download
M ios/web/public/test/web_test_with_web_state.mm View 1 1 chunk +4 lines, -5 lines 0 comments Download
M ios/web/public/web_state/web_state.h View 1 2 3 4 5 6 2 chunks +10 lines, -0 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 3 4 5 6 6 chunks +10 lines, -6 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller_unittest.mm View 1 2 3 1 chunk +0 lines, -1 line 0 comments Download
M ios/web/web_state/web_state.mm View 1 2 3 1 chunk +1 line, -1 line 0 comments Download
M ios/web/web_state/web_state_impl.h View 1 2 3 4 5 6 3 chunks +7 lines, -2 lines 0 comments Download
M ios/web/web_state/web_state_impl.mm View 1 2 3 6 chunks +12 lines, -9 lines 0 comments Download
M ios/web/web_state/web_state_impl_unittest.mm View 1 2 3 4 5 6 2 chunks +19 lines, -1 line 0 comments Download
M ios/web/webui/crw_web_ui_manager_unittest.mm View 1 2 chunks +4 lines, -3 lines 0 comments Download
M ios/web/webui/web_ui_mojo_inttest.mm View 1 1 chunk +4 lines, -4 lines 0 comments Download

Messages

Total messages: 46 (31 generated)
kkhorimoto
3 years, 9 months ago (2017-03-16 01:28:30 UTC) #2
Eugene But (OOO till 7-30)
I looked up at content API more carefully and it looks like they have API ...
3 years, 9 months ago (2017-03-16 15:31:20 UTC) #7
kkhorimoto
test fix & removed include
3 years, 9 months ago (2017-03-17 23:04:26 UTC) #17
kkhorimoto
https://codereview.chromium.org/2755823002/diff/40001/ios/chrome/browser/sessions/session_window.h File ios/chrome/browser/sessions/session_window.h (left): https://codereview.chromium.org/2755823002/diff/40001/ios/chrome/browser/sessions/session_window.h#oldcode12 ios/chrome/browser/sessions/session_window.h:12: #import "ios/web/web_state/web_state_impl.h" On 2017/03/16 15:31:19, Eugene But wrote: > ...
3 years, 9 months ago (2017-03-17 23:04:49 UTC) #19
Eugene But (OOO till 7-30)
lgtm! https://codereview.chromium.org/2755823002/diff/100001/ios/chrome/browser/sessions/session_window_unittest.mm File ios/chrome/browser/sessions/session_window_unittest.mm (right): https://codereview.chromium.org/2755823002/diff/100001/ios/chrome/browser/sessions/session_window_unittest.mm#newcode61 ios/chrome/browser/sessions/session_window_unittest.mm:61: std::unique_ptr<web::WebState> webState1 = nit: s/webState1/web_state_1 since you touching ...
3 years, 9 months ago (2017-03-18 00:33:30 UTC) #23
Eugene But (OOO till 7-30)
Almost forgot. Could you please add a test that calls WebState::Create and checks HasOpener().
3 years, 9 months ago (2017-03-18 00:34:34 UTC) #24
kkhorimoto
https://codereview.chromium.org/2755823002/diff/100001/ios/chrome/browser/sessions/session_window_unittest.mm File ios/chrome/browser/sessions/session_window_unittest.mm (right): https://codereview.chromium.org/2755823002/diff/100001/ios/chrome/browser/sessions/session_window_unittest.mm#newcode61 ios/chrome/browser/sessions/session_window_unittest.mm:61: std::unique_ptr<web::WebState> webState1 = On 2017/03/18 00:33:29, Eugene But wrote: ...
3 years, 9 months ago (2017-03-20 22:39:20 UTC) #25
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/2755823002/120001
3 years, 9 months ago (2017-03-20 22:40:30 UTC) #28
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/412580)
3 years, 9 months ago (2017-03-20 23:05:01 UTC) #30
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/2755823002/140001
3 years, 9 months ago (2017-03-21 00:38:48 UTC) #33
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/412711)
3 years, 9 months ago (2017-03-21 01:01:23 UTC) #35
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/2755823002/160001
3 years, 9 months ago (2017-03-21 01:16:03 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: ios-device on master.tryserver.chromium.mac (JOB_FAILED, http://build.chromium.org/p/tryserver.chromium.mac/builders/ios-device/builds/173892) ios-simulator-xcode-clang on master.tryserver.chromium.mac (JOB_FAILED, ...
3 years, 9 months ago (2017-03-21 01:25:29 UTC) #40
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/2755823002/180001
3 years, 9 months ago (2017-03-21 01:37:59 UTC) #43
commit-bot: I haz the power
3 years, 9 months ago (2017-03-21 01:54:45 UTC) #46
Message was sent while issue was closed.
Committed patchset #10 (id:180001) as
https://chromium.googlesource.com/chromium/src/+/a8ee9decef09022c19cab0238a80...

Powered by Google App Engine
This is Rietveld 408576698