From d36a6de25c850985b42274a8c4f37fff5808d3ba Mon Sep 17 00:00:00 2001 From: Jeremy Apthorp Date: Wed, 9 Jan 2019 11:27:49 -0800 Subject: [PATCH] OnCanEnablePrivacyMode -> OnForcePrivacyMode https://chromium-review.googlesource.com/c/1343051 --- atom/browser/net/atom_network_delegate.cc | 2 +- atom/browser/net/atom_network_delegate.h | 5 ++--- 2 files changed, 3 insertions(+), 4 deletions(-) diff --git a/atom/browser/net/atom_network_delegate.cc b/atom/browser/net/atom_network_delegate.cc index d1711a2e0c8d..262b25f6af14 100644 --- a/atom/browser/net/atom_network_delegate.cc +++ b/atom/browser/net/atom_network_delegate.cc @@ -419,7 +419,7 @@ bool AtomNetworkDelegate::OnCanAccessFile( return true; } -bool AtomNetworkDelegate::OnCanEnablePrivacyMode( +bool AtomNetworkDelegate::OnForcePrivacyMode( const GURL& url, const GURL& first_party_for_cookies) const { return false; diff --git a/atom/browser/net/atom_network_delegate.h b/atom/browser/net/atom_network_delegate.h index f5bf09482e38..f190509110f6 100644 --- a/atom/browser/net/atom_network_delegate.h +++ b/atom/browser/net/atom_network_delegate.h @@ -127,9 +127,8 @@ class AtomNetworkDelegate : public net::NetworkDelegate { bool OnCanAccessFile(const net::URLRequest& request, const base::FilePath& original_path, const base::FilePath& absolute_path) const override; - bool OnCanEnablePrivacyMode( - const GURL& url, - const GURL& first_party_for_cookies) const override; + bool OnForcePrivacyMode(const GURL& url, + const GURL& first_party_for_cookies) const override; bool OnAreExperimentalCookieFeaturesEnabled() const override; bool OnCancelURLRequestWithPolicyViolatingReferrerHeader( const net::URLRequest& request,