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

Unified Diff: chrome/browser/browsing_data/browsing_data_counter_utils.cc

Issue 2075023002: UI Changes to support clearing EME/CDM data (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: changes 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/browsing_data/browsing_data_counter_utils.cc
diff --git a/chrome/browser/browsing_data/browsing_data_counter_utils.cc b/chrome/browser/browsing_data/browsing_data_counter_utils.cc
index d40ee0f3c8f059c4ea39e73f49d8150c1b3f566a..fd15a2772ad5532cb92da25d704552692021ba15 100644
--- a/chrome/browser/browsing_data/browsing_data_counter_utils.cc
+++ b/chrome/browser/browsing_data/browsing_data_counter_utils.cc
@@ -5,9 +5,11 @@
#include "chrome/browser/browsing_data/browsing_data_counter_utils.h"
#include "base/command_line.h"
+#include "base/strings/utf_string_conversions.h"
#include "chrome/browser/browsing_data/autofill_counter.h"
#include "chrome/browser/browsing_data/cache_counter.h"
#include "chrome/browser/browsing_data/history_counter.h"
+#include "chrome/browser/browsing_data/media_licenses_counter.h"
#include "chrome/browser/browsing_data/passwords_counter.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/common/pref_names.h"
@@ -158,6 +160,16 @@ base::string16 GetCounterTextFromResult(
default:
NOTREACHED();
}
+ } else if (pref_name == prefs::kDeleteMediaLicenses) {
msramek 2016/06/27 14:27:33 Please add an empty line before "} else if {", as
jrummell 2016/06/28 01:16:48 Done.
+ const MediaLicenseCounter::MediaLicenseResult* media_license_result =
+ static_cast<const MediaLicenseCounter::MediaLicenseResult*>(result);
+ if (media_license_result->Value() > 0) {
+ text = l10n_util::GetStringFUTF16(
+ IDS_DEL_MEDIA_LICENSES_SITE_COMMENT,
+ base::UTF8ToUTF16(media_license_result->GetOneOrigin()));
+ } else {
+ text = l10n_util::GetStringUTF16(IDS_DEL_MEDIA_LICENSES_GENERAL_COMMENT);
+ }
}
return text;

Powered by Google App Engine
This is Rietveld 408576698