| Index: chrome/browser/browsing_data/media_licenses_counter.cc
|
| diff --git a/chrome/browser/browsing_data/media_licenses_counter.cc b/chrome/browser/browsing_data/media_licenses_counter.cc
|
| index cd248ad469080e31a3c42b0f9523450bf1940a16..9f19f2766781f4c337a62bb85e98ff83e664e308 100644
|
| --- a/chrome/browser/browsing_data/media_licenses_counter.cc
|
| +++ b/chrome/browser/browsing_data/media_licenses_counter.cc
|
| @@ -63,6 +63,8 @@ const char* MediaLicensesCounter::GetPrefName() const {
|
|
|
| void MediaLicensesCounter::Count() {
|
| DCHECK_CURRENTLY_ON(content::BrowserThread::UI);
|
| + // Cancel existing requests.
|
| + weak_ptr_factory_.InvalidateWeakPtrs();
|
| scoped_refptr<storage::FileSystemContext> filesystem_context =
|
| make_scoped_refptr(
|
| content::BrowserContext::GetDefaultStoragePartition(profile_)
|
|
|