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..492d32076757d6d36969a3a05b10eef38c4cd8a1 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_license_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,15 @@ base::string16 GetCounterTextFromResult( |
default: |
NOTREACHED(); |
} |
+ } else if (pref_name == prefs::kDeleteMediaLicenses) { |
+ const MediaLicenseCounter::MediaLicenseResult* media_license_result = |
+ static_cast<const MediaLicenseCounter::MediaLicenseResult*>(result); |
+ text = (media_license_result->Value() > 0) |
+ ? l10n_util::GetStringFUTF16( |
+ IDS_DEL_CONTENT_LICENSES_SITE_COMMENT, |
+ base::UTF8ToUTF16(media_license_result->GetOneOrigin())) |
+ : l10n_util::GetStringUTF16( |
+ IDS_DEL_CONTENT_LICENSES_GENERAL_COMMENT); |
} |
return text; |