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

Issue 2638153002: Add FLAG_ACTIVITY_NEW_TASK to trusted Intents (Closed)

Created:
3 years, 11 months ago by cco3
Modified:
3 years, 11 months ago
Reviewers:
Ted C
CC:
chromium-reviews, agrieve+watch_chromium.org
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Add FLAG_ACTIVITY_NEW_TASK to trusted Intents Because we are starting trusted intents from the application context, we need FLAG_ACTIVITY_NEW_TASK on pre-N versions of Android. On N+ we can get away with specifying a task ID or not specifying an options bundle. This fixes a crash with the Physical Web that is currently failing to set this flag in its Intent. BUG=663842, 681441 Review-Url: https://codereview.chromium.org/2638153002 Cr-Commit-Position: refs/heads/master@{#444180} Committed: https://chromium.googlesource.com/chromium/src/+/12a49ca76a658d24d34f6dbe9b6976adf65537a9

Patch Set 1 #

Total comments: 1

Patch Set 2 : Explicitly add flag for PW #

Total comments: 2

Patch Set 3 : Assert #

Patch Set 4 : Rebase #

Patch Set 5 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+6 lines, -1 line) Patch
M chrome/android/java/src/org/chromium/chrome/browser/IntentHandler.java View 1 2 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/android/java/src/org/chromium/chrome/browser/physicalweb/PhysicalWeb.java View 1 2 3 4 1 chunk +2 lines, -1 line 0 comments Download

Messages

Total messages: 17 (8 generated)
cco3
Hi Ted, this is a follow up to https://codereview.chromium.org/2601273003
3 years, 11 months ago (2017-01-17 20:05:25 UTC) #2
Ted C
https://codereview.chromium.org/2638153002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/IntentHandler.java File chrome/android/java/src/org/chromium/chrome/browser/IntentHandler.java (right): https://codereview.chromium.org/2638153002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/IntentHandler.java#newcode580 chrome/android/java/src/org/chromium/chrome/browser/IntentHandler.java:580: copiedIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); Right now, all callers have added this before ...
3 years, 11 months ago (2017-01-17 21:00:38 UTC) #3
cco3
On 2017/01/17 21:00:38, Ted C wrote: > https://codereview.chromium.org/2638153002/diff/1/chrome/android/java/src/org/chromium/chrome/browser/IntentHandler.java > File chrome/android/java/src/org/chromium/chrome/browser/IntentHandler.java > (right): > > ...
3 years, 11 months ago (2017-01-17 21:08:27 UTC) #4
Ted C
lgtm ... w/ switch to assert in IntentHandler https://codereview.chromium.org/2638153002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/IntentHandler.java File chrome/android/java/src/org/chromium/chrome/browser/IntentHandler.java (right): https://codereview.chromium.org/2638153002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/IntentHandler.java#newcode580 chrome/android/java/src/org/chromium/chrome/browser/IntentHandler.java:580: copiedIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); ...
3 years, 11 months ago (2017-01-17 21:40:02 UTC) #5
cco3
https://codereview.chromium.org/2638153002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/IntentHandler.java File chrome/android/java/src/org/chromium/chrome/browser/IntentHandler.java (right): https://codereview.chromium.org/2638153002/diff/20001/chrome/android/java/src/org/chromium/chrome/browser/IntentHandler.java#newcode580 chrome/android/java/src/org/chromium/chrome/browser/IntentHandler.java:580: copiedIntent.addFlags(Intent.FLAG_ACTIVITY_NEW_TASK); On 2017/01/17 21:40:02, Ted C wrote: > For ...
3 years, 11 months ago (2017-01-17 21:58:46 UTC) #6
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/2638153002/60001
3 years, 11 months ago (2017-01-17 22:06:16 UTC) #9
commit-bot: I haz the power
Try jobs failed on following builders: linux_android_rel_ng on master.tryserver.chromium.android (JOB_FAILED, https://build.chromium.org/p/tryserver.chromium.android/builders/linux_android_rel_ng/builds/214536)
3 years, 11 months ago (2017-01-17 22:28:28 UTC) #11
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/2638153002/80001
3 years, 11 months ago (2017-01-17 22:40:48 UTC) #14
commit-bot: I haz the power
3 years, 11 months ago (2017-01-17 23:18:25 UTC) #17
Message was sent while issue was closed.
Committed patchset #5 (id:80001) as
https://chromium.googlesource.com/chromium/src/+/12a49ca76a658d24d34f6dbe9b69...

Powered by Google App Engine
This is Rietveld 408576698