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

Unified Diff: chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc

Issue 2075023002: UI Changes to support clearing EME/CDM data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: revert options_page.css Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc
diff --git a/chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc b/chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc
index 645157c3ea5d0966cbeff76730f685ed1abd0b64..de92ed111ea939c999635c9effda29adcef9a9ec 100644
--- a/chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc
+++ b/chrome/browser/ui/webui/settings/settings_clear_browsing_data_handler.cc
@@ -18,6 +18,7 @@
#include "chrome/browser/browsing_data/downloads_counter.h"
#include "chrome/browser/browsing_data/history_counter.h"
#include "chrome/browser/browsing_data/hosted_apps_counter.h"
+#include "chrome/browser/browsing_data/media_licenses_counter.h"
#include "chrome/browser/browsing_data/passwords_counter.h"
#include "chrome/browser/history/web_history_service_factory.h"
#include "chrome/browser/sync/profile_sync_service_factory.h"
@@ -108,11 +109,8 @@ void ClearBrowsingDataHandler::HandleClearBrowsingData(
if (prefs->GetBoolean(prefs::kDeleteFormData))
remove_mask |= BrowsingDataRemover::REMOVE_FORM_DATA;
- // Clearing Content Licenses is only supported in Pepper Flash.
- if (prefs->GetBoolean(prefs::kDeauthorizeContentLicenses) &&
- prefs->GetBoolean(prefs::kPepperFlashSettingsEnabled)) {
- remove_mask |= BrowsingDataRemover::REMOVE_CONTENT_LICENSES;
- }
+ if (prefs->GetBoolean(prefs::kDeleteMediaLicenses))
+ remove_mask |= BrowsingDataRemover::REMOVE_MEDIA_LICENSES;
if (prefs->GetBoolean(prefs::kDeleteHostedAppsData)) {
remove_mask |= site_data_mask;
@@ -143,7 +141,7 @@ void ClearBrowsingDataHandler::HandleClearBrowsingData(
prefs::kDeleteCookies,
prefs::kDeleteFormData,
prefs::kDeleteHostedAppsData,
- prefs::kDeauthorizeContentLicenses,
+ prefs::kDeleteMediaLicenses,
};
static size_t num_other_types = arraysize(other_types);
int checked_other_types = std::count_if(
@@ -191,6 +189,7 @@ void ClearBrowsingDataHandler::HandleInitialize(const base::ListValue* args) {
AddCounter(base::WrapUnique(new HistoryCounter()));
AddCounter(base::WrapUnique(new HostedAppsCounter()));
AddCounter(base::WrapUnique(new PasswordsCounter()));
+ AddCounter(base::WrapUnique(new MediaLicensesCounter()));
OnStateChanged();
RefreshHistoryNotice();
« no previous file with comments | « chrome/browser/ui/webui/settings/md_settings_localized_strings_provider.cc ('k') | chrome/chrome_browser.gypi » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698