| Index: chrome/browser/browsing_data/browsing_data_remover.cc
|
| diff --git a/chrome/browser/browsing_data/browsing_data_remover.cc b/chrome/browser/browsing_data/browsing_data_remover.cc
|
| index 7516298f3411e733045735b57759ab2720b101ea..97d22b77bc1641231d197ff228eb2f0161f504f7 100644
|
| --- a/chrome/browser/browsing_data/browsing_data_remover.cc
|
| +++ b/chrome/browser/browsing_data/browsing_data_remover.cc
|
| @@ -300,6 +300,8 @@
|
| content::BrowserContext* browser_context)
|
| : profile_(Profile::FromBrowserContext(browser_context)),
|
| is_removing_(false),
|
| + main_context_getter_(browser_context->GetRequestContext()),
|
| + media_context_getter_(browser_context->GetMediaRequestContext()),
|
| #if BUILDFLAG(ANDROID_JAVA_UI)
|
| webapp_registry_(new WebappRegistry()),
|
| #endif
|
| @@ -642,15 +644,16 @@
|
| UserMetricsAction("ClearBrowsingData_ChannelIDs"));
|
| // Since we are running on the UI thread don't call GetURLRequestContext().
|
| scoped_refptr<net::URLRequestContextGetter> rq_context =
|
| - content::BrowserContext::GetDefaultStoragePartition(profile_)->
|
| - GetURLRequestContext();
|
| - waiting_for_clear_channel_ids_ = true;
|
| - BrowserThread::PostTask(
|
| - BrowserThread::IO, FROM_HERE,
|
| - base::Bind(&ClearChannelIDsOnIOThread, delete_begin_, delete_end_,
|
| - std::move(rq_context),
|
| - base::Bind(&BrowsingDataRemover::OnClearedChannelIDs,
|
| - weak_ptr_factory_.GetWeakPtr())));
|
| + profile_->GetRequestContext();
|
| + if (rq_context) {
|
| + waiting_for_clear_channel_ids_ = true;
|
| + BrowserThread::PostTask(
|
| + BrowserThread::IO, FROM_HERE,
|
| + base::Bind(&ClearChannelIDsOnIOThread, delete_begin_, delete_end_,
|
| + std::move(rq_context),
|
| + base::Bind(&BrowsingDataRemover::OnClearedChannelIDs,
|
| + weak_ptr_factory_.GetWeakPtr())));
|
| + }
|
| }
|
|
|
| if (remove_mask & REMOVE_LOCAL_STORAGE) {
|
|
|