| Index: chrome/browser/chrome_content_browser_client.cc
|
| diff --git a/chrome/browser/chrome_content_browser_client.cc b/chrome/browser/chrome_content_browser_client.cc
|
| index 18dd4c317acea99346143bccf39206e1b75a18cc..a8622de0423b65995183a254055e1590d8277080 100644
|
| --- a/chrome/browser/chrome_content_browser_client.cc
|
| +++ b/chrome/browser/chrome_content_browser_client.cc
|
| @@ -31,6 +31,7 @@
|
| #include "chrome/browser/content_settings/host_content_settings_map.h"
|
| #include "chrome/browser/content_settings/tab_specific_content_settings.h"
|
| #include "chrome/browser/defaults.h"
|
| +#include "chrome/browser/devtools/devtools_network_controller.h"
|
| #include "chrome/browser/download/download_prefs.h"
|
| #include "chrome/browser/extensions/api/web_request/web_request_api.h"
|
| #include "chrome/browser/extensions/browser_permissions_policy_delegate.h"
|
| @@ -2385,6 +2386,16 @@ void ChromeContentBrowserClient::ClearCookies(RenderViewHost* rvh) {
|
| // BrowsingDataRemover takes care of deleting itself when done.
|
| }
|
|
|
| +void ChromeContentBrowserClient::DisableNetwork(
|
| + content::RenderViewHost* rvh,
|
| + const std::string& client_id,
|
| + bool disable_network) {
|
| + Profile* profile = Profile::FromBrowserContext(
|
| + rvh->GetSiteInstance()->GetProcess()->GetBrowserContext());
|
| + DevToolsNetworkController::DisableNetwork(
|
| + profile, client_id, disable_network);
|
| +}
|
| +
|
| base::FilePath ChromeContentBrowserClient::GetDefaultDownloadDirectory() {
|
| return DownloadPrefs::GetDefaultDownloadDirectory();
|
| }
|
|
|