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

Issue 2692803004: Refactor callbacks for opening a new window. (Closed)

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

Description

Refactored callbacks for opening a new window. This CL replaces 4 callbacks: webPageOrderedOpen:referrer:windowName:inBackground: webPageOrderedOpen webController:shouldBlockPopupWithURL:sourceURL: webController:didBlockPopup: with a single callback: webController:createWebControllerForURL:openerURL:initiatedByUser: This makes ios code more similar to other platforms where windows are open via single WebContentsDelegate::AddNewContents callback and all popup blocking logic lives in chrome layer. This is a precursory CL to move window opening callback to WebStateDelegate. BUG=622072, 674991 Review-Url: https://codereview.chromium.org/2692803004 Cr-Commit-Position: refs/heads/master@{#451778} Committed: https://chromium.googlesource.com/chromium/src/+/91cfb3ad9a9b9502aed2f9bc76c5d3cc96105f22

Patch Set 1 #

Patch Set 2 : Fixed compilation #

Patch Set 3 : Fixed tests #

Patch Set 4 : Self review #

Patch Set 5 : Cleaned up Tab #

Total comments: 8

Patch Set 6 : Addressed review comment #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+140 lines, -283 lines) Patch
M ios/chrome/browser/tabs/tab.mm View 1 2 3 4 5 4 chunks +60 lines, -47 lines 2 comments Download
M ios/chrome/browser/ui/browser_view_controller.mm View 1 2 chunks +11 lines, -4 lines 0 comments Download
M ios/web/public/web_state/ui/crw_web_delegate.h View 1 2 3 3 chunks +10 lines, -34 lines 0 comments Download
M ios/web/web_state/js/resources/core.js View 1 chunk +0 lines, -6 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller.mm View 1 2 3 4 5 14 chunks +15 lines, -102 lines 0 comments Download
M ios/web/web_state/ui/crw_web_controller_unittest.mm View 1 2 3 6 chunks +44 lines, -90 lines 0 comments Download

Messages

Total messages: 41 (27 generated)
Eugene But (OOO till 7-30)
3 years, 10 months ago (2017-02-14 18:49:29 UTC) #21
marq (ping after 24h)
https://codereview.chromium.org/2692803004/diff/80001/ios/chrome/browser/ui/browser_view_controller.mm File ios/chrome/browser/ui/browser_view_controller.mm (right): https://codereview.chromium.org/2692803004/diff/80001/ios/chrome/browser/ui/browser_view_controller.mm#newcode4310 ios/chrome/browser/ui/browser_view_controller.mm:4310: base::WeakNSObject<Tab> weakTab(tab); Since the block now only cares about ...
3 years, 10 months ago (2017-02-15 10:34:10 UTC) #22
Eugene But (OOO till 7-30)
Thanks. PTAL https://codereview.chromium.org/2692803004/diff/80001/ios/chrome/browser/ui/browser_view_controller.mm File ios/chrome/browser/ui/browser_view_controller.mm (right): https://codereview.chromium.org/2692803004/diff/80001/ios/chrome/browser/ui/browser_view_controller.mm#newcode4310 ios/chrome/browser/ui/browser_view_controller.mm:4310: base::WeakNSObject<Tab> weakTab(tab); On 2017/02/15 10:34:10, marq wrote: ...
3 years, 10 months ago (2017-02-15 16:46:59 UTC) #23
Eugene But (OOO till 7-30)
Rohit?
3 years, 10 months ago (2017-02-16 02:32:04 UTC) #24
marq (ping after 24h)
lgtm https://codereview.chromium.org/2692803004/diff/80001/ios/chrome/browser/ui/browser_view_controller.mm File ios/chrome/browser/ui/browser_view_controller.mm (right): https://codereview.chromium.org/2692803004/diff/80001/ios/chrome/browser/ui/browser_view_controller.mm#newcode4310 ios/chrome/browser/ui/browser_view_controller.mm:4310: base::WeakNSObject<Tab> weakTab(tab); On 2017/02/15 16:46:59, Eugene But wrote: ...
3 years, 10 months ago (2017-02-16 12:49:44 UTC) #25
Eugene But (OOO till 7-30)
Thanks Mark. Rohit, do you have any comments?
3 years, 10 months ago (2017-02-16 16:34:48 UTC) #26
rohitrao (ping after 24h)
lgtm https://codereview.chromium.org/2692803004/diff/100001/ios/chrome/browser/tabs/tab.mm File ios/chrome/browser/tabs/tab.mm (right): https://codereview.chromium.org/2692803004/diff/100001/ios/chrome/browser/tabs/tab.mm#newcode1474 ios/chrome/browser/tabs/tab.mm:1474: - (BOOL)shouldBlockPopupForPageWithURL:(const GURL&)URL { Both of these methods ...
3 years, 10 months ago (2017-02-17 19:53:16 UTC) #27
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2692803004/diff/100001/ios/chrome/browser/tabs/tab.mm File ios/chrome/browser/tabs/tab.mm (right): https://codereview.chromium.org/2692803004/diff/100001/ios/chrome/browser/tabs/tab.mm#newcode1474 ios/chrome/browser/tabs/tab.mm:1474: - (BOOL)shouldBlockPopupForPageWithURL:(const GURL&)URL { On 2017/02/17 19:53:16, rohitrao wrote: ...
3 years, 10 months ago (2017-02-17 20:48:55 UTC) #28
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/2692803004/100001
3 years, 10 months ago (2017-02-17 20:49:54 UTC) #30
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-17 22:52:06 UTC) #32
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/2692803004/100001
3 years, 10 months ago (2017-02-17 23:40:42 UTC) #34
commit-bot: I haz the power
Try jobs failed on following builders: chromium_presubmit on master.tryserver.chromium.linux (JOB_TIMED_OUT, no build URL)
3 years, 10 months ago (2017-02-18 01:44:20 UTC) #36
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/2692803004/100001
3 years, 10 months ago (2017-02-21 16:17:59 UTC) #38
commit-bot: I haz the power
3 years, 10 months ago (2017-02-21 16:41:26 UTC) #41
Message was sent while issue was closed.
Committed patchset #6 (id:100001) as
https://chromium.googlesource.com/chromium/src/+/91cfb3ad9a9b9502aed2f9bc76c5...

Powered by Google App Engine
This is Rietveld 408576698