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

Issue 1017193002: [App banners] Be less strict about navigations (Closed)

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

Description

[App banners] Be less strict about navigations * In-page navigations no longer cancel a fetcher. URL checks are removed for recording banner events. * Remove dead code in AppBannerSettingsHelper for blocking banners. * Add a new Java test for popping up a web app banner. This will be extended to allow clicking on the "add to home screen" button soon. BUG=468148 TEST=AppBannerManagerTest Committed: https://crrev.com/6d609a9bcc1f72c780d7e075508b991c9c9a29ea Cr-Commit-Position: refs/heads/master@{#321493}

Patch Set 1 #

Patch Set 2 : Change DidFinishLoad to see if fetcher needs replacing #

Patch Set 3 : Move annotation upwards #

Total comments: 9

Patch Set 4 : Fixing comments #

Patch Set 5 : git cl format #

Unified diffs Side-by-side diffs Delta from patch set Stats (+116 lines, -127 lines) Patch
M chrome/android/java/src/org/chromium/chrome/browser/banners/AppBannerManager.java View 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java View 1 2 3 4 14 chunks +94 lines, -28 lines 0 comments Download
M chrome/browser/banners/app_banner_data_fetcher.cc View 2 chunks +3 lines, -1 line 0 comments Download
M chrome/browser/banners/app_banner_manager.h View 1 2 3 1 chunk +3 lines, -0 lines 0 comments Download
M chrome/browser/banners/app_banner_manager.cc View 1 2 3 4 3 chunks +12 lines, -0 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper.h View 2 3 1 chunk +0 lines, -11 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper.cc View 2 3 3 chunks +1 line, -70 lines 0 comments Download
M chrome/browser/banners/app_banner_settings_helper_unittest.cc View 1 chunk +0 lines, -14 lines 0 comments Download

Messages

Total messages: 14 (3 generated)
gone
Ben for the C++ stuff, Ted for the Java stuff
5 years, 9 months ago (2015-03-18 18:20:27 UTC) #2
gone
Hrm, I'm missing something here. Even if the AppBannerDataFetcher doesn't cancel itself, the AppBannerManager will ...
5 years, 9 months ago (2015-03-18 20:06:08 UTC) #3
gone
Alright, I think I've got a handle on it. PTAL.
5 years, 9 months ago (2015-03-18 21:46:21 UTC) #4
Ted C
lgtm https://codereview.chromium.org/1017193002/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java (right): https://codereview.chromium.org/1017193002/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java#newcode338 chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java:338: @Override the indent is inconsistent.
5 years, 9 months ago (2015-03-19 00:26:00 UTC) #5
benwells
https://codereview.chromium.org/1017193002/diff/40001/chrome/browser/banners/app_banner_settings_helper.cc File chrome/browser/banners/app_banner_settings_helper.cc (left): https://codereview.chromium.org/1017193002/diff/40001/chrome/browser/banners/app_banner_settings_helper.cc#oldcode301 chrome/browser/banners/app_banner_settings_helper.cc:301: bool AppBannerSettingsHelper::IsAllowed( Thanks for removing this dead stuff, I'd ...
5 years, 9 months ago (2015-03-19 07:18:55 UTC) #6
gone
https://chromiumcodereview.appspot.com/1017193002/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java File chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java (right): https://chromiumcodereview.appspot.com/1017193002/diff/40001/chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java#newcode338 chrome/android/javatests/src/org/chromium/chrome/browser/banners/AppBannerManagerTest.java:338: @Override On 2015/03/19 00:26:00, Ted C wrote: > the ...
5 years, 9 months ago (2015-03-19 19:01:35 UTC) #7
benwells
lgtm https://chromiumcodereview.appspot.com/1017193002/diff/40001/chrome/browser/banners/app_banner_settings_helper.cc File chrome/browser/banners/app_banner_settings_helper.cc (right): https://chromiumcodereview.appspot.com/1017193002/diff/40001/chrome/browser/banners/app_banner_settings_helper.cc#newcode85 chrome/browser/banners/app_banner_settings_helper.cc:85: && first.path() == second.path() && first.query() == second.query(); ...
5 years, 9 months ago (2015-03-20 00:44:33 UTC) #8
gone
Could've sworn git cl format did some weird things in Java code, but it seems ...
5 years, 9 months ago (2015-03-20 00:47:20 UTC) #9
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1017193002/80001
5 years, 9 months ago (2015-03-20 00:47:53 UTC) #12
commit-bot: I haz the power
Committed patchset #5 (id:80001)
5 years, 9 months ago (2015-03-20 01:58:42 UTC) #13
commit-bot: I haz the power
5 years, 9 months ago (2015-03-20 01:59:33 UTC) #14
Message was sent while issue was closed.
Patchset 5 (id:??) landed as
https://crrev.com/6d609a9bcc1f72c780d7e075508b991c9c9a29ea
Cr-Commit-Position: refs/heads/master@{#321493}

Powered by Google App Engine
This is Rietveld 408576698