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

Issue 2640463002: [ios] Convert BlockedPopupHandler into a tab helper class. (Closed)

Created:
3 years, 11 months ago by rohitrao (ping after 24h)
Modified:
3 years, 11 months ago
CC:
chromium-reviews, marq+watch_chromium.org, 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

[ios] Convert BlockedPopupHandler into a tab helper class. BUG=681867 Review-Url: https://codereview.chromium.org/2640463002 Cr-Commit-Position: refs/heads/master@{#445726} Committed: https://chromium.googlesource.com/chromium/src/+/d6eb8548aca00c0743e5d315e41f481436360dbd

Patch Set 1 #

Total comments: 7

Patch Set 2 : Rename to TabHelper. #

Patch Set 3 : Fix helper ordering. #

Patch Set 4 : Review. #

Total comments: 16

Patch Set 5 : Review #

Patch Set 6 : Add test. #

Total comments: 2

Patch Set 7 : Rebased. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+147 lines, -289 lines) Patch
M ios/chrome/browser/tabs/tab.mm View 1 2 3 4 5 6 7 chunks +6 lines, -18 lines 0 comments Download
M ios/chrome/browser/web/BUILD.gn View 1 2 3 4 5 4 chunks +6 lines, -2 lines 0 comments Download
M ios/chrome/browser/web/DEPS View 1 2 3 4 5 1 chunk +5 lines, -1 line 0 comments Download
M ios/chrome/browser/web/blocked_popup_handler.h View 1 1 chunk +0 lines, -68 lines 0 comments Download
M ios/chrome/browser/web/blocked_popup_handler.mm View 1 1 chunk +0 lines, -139 lines 0 comments Download
A + ios/chrome/browser/web/blocked_popup_tab_helper.h View 1 2 3 4 5 3 chunks +24 lines, -31 lines 0 comments Download
A + ios/chrome/browser/web/blocked_popup_tab_helper.mm View 1 2 3 4 5 chunks +39 lines, -30 lines 0 comments Download
A ios/chrome/browser/web/blocked_popup_tab_helper_unittest.mm View 1 2 3 4 5 1 chunk +67 lines, -0 lines 0 comments Download

Messages

Total messages: 29 (15 generated)
rohitrao (ping after 24h)
Checking to see if everyone is ok with the general approach here. I still need ...
3 years, 11 months ago (2017-01-17 17:09:26 UTC) #2
sdefresne
On 2017/01/17 17:09:26, rohitrao wrote: > Checking to see if everyone is ok with the ...
3 years, 11 months ago (2017-01-17 17:36:56 UTC) #3
Eugene But (OOO till 7-30)
https://codereview.chromium.org/2640463002/diff/1/ios/chrome/browser/web/blocked_popup_handler.h File ios/chrome/browser/web/blocked_popup_handler.h (right): https://codereview.chromium.org/2640463002/diff/1/ios/chrome/browser/web/blocked_popup_handler.h#newcode14 ios/chrome/browser/web/blocked_popup_handler.h:14: #include "ios/web/public/web_state/web_state_user_data.h" nit: s/include/import https://codereview.chromium.org/2640463002/diff/1/ios/chrome/browser/web/blocked_popup_handler.h#newcode23 ios/chrome/browser/web/blocked_popup_handler.h:23: static void CreateForWebState(web::WebState* ...
3 years, 11 months ago (2017-01-17 18:04:53 UTC) #4
rohitrao (ping after 24h)
Let's start with Option 3 and see how far we can get without allowing interdependencies. ...
3 years, 11 months ago (2017-01-17 21:49:29 UTC) #9
Eugene But (OOO till 7-30)
lgtm. Could you please add a unittest for TabHelper https://codereview.chromium.org/2640463002/diff/1/ios/chrome/browser/web/blocked_popup_handler.h File ios/chrome/browser/web/blocked_popup_handler.h (right): https://codereview.chromium.org/2640463002/diff/1/ios/chrome/browser/web/blocked_popup_handler.h#newcode14 ios/chrome/browser/web/blocked_popup_handler.h:14: ...
3 years, 11 months ago (2017-01-17 22:10:21 UTC) #10
sdefresne
lgtm https://codereview.chromium.org/2640463002/diff/60001/ios/chrome/browser/web/blocked_popup_tab_helper.mm File ios/chrome/browser/web/blocked_popup_tab_helper.mm (right): https://codereview.chromium.org/2640463002/diff/60001/ios/chrome/browser/web/blocked_popup_tab_helper.mm#newcode106 ios/chrome/browser/web/blocked_popup_tab_helper.mm:106: popups_.clear(); nit: you can stop observing at that ...
3 years, 11 months ago (2017-01-18 10:20:57 UTC) #11
marq (ping after 24h)
LGTM https://codereview.chromium.org/2640463002/diff/60001/ios/chrome/browser/web/blocked_popup_tab_helper.mm File ios/chrome/browser/web/blocked_popup_tab_helper.mm (right): https://codereview.chromium.org/2640463002/diff/60001/ios/chrome/browser/web/blocked_popup_tab_helper.mm#newcode69 ios/chrome/browser/web/blocked_popup_tab_helper.mm:69: for (it = popups_.begin(); it != popups_.end(); ++it) ...
3 years, 11 months ago (2017-01-18 14:22:09 UTC) #12
rohitrao (ping after 24h)
Added a unittest and addressed comments. Had to add a DEPS exception for BlockedPopupInfo. https://codereview.chromium.org/2640463002/diff/60001/ios/chrome/browser/web/blocked_popup_tab_helper.h ...
3 years, 11 months ago (2017-01-23 15:30:29 UTC) #17
Eugene But (OOO till 7-30)
lgtm! Thank you for the tests! https://codereview.chromium.org/2640463002/diff/100001/ios/chrome/browser/web/blocked_popup_tab_helper_unittest.mm File ios/chrome/browser/web/blocked_popup_tab_helper_unittest.mm (right): https://codereview.chromium.org/2640463002/diff/100001/ios/chrome/browser/web/blocked_popup_tab_helper_unittest.mm#newcode60 ios/chrome/browser/web/blocked_popup_tab_helper_unittest.mm:60: EXPECT_TRUE(IsObservingSources()); From Google ...
3 years, 11 months ago (2017-01-23 16:37:48 UTC) #18
rohitrao (ping after 24h)
https://codereview.chromium.org/2640463002/diff/100001/ios/chrome/browser/web/blocked_popup_tab_helper_unittest.mm File ios/chrome/browser/web/blocked_popup_tab_helper_unittest.mm (right): https://codereview.chromium.org/2640463002/diff/100001/ios/chrome/browser/web/blocked_popup_tab_helper_unittest.mm#newcode60 ios/chrome/browser/web/blocked_popup_tab_helper_unittest.mm:60: EXPECT_TRUE(IsObservingSources()); On 2017/01/23 16:37:47, Eugene But wrote: > From ...
3 years, 11 months ago (2017-01-24 13:16:03 UTC) #19
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/2640463002/120001
3 years, 11 months ago (2017-01-24 13:16:18 UTC) #22
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/296898)
3 years, 11 months ago (2017-01-24 13:48:39 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/2640463002/120001
3 years, 11 months ago (2017-01-24 14:02:02 UTC) #26
commit-bot: I haz the power
3 years, 11 months ago (2017-01-24 14:45:06 UTC) #29
Message was sent while issue was closed.
Committed patchset #7 (id:120001) as
https://chromium.googlesource.com/chromium/src/+/d6eb8548aca00c0743e5d315e41f...

Powered by Google App Engine
This is Rietveld 408576698