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

Issue 22314005: [Android] On calling openNewTab, pass the disposition instead of incognito. (Closed)

Created:
7 years, 4 months ago by Kibeom Kim (inactive)
Modified:
7 years, 4 months ago
CC:
chromium-reviews, android-webview-reviews_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Visibility:
Public.

Description

[Android] On calling openNewTab, pass the disposition instead of incognito. Currently, when openNewTab is called, we pass a boolean incognito variable that indicates if it should be opened in incognito mode. This was not consistent with the desktop. For example, NEW_FOREGROUND_TAB and NEW_BACKGROUND_TAB open incognito tab if the current tab is incognito. So this CL instead passes the actual disposition so that Java side has the full information required to be consistent with the desktop. BUG=268283 BUG=268414 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=215973

Patch Set 1 #

Patch Set 2 : used .template instead of manually copying the constants. #

Patch Set 3 : gyp indent fix #

Patch Set 4 : added missing .template (forgot) #

Total comments: 6

Patch Set 5 : address joth@'s commments on patch set 4 #

Total comments: 3

Patch Set 6 : @param disposition comment revision #

Total comments: 1

Patch Set 7 : reverted copyright year update #

Unified diffs Side-by-side diffs Delta from patch set Stats (+60 lines, -17 lines) Patch
M android_webview/Android.mk View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/all_webview.gyp View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
M android_webview/java/src/org/chromium/android_webview/AwWebContentsDelegateAdapter.java View 1 chunk +1 line, -1 line 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 2 chunks +7 lines, -2 lines 0 comments Download
M components/web_contents_delegate_android/web_contents_delegate_android.cc View 1 2 3 4 1 chunk +1 line, -1 line 0 comments Download
A ui/android/java/WindowOpenDisposition.template View 1 2 3 1 chunk +11 lines, -0 lines 0 comments Download
M ui/base/window_open_disposition.h View 1 2 3 4 5 6 2 chunks +6 lines, -13 lines 0 comments Download
A ui/base/window_open_disposition_list.h View 1 1 chunk +19 lines, -0 lines 0 comments Download
M ui/ui.gyp View 1 2 1 chunk +13 lines, -0 lines 0 comments Download

Messages

Total messages: 12 (0 generated)
Kibeom Kim (inactive)
7 years, 4 months ago (2013-08-06 01:00:52 UTC) #1
Kibeom Kim (inactive)
Bo told me about .template, I'll work on that.
7 years, 4 months ago (2013-08-06 01:09:45 UTC) #2
Kibeom Kim (inactive)
Changed to .template
7 years, 4 months ago (2013-08-06 03:20:41 UTC) #3
joth
mostly looks good. https://codereview.chromium.org/22314005/diff/14001/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 (right): https://codereview.chromium.org/22314005/diff/14001/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java#newcode51 components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java:51: public void openNewTab(String url, String extraHeaders, ...
7 years, 4 months ago (2013-08-06 04:04:21 UTC) #4
Kibeom Kim (inactive)
https://codereview.chromium.org/22314005/diff/14001/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 (right): https://codereview.chromium.org/22314005/diff/14001/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java#newcode51 components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java:51: public void openNewTab(String url, String extraHeaders, byte[] postData, int ...
7 years, 4 months ago (2013-08-06 04:36:01 UTC) #5
joth
lgtm https://codereview.chromium.org/22314005/diff/19001/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 (right): https://codereview.chromium.org/22314005/diff/19001/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java#newcode54 components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java:54: * ui/android/java/WindowOpenDisposition.template . nit: you can word wrap ...
7 years, 4 months ago (2013-08-06 04:47:25 UTC) #6
Kibeom Kim (inactive)
sky, ben -- could you take a look at ui/* files? (trivial changes) Thanks. https://codereview.chromium.org/22314005/diff/19001/components/web_contents_delegate_android/android/java/src/org/chromium/components/web_contents_delegate_android/WebContentsDelegateAndroid.java ...
7 years, 4 months ago (2013-08-06 05:09:54 UTC) #7
sky
ui LGTM https://codereview.chromium.org/22314005/diff/26001/ui/base/window_open_disposition.h File ui/base/window_open_disposition.h (right): https://codereview.chromium.org/22314005/diff/26001/ui/base/window_open_disposition.h#newcode1 ui/base/window_open_disposition.h:1: // Copyright 2013 The Chromium Authors. All ...
7 years, 4 months ago (2013-08-06 14:20:08 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkimlabs@chromium.org/22314005/43001
7 years, 4 months ago (2013-08-06 17:34:37 UTC) #9
commit-bot: I haz the power
Retried try job too often on mac_rel for step(s) browser_tests http://build.chromium.org/p/tryserver.chromium/buildstatus?builder=mac_rel&number=156824
7 years, 4 months ago (2013-08-06 19:26:48 UTC) #10
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/kkimlabs@chromium.org/22314005/43001
7 years, 4 months ago (2013-08-06 19:29:02 UTC) #11
commit-bot: I haz the power
7 years, 4 months ago (2013-08-06 21:01:54 UTC) #12
Message was sent while issue was closed.
Change committed as 215973

Powered by Google App Engine
This is Rietveld 408576698