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

Issue 2075023002: UI Changes to support clearing EME/CDM data (Closed)

Created:
4 years, 6 months ago by jrummell
Modified:
4 years, 5 months ago
CC:
arv+watch_chromium.org, chromium-apps-reviews_chromium.org, chromium-reviews, dbeam+watch-settings_chromium.org, dbeam+watch-options_chromium.org, extensions-reviews_chromium.org, markusheintz_, michaelpg+watch-md-settings_chromium.org, michaelpg+watch-options_chromium.org, michaelpg+watch-md-ui_chromium.org, msramek+watch_chromium.org, stevenjb+watch-md-settings_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

UI Changes to support clearing EME/CDM data Update the "Clear Browsing Data" dialogs to clear the EME/CDM data when "Content Licenses" is selected. Currently selecting "Content Licenses" only clears Flash data, if Flash is enabled. Added new preference kDeleteMediaLicenses which replaces kDeauthorizeContentLicenses, which was Flash specific. Default value for kDeleteMediaLicenses is false, so the checkbox will not be selected initially. EME/CDM data is stored in the plugin private file system. If there is no data saved for EME, then deletion is a nop. Actually deleting the data was handled in https://codereview.chromium.org/1979733002/. Changes to chrome://settings/clearBrowserData: 1) "Content licenses" is renamed to "Media Licenses". 2) "Content licenses" check box will always be displayed. (Currently it is only displayed if Flash is enabled.) 3) When selected, it will display an additional message as noted in the UI design doc (e.g. "You may lose access to premium content from some sites" or "You may lose access to premium content from www.youtube.com and some other sites."). Changes to chrome://md-settings/advanced -> Clear Browsing Data 1) "Content licenses" is renamed to "Media Licenses". 2) When selected, it will display an additional message as noted above. BUG=418195 TEST=tested "Clear Browsing Data" dialogs manually, new tests pass CQ_INCLUDE_TRYBOTS=tryserver.chromium.linux:closure_compilation Committed: https://crrev.com/bffd01243bee7c038ef6c4a92814c77176d9ebdd Cr-Commit-Position: refs/heads/master@{#403029}

Patch Set 1 #

Total comments: 36

Patch Set 2 : Changes #

Total comments: 14

Patch Set 3 : more changes #

Patch Set 4 : Media licenses everywhere #

Total comments: 8

Patch Set 5 : changes #

Total comments: 18

Patch Set 6 : more changes #

Total comments: 6

Patch Set 7 : changes #

Patch Set 8 : rebase #

Patch Set 9 : fix ChromeOS test #

Patch Set 10 : hostname only #

Patch Set 11 : fix test #

Patch Set 12 : revert options_page.css #

Unified diffs Side-by-side diffs Delta from patch set Stats (+471 lines, -95 lines) Patch
M chrome/app/generated_resources.grd View 1 2 3 4 5 6 7 3 chunks +8 lines, -5 lines 0 comments Download
M chrome/app/settings_strings.grdp View 1 2 3 4 5 6 7 1 chunk +2 lines, -2 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_counter_utils.cc View 1 2 3 4 5 6 7 3 chunks +14 lines, -1 line 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.h View 1 4 chunks +6 lines, -6 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover.cc View 1 2 3 4 5 5 chunks +22 lines, -11 lines 0 comments Download
M chrome/browser/browsing_data/browsing_data_remover_unittest.cc View 1 2 3 4 5 6 7 8 1 chunk +1 line, -1 line 0 comments Download
A chrome/browser/browsing_data/media_licenses_counter.h View 1 2 3 4 5 6 1 chunk +55 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data/media_licenses_counter.cc View 1 2 3 4 5 6 7 8 9 1 chunk +80 lines, -0 lines 0 comments Download
A chrome/browser/browsing_data/media_licenses_counter_browsertest.cc View 1 2 3 4 5 6 7 8 9 10 1 chunk +215 lines, -0 lines 0 comments Download
M chrome/browser/extensions/api/settings_private/prefs_util.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/pepper_flash_settings_manager.h View 1 2 chunks +5 lines, -5 lines 0 comments Download
M chrome/browser/pepper_flash_settings_manager.cc View 1 3 chunks +3 lines, -5 lines 0 comments Download
M chrome/browser/resources/options/clear_browser_data_overlay.html View 1 1 chunk +8 lines, -5 lines 0 comments Download
M chrome/browser/resources/options/clear_browser_data_overlay.js View 1 2 chunks +2 lines, -2 lines 0 comments Download
M chrome/browser/resources/settings/clear_browsing_data_dialog/clear_browsing_data_dialog.html View 1 2 3 4 5 6 7 1 chunk +3 lines, -3 lines 0 comments Download
M chrome/browser/ui/browser_ui_prefs.cc View 1 2 3 4 5 6 7 1 chunk +4 lines, -0 lines 0 comments Download
M chrome/browser/ui/webui/options/clear_browser_data_browsertest.cc View 1 chunk +1 line, -1 line 0 comments Download
M chrome/browser/ui/webui/options/clear_browser_data_handler.h View 1 chunk +0 lines, -4 lines 0 comments Download
M chrome/browser/ui/webui/options/clear_browser_data_handler.cc View 1 2 3 4 5 6 6 chunks +25 lines, -29 lines 0 comments Download
M chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -4 lines 0 comments Download
M chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc View 1 2 3 4 5 6 7 4 chunks +5 lines, -6 lines 0 comments Download
M chrome/chrome_browser.gypi View 1 2 3 4 5 6 7 1 chunk +2 lines, -0 lines 0 comments Download
M chrome/chrome_tests.gypi View 1 2 3 4 5 6 7 1 chunk +1 line, -0 lines 0 comments Download
M chrome/common/pref_names.h View 1 2 3 4 5 6 7 1 chunk +1 line, -1 line 0 comments Download
M chrome/common/pref_names.cc View 1 2 3 4 5 6 7 1 chunk +1 line, -2 lines 0 comments Download
M tools/metrics/actions/actions.xml View 1 2 3 4 5 6 7 1 chunk +5 lines, -1 line 0 comments Download

