## Prevent request attempts # chrome://discards/ attempts to use d3 to display the graph --- a/chrome/browser/new_tab_page/one_google_bar/one_google_bar_loader_impl.cc +++ b/chrome/browser/new_tab_page/one_google_bar/one_google_bar_loader_impl.cc @@ -286,6 +286,7 @@ OneGoogleBarLoaderImpl::OneGoogleBarLoad OneGoogleBarLoaderImpl::~OneGoogleBarLoaderImpl() = default; void OneGoogleBarLoaderImpl::Load(OneGoogleCallback callback) { + return; callbacks_.push_back(std::move(callback)); // Note: If there is an ongoing request, abandon it. It's possible that --- a/chrome/browser/new_tab_page/promos/promo_service.cc +++ b/chrome/browser/new_tab_page/promos/promo_service.cc @@ -138,6 +138,7 @@ PromoService::PromoService( PromoService::~PromoService() = default; void PromoService::Refresh() { + return; net::NetworkTrafficAnnotationTag traffic_annotation = net::DefineNetworkTrafficAnnotation("promo_service", R"( semantics { --- a/chrome/browser/resources/discards/graph_doc_template.html +++ b/chrome/browser/resources/discards/graph_doc_template.html @@ -78,10 +78,6 @@ URL. As result, this document needs to b } - --- a/chrome/browser/search/background/ntp_background_service.cc +++ b/chrome/browser/search/background/ntp_background_service.cc @@ -83,6 +83,7 @@ void NtpBackgroundService::Shutdown() { } void NtpBackgroundService::FetchCollectionInfo() { + return; if (collections_loader_ != nullptr) return; collection_error_info_.ClearError(); --- a/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc +++ b/chrome/browser/spellchecker/spellcheck_hunspell_dictionary.cc @@ -286,6 +286,7 @@ GURL SpellcheckHunspellDictionary::GetDi } void SpellcheckHunspellDictionary::DownloadDictionary(GURL url) { + return; DCHECK_CURRENTLY_ON(BrowserThread::UI); DCHECK(browser_context_); --- a/components/assist_ranker/ranker_url_fetcher.cc +++ b/components/assist_ranker/ranker_url_fetcher.cc @@ -31,6 +31,7 @@ bool RankerURLFetcher::Request( const GURL& url, RankerURLFetcher::Callback callback, network::mojom::URLLoaderFactory* url_loader_factory) { + return false; // This function is not supposed to be called if the previous operation is not // finished. if (state_ == REQUESTING) { --- a/components/update_client/update_checker.cc +++ b/components/update_client/update_checker.cc @@ -109,6 +109,7 @@ void UpdateCheckerImpl::CheckForUpdates( const IdToComponentPtrMap& components, const base::flat_map& additional_attributes, UpdateCheckCallback update_check_callback) { + return; DCHECK(thread_checker_.CalledOnValidThread()); ids_checked_ = ids_checked;