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

Issue 934183002: Make the ShortcutHelper toast instead of send the user home for web app banners (Closed)

Created:
5 years, 10 months ago by gone
Modified:
5 years, 10 months ago
CC:
chromium-reviews
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Make the ShortcutHelper toast instead of send the user home for web app banners * Fix null pointer access when a shortcut is added via a manifest. It was relying on the WebContents() being accessible immediately after stopping the observation of the WebContents. * When adding a shortcut on the homescreen through web app banners, stop firing Intents to send the user to the home. Instead show a toast to indicate that a shortcut is being added to their homescreen. The string was chosen by UI and is described on the bug. * Hopefully fix the ShortcutHelperTests. BUG=457424, 303486 TEST=ShortcutHelperTest Committed: https://crrev.com/30728015d9945c0c988ffa0bbb00ffb86bcaeb72 Cr-Commit-Position: refs/heads/master@{#317079}

Patch Set 1 #

Total comments: 1

Patch Set 2 : Fix existing null access, change for comments #

Unified diffs Side-by-side diffs Delta from patch set Stats (+87 lines, -66 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/ShortcutHelper.java View 1 3 chunks +27 lines, -6 lines 0 comments Download
M chrome/android/java/strings/android_chrome_strings.grd View 1 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/ShortcutHelperTest.java View 9 chunks +44 lines, -52 lines 0 comments Download
M chrome/browser/android/banners/app_banner_infobar_delegate.cc View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/android/shortcut_helper.h View 1 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/android/shortcut_helper.cc View 1 3 chunks +9 lines, -6 lines 0 comments Download

Messages

Total messages: 19 (5 generated)
gone
5 years, 10 months ago (2015-02-18 02:47:42 UTC) #2
mlamouri (slow - plz ping)
Wasn't the user redirected to the homescreen for security concerns? Also, how would that interact ...
5 years, 10 months ago (2015-02-18 10:27:26 UTC) #4
Ted C
On 2015/02/18 10:27:26, Mounir Lamouri wrote: > Wasn't the user redirected to the homescreen for ...
5 years, 10 months ago (2015-02-18 16:02:28 UTC) #5
felt
security rubber stamp lgtm The original concern was about spoofing: we wanted the user to ...
5 years, 10 months ago (2015-02-18 22:03:45 UTC) #7
mlamouri (slow - plz ping)
If the security concerns are waved, it sounds good as long as the "Add To ...
5 years, 10 months ago (2015-02-18 22:16:43 UTC) #8
felt
On 2015/02/18 22:16:43, Mounir Lamouri wrote: > If the security concerns are waved, it sounds ...
5 years, 10 months ago (2015-02-18 22:42:24 UTC) #9
gone
Added support for either toasting or sending the user to the homescreen and fixed a ...
5 years, 10 months ago (2015-02-19 00:47:34 UTC) #11
gone
Oh, it also now indicates the domain+registry of the site in the toast when adding ...
5 years, 10 months ago (2015-02-19 00:47:55 UTC) #12
felt
I'm not entirely familiar with this code, but it looks like now there are two ...
5 years, 10 months ago (2015-02-19 04:23:50 UTC) #13
mlamouri (slow - plz ping)
lgtm
5 years, 10 months ago (2015-02-19 12:09:17 UTC) #14
gone
Updated the description, thanks!
5 years, 10 months ago (2015-02-19 17:52:47 UTC) #15
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/934183002/20001
5 years, 10 months ago (2015-02-19 17:54:11 UTC) #17
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 10 months ago (2015-02-19 18:28:05 UTC) #18
commit-bot: I haz the power
5 years, 10 months ago (2015-02-19 18:28:38 UTC) #19
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/30728015d9945c0c988ffa0bbb00ffb86bcaeb72
Cr-Commit-Position: refs/heads/master@{#317079}

Powered by Google App Engine
This is Rietveld 408576698