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

Issue 23264020: Move Android to use new Popup Blocker API. (Closed)

Created:
7 years, 4 months ago by David Trainor- moved to gerrit
Modified:
7 years, 3 months ago
CC:
chromium-reviews, joi+watch-content_chromium.org, darin-cc_chromium.org, jam, Kibeom Kim (inactive)
Visibility:
Public.

Description

Move Android to use new Popup Blocker API. Update Android's popup implementation to use the new popup blocker API. BUG=275700 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=219324

Patch Set 1 #

Patch Set 2 : cd clank #

Patch Set 3 : Forgot to enable new popups for android in this cl #

Patch Set 4 : Cleanup #

Total comments: 31

Patch Set 5 : Addressed Comments #

Patch Set 6 : Address Comments #

Total comments: 4

Patch Set 7 : Comments #

Patch Set 8 : Renamed Method, Fixed AW #

Patch Set 9 : Fixed testshell break #

Total comments: 1

Patch Set 10 : Added NOTIMPLEMENTED #

Unified diffs Side-by-side diffs Delta from patch set Stats (+160 lines, -57 lines) Patch
M android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java View 1 2 3 4 5 6 7 1 chunk +0 lines, -7 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/ChromeWebContentsDelegateAndroid.java View 1 2 3 4 5 1 chunk +6 lines, -0 lines 0 comments Download
M chrome/android/testshell/testshell_tab.h View 1 2 3 4 5 6 7 8 2 chunks +5 lines, -1 line 0 comments Download
M chrome/android/testshell/testshell_tab.cc View 1 2 3 4 5 6 7 8 9 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_web_contents_delegate_android.h View 1 1 chunk +9 lines, -0 lines 0 comments Download
M chrome/browser/android/chrome_web_contents_delegate_android.cc View 1 2 3 4 5 6 3 chunks +100 lines, -0 lines 0 comments Download
M chrome/browser/android/tab_android.h View 1 2 3 4 5 6 7 3 chunks +8 lines, -2 lines 0 comments Download
M chrome/browser/android/tab_android.cc View 2 chunks +2 lines, -0 lines 0 comments Download
M chrome/browser/chrome_content_browser_client.cc View 1 2 3 4 5 6 7 8 6 chunks +1 line, -8 lines 0 comments Download
M chrome/browser/ui/android/tab_model/tab_model_list.h View 1 2 3 4 5 6 7 2 chunks +5 lines, -0 lines 0 comments Download
M chrome/browser/ui/android/tab_model/tab_model_list.cc View 1 2 3 4 5 6 7 2 chunks +11 lines, -0 lines 0 comments Download
M chrome/browser/ui/blocked_content/popup_blocker_tab_helper.cc View 1 2 3 4 5 6 7 2 chunks +8 lines, -0 lines 0 comments Download
M chrome/chrome_browser_ui.gypi View 1 2 3 4 5 6 7 8 2 chunks +0 lines, -3 lines 0 comments Download
M components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java View 1 2 3 4 5 1 chunk +0 lines, -6 lines 0 comments Download
M components/web_contents_delegate_android/web_contents_delegate_android.h View 1 2 3 4 1 chunk +0 lines, -6 lines 0 comments Download
M components/web_contents_delegate_android/web_contents_delegate_android.cc View 1 2 3 4 1 chunk +0 lines, -24 lines 0 comments Download

Messages

