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

Issue 884373002: Update content setting for app banners to store more information. (Closed)

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

Description

Update content setting for app banners to store more information. This changes the app banner content setting from being a dictionary of app key to bool, to being a dictionary of app key to dictionary. The sub dictionary contains one bool for whether the banner has been blocked, and also a list of dates. The list of dates will contain at most 14 dates, and will be used to record distinct dates on which the banner could have been shown. This is to allow more complex triggering. The goal is to actually show banners if they could otherwise have been shown on a previous date in the last 14 days. Note the complex triggering is not currently used. BUG=452825 Committed: https://crrev.com/1fa5a3081a04c314c2dcdf8afc6b9d951be13493 Cr-Commit-Position: refs/heads/master@{#314266}

Patch Set 1 #

Patch Set 2 : Remove unimplemented function #

Total comments: 12

Patch Set 3 : Move files #

Patch Set 4 : Add test, fix the bugs! #

Patch Set 5 : Add OWNERS for new folder; remove unwanted change #

Total comments: 6

Patch Set 6 : Feedback; mac compile #

Patch Set 7 : Add logging to debug windows test failure #

Patch Set 8 : Fully initialize test data. #

Patch Set 9 : Remove app banner from the settings UI. #

Patch Set 10 : Mac test failure #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+433 lines, -165 lines) Patch
M chrome/browser/android/banners/app_banner_manager.cc View 1 2 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/android/banners/app_banner_settings_helper.h View 1 2 1 chunk +0 lines, -35 lines 0 comments Download
M chrome/browser/android/banners/app_banner_settings_helper.cc View 1 2 1 chunk +0 lines, -112 lines 0 comments Download
A + chrome/browser/banners/OWNERS View 1 2 3 4 1 chunk +1 line, -0 lines 0 comments Download
A chrome/browser/banners/app_banner_settings_helper.h View 1 2 3 4 5 1 chunk +66 lines, -0 lines 3 comments Download
A chrome/browser/banners/app_banner_settings_helper.cc View 1 2 3 4 5 7 8 1 chunk +246 lines, -0 lines 0 comments Download
A chrome/browser/banners/app_banner_settings_helper_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +108 lines, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa.mm View 1 2 3 4 5 1 chunk +1 line, -0 lines 0 comments Download
M chrome/browser/ui/cocoa/content_settings/content_setting_bubble_cocoa_unittest.mm View 1 2 3 4 5 6 7 8 9 1 chunk +2 lines, -1 line 0 comments Download
M chrome/browser/ui/webui/options/content_settings_handler.cc View 1 2 3 4 5 6 7 8 1 chunk +5 lines, -0 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/chrome_tests_unit.gypi View 1 2 3 1 chunk +1 line, -0 lines 0 comments Download
M components/content_settings/core/browser/content_settings_default_provider.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M components/content_settings/core/browser/content_settings_policy_provider.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M components/content_settings/core/browser/content_settings_utils.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M components/content_settings/core/browser/host_content_settings_map.cc View 1 2 3 2 chunks +0 lines, -4 lines 0 comments Download
M components/content_settings/core/common/content_settings.cc View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download
M components/content_settings/core/common/content_settings_types.h View 1 2 3 1 chunk +0 lines, -2 lines 0 comments Download

Messages

Total messages: 17 (3 generated)
benwells
This isn't ready to land yet - it desperately needs tests - but I want ...
5 years, 10 months ago (2015-01-29 08:02:24 UTC) #2
Bernhard Bauer
On 2015/01/29 08:02:24, benwells wrote: > This isn't ready to land yet - it desperately ...
5 years, 10 months ago (2015-01-29 16:49:36 UTC) #3
benwells
Feedback address, tests added, and many bugs fixed. This content setting isn't used anywhere but ...
5 years, 10 months ago (2015-01-30 06:27:02 UTC) #4
Bernhard Bauer
So, what do we do about migrating old settings? https://codereview.chromium.org/884373002/diff/80001/chrome/browser/banners/app_banner_settings_helper.cc File chrome/browser/banners/app_banner_settings_helper.cc (right): https://codereview.chromium.org/884373002/diff/80001/chrome/browser/banners/app_banner_settings_helper.cc#newcode120 chrome/browser/banners/app_banner_settings_helper.cc:120: ...
5 years, 10 months ago (2015-01-30 13:25:26 UTC) #5
benwells
This feature hasn't been released yet, it has never been enabled by default. Given that ...
5 years, 10 months ago (2015-01-30 20:47:28 UTC) #6
Bernhard Bauer
On 2015/01/30 20:47:28, benwells wrote: > This feature hasn't been released yet, it has never ...
5 years, 10 months ago (2015-02-02 09:35:40 UTC) #7
benwells
+thestig for addition of new folder and owners file. ping dfalcantara for review, if you ...
5 years, 10 months ago (2015-02-02 16:36:02 UTC) #9
gone
lgtm on my end
5 years, 10 months ago (2015-02-02 17:54:02 UTC) #10
Lei Zhang
Is the goal to bring the banners code into desktop Chrome? https://chromiumcodereview.appspot.com/884373002/diff/180001/chrome/browser/banners/app_banner_settings_helper.h File chrome/browser/banners/app_banner_settings_helper.h (right): ...
5 years, 10 months ago (2015-02-02 19:50:13 UTC) #11
benwells
For M43 we'd like to have the app banner functionality in desktop chrome. The triggering ...
5 years, 10 months ago (2015-02-03 02:33:45 UTC) #12
Lei Zhang
lgtm. Just wanted to make sure this was going to desktop Chrome. https://codereview.chromium.org/884373002/diff/180001/chrome/browser/banners/app_banner_settings_helper.h File chrome/browser/banners/app_banner_settings_helper.h ...
5 years, 10 months ago (2015-02-03 02:39:39 UTC) #13
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/884373002/180001
5 years, 10 months ago (2015-02-03 03:28:32 UTC) #15
commit-bot: I haz the power
Committed patchset #10 (id:180001)
5 years, 10 months ago (2015-02-03 04:14:02 UTC) #16
commit-bot: I haz the power
5 years, 10 months ago (2015-02-03 04:15:23 UTC) #17
Message was sent while issue was closed.
Patchset 10 (id:??) landed as
https://crrev.com/1fa5a3081a04c314c2dcdf8afc6b9d951be13493
Cr-Commit-Position: refs/heads/master@{#314266}

Powered by Google App Engine
This is Rietveld 408576698