Messages

Total messages: 43 (13 generated)
jrummell
PTAL.
4 years, 6 months ago (2016-06-17 00:04:09 UTC) #3
xhwang
Looking pretty good. I only have a few nits. Please add a browsing_data owner, and ...
4 years, 6 months ago (2016-06-17 06:24:30 UTC) #4
jrummell
+michaeln@ for chrome/browser/browsing_data +pkasting@ for chrome/browser/ui +ihf@ for comments on Flash changes https://codereview.chromium.org/2075023002/diff/1/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd ...
4 years, 6 months ago (2016-06-21 00:13:44 UTC) #6
xhwang
looking pretty good. I only have two more comments. Next time it'd be nice to ...
4 years, 6 months ago (2016-06-21 06:02:41 UTC) #7
michaeln
I might not the best reviewer for the browsing_data changes since i'm not familiar with ...
4 years, 6 months ago (2016-06-21 20:23:42 UTC) #8
Peter Kasting
LGTM https://codereview.chromium.org/2075023002/diff/20001/chrome/browser/ui/webui/options/clear_browser_data_handler.cc File chrome/browser/ui/webui/options/clear_browser_data_handler.cc (right): https://codereview.chromium.org/2075023002/diff/20001/chrome/browser/ui/webui/options/clear_browser_data_handler.cc#newcode298 chrome/browser/ui/webui/options/clear_browser_data_handler.cc:298: prefs::kDeleteMediaLicenses, Nit: Honestly, I think the one-per-line wrapping ...
4 years, 6 months ago (2016-06-22 00:05:14 UTC) #10
jrummell
Updated. https://codereview.chromium.org/2075023002/diff/20001/chrome/browser/browsing_data/media_licenses_counter.cc File chrome/browser/browsing_data/media_licenses_counter.cc (right): https://codereview.chromium.org/2075023002/diff/20001/chrome/browser/browsing_data/media_licenses_counter.cc#newcode75 chrome/browser/browsing_data/media_licenses_counter.cc:75: base::Passed(std::move(filesystem_context)), On 2016/06/21 20:23:41, michaeln wrote: > This ...
4 years, 6 months ago (2016-06-23 02:48:56 UTC) #11
xhwang
https://codereview.chromium.org/2075023002/diff/20001/chrome/browser/ui/webui/options/clear_browser_data_handler.cc File chrome/browser/ui/webui/options/clear_browser_data_handler.cc (right): https://codereview.chromium.org/2075023002/diff/20001/chrome/browser/ui/webui/options/clear_browser_data_handler.cc#newcode177 chrome/browser/ui/webui/options/clear_browser_data_handler.cc:177: {"deleteMediaLicensesCheckbox", IDS_DEAUTHORIZE_CONTENT_LICENSES_CHKBOX}, On 2016/06/23 02:48:55, jrummell wrote: > On ...
4 years, 6 months ago (2016-06-23 04:30:54 UTC) #12
jrummell
Updated to use Media License in all tags. https://codereview.chromium.org/2075023002/diff/20001/chrome/browser/ui/webui/options/clear_browser_data_handler.cc File chrome/browser/ui/webui/options/clear_browser_data_handler.cc (right): https://codereview.chromium.org/2075023002/diff/20001/chrome/browser/ui/webui/options/clear_browser_data_handler.cc#newcode177 chrome/browser/ui/webui/options/clear_browser_data_handler.cc:177: {"deleteMediaLicensesCheckbox", ...
4 years, 6 months ago (2016-06-23 19:17:35 UTC) #14
michaeln
browser/browsing_data lgtm
4 years, 6 months ago (2016-06-23 20:38:01 UTC) #15
jrummell
Adding more OWNERS +stevenjb@ for chrome/browser/ui, chrome/browser/resources, chrome/app/settings_strings.grdp +thakis@ for the other chrome/browser files +rkaplow@ ...
4 years, 6 months ago (2016-06-23 21:03:16 UTC) #17
Nico
chrome/browser lgtm with html fixed. Feels like a mix of a renaming cl and a ...
4 years, 6 months ago (2016-06-23 21:23:11 UTC) #18
stevenjb
-> dpapad@ for options/settings review since he is more familiar with the privacy settings.
4 years, 6 months ago (2016-06-23 21:40:13 UTC) #20
xhwang
One last comment. Otherwise LGTM https://chromiumcodereview.appspot.com/2075023002/diff/80001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://chromiumcodereview.appspot.com/2075023002/diff/80001/chrome/app/generated_resources.grd#newcode7844 chrome/app/generated_resources.grd:7844: + <message name="IDS_DEL_MEDIA_LICENSES_COUNTER" desc="A ...
4 years, 6 months ago (2016-06-23 23:24:26 UTC) #21
dpapad
https://codereview.chromium.org/2075023002/diff/80001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2075023002/diff/80001/chrome/app/generated_resources.grd#newcode7865 chrome/app/generated_resources.grd:7865: + <message name="IDS_DEL_MEDIA_LICENSES_GENERAL_COMMENT" desc="A static message shown in the ...
4 years, 6 months ago (2016-06-24 16:51:37 UTC) #22
jrummell
Updated. +msramek@ https://codereview.chromium.org/2075023002/diff/80001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2075023002/diff/80001/chrome/app/generated_resources.grd#newcode7844 chrome/app/generated_resources.grd:7844: + <message name="IDS_DEL_MEDIA_LICENSES_COUNTER" desc="A static message shown ...
4 years, 6 months ago (2016-06-24 18:26:05 UTC) #24
dpapad
On 2016/06/23 at 21:40:13, stevenjb wrote: > -> dpapad@ for options/settings review since he is ...
4 years, 6 months ago (2016-06-24 20:21:59 UTC) #25
msramek
One of the last two missing counters in the CBD dialog, thanks for implementing that ...
4 years, 5 months ago (2016-06-27 14:27:33 UTC) #26
rkaplow
lgtm actions lg
4 years, 5 months ago (2016-06-27 19:34:02 UTC) #27
jrummell
Updated. https://codereview.chromium.org/2075023002/diff/100001/chrome/app/generated_resources.grd File chrome/app/generated_resources.grd (right): https://codereview.chromium.org/2075023002/diff/100001/chrome/app/generated_resources.grd#newcode7862 chrome/app/generated_resources.grd:7862: + <message name="IDS_DEL_MEDIA_LICENSES_GENERAL_COMMENT" desc="A static message shown in ...
4 years, 5 months ago (2016-06-28 01:16:48 UTC) #28
msramek
browsing_data/ LGTM with a few more comments Note also that there's another CL in review ...
4 years, 5 months ago (2016-06-28 09:07:51 UTC) #29
jrummell
Updated. stevenjb@, looks like I still need your review for chrome/browser/resources/options/ and chrome/browser/ui/webui/options/ https://codereview.chromium.org/2075023002/diff/120001/chrome/app/generated_resources.grd File ...
4 years, 5 months ago (2016-06-28 18:12:47 UTC) #30
jrummell
Rebased. Had to make a minor change so that md-settings now shows the additional message ...
4 years, 5 months ago (2016-06-28 20:56:25 UTC) #32
jrummell
Updated to only display host name (without scheme) in message. stevenjb@, I still need your ...
4 years, 5 months ago (2016-06-29 18:00:08 UTC) #33
stevenjb
RS lgtm
4 years, 5 months ago (2016-06-29 23:29:32 UTC) #34
jrummell
Thanks for all the reviews.
4 years, 5 months ago (2016-06-30 00:19:55 UTC) #35
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/2075023002/240001
4 years, 5 months ago (2016-06-30 00:21:13 UTC) #38
commit-bot: I haz the power
Committed patchset #12 (id:240001)
4 years, 5 months ago (2016-06-30 00:30:54 UTC) #40
commit-bot: I haz the power
CQ bit was unchecked.
4 years, 5 months ago (2016-06-30 00:30:57 UTC) #41
commit-bot: I haz the power
4 years, 5 months ago (2016-06-30 00:33:46 UTC) #43
Message was sent while issue was closed.
Patchset 12 (id:??) landed as
https://crrev.com/bffd01243bee7c038ef6c4a92814c77176d9ebdd
Cr-Commit-Position: refs/heads/master@{#403029}

Powered by Google App Engine
This is Rietveld 408576698