Total messages: 27 (0 generated)
David Trainor- moved to gerrit
ptal. yfriedman/tedchoc: General logic and all android bits joth: web_contents_delegate_android (small change, we weren't setting ...
7 years, 4 months ago (2013-08-20 22:37:47 UTC) #1
joth
https://codereview.chromium.org/23264020/diff/8001/components/web_contents_delegate_android/web_contents_delegate_android.cc File components/web_contents_delegate_android/web_contents_delegate_android.cc (right): https://codereview.chromium.org/23264020/diff/8001/components/web_contents_delegate_android/web_contents_delegate_android.cc#newcode138 components/web_contents_delegate_android/web_contents_delegate_android.cc:138: handled = Java_WebContentsDelegateAndroid_addNewContents( note this method isn't used in ...
7 years, 4 months ago (2013-08-20 22:44:36 UTC) #2
jochen (gone - plz use gerrit)
https://codereview.chromium.org/23264020/diff/8001/chrome/browser/android/chrome_web_contents_delegate_android.cc File chrome/browser/android/chrome_web_contents_delegate_android.cc (right): https://codereview.chromium.org/23264020/diff/8001/chrome/browser/android/chrome_web_contents_delegate_android.cc#newcode276 chrome/browser/android/chrome_web_contents_delegate_android.cc:276: void ChromeWebContentsDelegateAndroid::AddNewContents( this isn't really related to popup blocking, ...
7 years, 4 months ago (2013-08-21 08:05:25 UTC) #3
David Trainor- moved to gerrit
https://codereview.chromium.org/23264020/diff/8001/chrome/browser/ui/android/tab_model/tab_model_list.cc File chrome/browser/ui/android/tab_model/tab_model_list.cc (right): https://codereview.chromium.org/23264020/diff/8001/chrome/browser/ui/android/tab_model/tab_model_list.cc#newcode41 chrome/browser/ui/android/tab_model/tab_model_list.cc:41: tab->HandleNavigation(params); On 2013/08/21 08:05:25, jochen wrote: > does HandleNavigation() ...
7 years, 4 months ago (2013-08-21 17:25:12 UTC) #4
David Trainor- moved to gerrit
https://codereview.chromium.org/23264020/diff/8001/chrome/browser/android/chrome_web_contents_delegate_android.cc File chrome/browser/android/chrome_web_contents_delegate_android.cc (right): https://codereview.chromium.org/23264020/diff/8001/chrome/browser/android/chrome_web_contents_delegate_android.cc#newcode276 chrome/browser/android/chrome_web_contents_delegate_android.cc:276: void ChromeWebContentsDelegateAndroid::AddNewContents( On 2013/08/21 08:05:25, jochen wrote: > this ...
7 years, 4 months ago (2013-08-21 17:27:03 UTC) #5
Yaron
https://codereview.chromium.org/23264020/diff/8001/chrome/browser/android/chrome_web_contents_delegate_android.cc File chrome/browser/android/chrome_web_contents_delegate_android.cc (right): https://codereview.chromium.org/23264020/diff/8001/chrome/browser/android/chrome_web_contents_delegate_android.cc#newcode233 chrome/browser/android/chrome_web_contents_delegate_android.cc:233: if (!source || (disposition != CURRENT_TAB && Can source ...
7 years, 4 months ago (2013-08-21 19:07:58 UTC) #6
Yaron
https://codereview.chromium.org/23264020/diff/8001/chrome/browser/ui/android/tab_model/tab_model_list.cc File chrome/browser/ui/android/tab_model/tab_model_list.cc (right): https://codereview.chromium.org/23264020/diff/8001/chrome/browser/ui/android/tab_model/tab_model_list.cc#newcode41 chrome/browser/ui/android/tab_model/tab_model_list.cc:41: tab->HandleNavigation(params); On 2013/08/21 08:05:25, jochen wrote: > does HandleNavigation() ...
7 years, 4 months ago (2013-08-21 19:09:46 UTC) #7
David Trainor- moved to gerrit
https://codereview.chromium.org/23264020/diff/8001/chrome/browser/android/chrome_web_contents_delegate_android.cc File chrome/browser/android/chrome_web_contents_delegate_android.cc (right): https://codereview.chromium.org/23264020/diff/8001/chrome/browser/android/chrome_web_contents_delegate_android.cc#newcode233 chrome/browser/android/chrome_web_contents_delegate_android.cc:233: if (!source || (disposition != CURRENT_TAB && On 2013/08/21 ...
7 years, 4 months ago (2013-08-21 20:21:27 UTC) #8
Ted C
https://codereview.chromium.org/23264020/diff/8001/chrome/browser/android/chrome_web_contents_delegate_android.cc File chrome/browser/android/chrome_web_contents_delegate_android.cc (right): https://codereview.chromium.org/23264020/diff/8001/chrome/browser/android/chrome_web_contents_delegate_android.cc#newcode258 chrome/browser/android/chrome_web_contents_delegate_android.cc:258: if (popup_blocker_helper) { On 2013/08/21 19:07:58, Yaron wrote: > ...
7 years, 4 months ago (2013-08-21 21:06:14 UTC) #9
joth
components/wcda lgtm but you'll need to fixup aw/ too https://codereview.chromium.org/23264020/diff/22001/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java File components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java (left): https://codereview.chromium.org/23264020/diff/22001/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java#oldcode62 components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java:62: ...
7 years, 4 months ago (2013-08-21 21:12:00 UTC) #10
David Trainor- moved to gerrit
https://chromiumcodereview.appspot.com/23264020/diff/22001/chrome/browser/android/chrome_web_contents_delegate_android.cc File chrome/browser/android/chrome_web_contents_delegate_android.cc (right): https://chromiumcodereview.appspot.com/23264020/diff/22001/chrome/browser/android/chrome_web_contents_delegate_android.cc#newcode258 chrome/browser/android/chrome_web_contents_delegate_android.cc:258: params.disposition == NEW_FOREGROUND_TAB || On 2013/08/21 21:06:15, Ted C ...
7 years, 4 months ago (2013-08-21 21:18:27 UTC) #11
David Trainor- moved to gerrit
On 2013/08/21 21:12:00, joth wrote: > components/wcda lgtm but you'll need to fixup aw/ too ...
7 years, 4 months ago (2013-08-21 21:21:59 UTC) #12
joth
This one: AwWebContentsDelegateAdapter https://code.google.com/p/chromium/codesearch#chromium/src/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java&sq=package:chromium&l=95 On 21 August 2013 14:21, <dtrainor@chromium.org> wrote: > On 2013/08/21 21:12:00, ...
7 years, 4 months ago (2013-08-21 21:56:24 UTC) #13
joth
See http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/8150/steps/compile/logs/stdio#error1 external/chromium_org/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java:94: method does not override or implement a method from a supertype @Override ...
7 years, 4 months ago (2013-08-21 21:57:28 UTC) #14
Yaron
https://codereview.chromium.org/23264020/diff/8001/chrome/browser/android/chrome_web_contents_delegate_android.cc File chrome/browser/android/chrome_web_contents_delegate_android.cc (right): https://codereview.chromium.org/23264020/diff/8001/chrome/browser/android/chrome_web_contents_delegate_android.cc#newcode258 chrome/browser/android/chrome_web_contents_delegate_android.cc:258: if (popup_blocker_helper) { On 2013/08/21 21:06:15, Ted C wrote: ...
7 years, 4 months ago (2013-08-22 00:36:30 UTC) #15
David Trainor- moved to gerrit
On 2013/08/21 21:57:28, joth wrote: > See > http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/8150/steps/compile/logs/stdio#error1 > > external/chromium_org/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java:94: > method does ...
7 years, 4 months ago (2013-08-22 00:41:56 UTC) #16
David Trainor- moved to gerrit
On 2013/08/21 21:57:28, joth wrote: > See > http://build.chromium.org/p/tryserver.chromium/builders/android_aosp/builds/8150/steps/compile/logs/stdio#error1 > > external/chromium_org/android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java:94: > method does ...
7 years, 4 months ago (2013-08-22 00:41:58 UTC) #17
David Trainor- moved to gerrit
On 2013/08/22 00:36:30, Yaron wrote: > https://codereview.chromium.org/23264020/diff/8001/chrome/browser/android/chrome_web_contents_delegate_android.cc > File chrome/browser/android/chrome_web_contents_delegate_android.cc (right): > > https://codereview.chromium.org/23264020/diff/8001/chrome/browser/android/chrome_web_contents_delegate_android.cc#newcode258 > ...
7 years, 4 months ago (2013-08-22 00:42:40 UTC) #18
jochen (gone - plz use gerrit)
lgtm
7 years, 4 months ago (2013-08-22 06:31:26 UTC) #19
David Trainor- moved to gerrit
Fixed the testshell build break.
7 years, 4 months ago (2013-08-22 18:22:28 UTC) #20
joth
aw/ lgtm
7 years, 4 months ago (2013-08-22 18:24:52 UTC) #21
Yaron
lgtm https://chromiumcodereview.appspot.com/23264020/diff/32001/chrome/android/testshell/testshell_tab.cc File chrome/android/testshell/testshell_tab.cc (right): https://chromiumcodereview.appspot.com/23264020/diff/32001/chrome/android/testshell/testshell_tab.cc#newcode101 chrome/android/testshell/testshell_tab.cc:101: void TestShellTab::HandlePopupNavigation(chrome::NavigateParams* params) { } NOTIMPLEMENTED
7 years, 4 months ago (2013-08-22 18:30:04 UTC) #22
David Trainor- moved to gerrit
On 2013/08/22 18:30:04, Yaron wrote: > lgtm > > https://chromiumcodereview.appspot.com/23264020/diff/32001/chrome/android/testshell/testshell_tab.cc > File chrome/android/testshell/testshell_tab.cc (right): > ...
7 years, 4 months ago (2013-08-22 21:07:50 UTC) #23
joth
FYI, NOTIMPLEMENTED logs, it's NOTREACHED that crashes. On 22 August 2013 14:07, <dtrainor@chromium.org> wrote: > ...
7 years, 4 months ago (2013-08-22 22:27:25 UTC) #24
David Trainor- moved to gerrit
On 2013/08/22 22:27:25, joth wrote: > FYI, NOTIMPLEMENTED logs, it's NOTREACHED that crashes. > > ...
7 years, 4 months ago (2013-08-23 00:37:02 UTC) #25
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/dtrainor@chromium.org/23264020/17012
7 years, 4 months ago (2013-08-23 17:51:53 UTC) #26
commit-bot: I haz the power
7 years, 4 months ago (2013-08-23 20:28:26 UTC) #27
Message was sent while issue was closed.
Change committed as 219324

Powered by Google App Engine
This is Rietveld 408576698