зеркало из https://github.com/electron/electron.git
25 строки
1.3 KiB
Diff
25 строки
1.3 KiB
Diff
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
|
From: Jeremy Apthorp <nornagon@nornagon.net>
|
|
Date: Mon, 10 Feb 2020 11:52:23 -0800
|
|
Subject: hack plugin response interceptor to point to electron
|
|
|
|
chrome's streams_private_api does prerender and other things and would
|
|
require a largeish patch to get working, so just redirect it to our
|
|
implementation instead.
|
|
|
|
diff --git a/chrome/browser/plugins/plugin_response_interceptor_url_loader_throttle.cc b/chrome/browser/plugins/plugin_response_interceptor_url_loader_throttle.cc
|
|
index ef0ffe434cbaa771425466ff3480af3d59c811f9..8582b77f6d34483602bd18245f28da2ece73854f 100644
|
|
--- a/chrome/browser/plugins/plugin_response_interceptor_url_loader_throttle.cc
|
|
+++ b/chrome/browser/plugins/plugin_response_interceptor_url_loader_throttle.cc
|
|
@@ -12,8 +12,8 @@
|
|
#include "base/numerics/safe_conversions.h"
|
|
#include "base/unguessable_token.h"
|
|
#include "base/uuid.h"
|
|
-#include "chrome/browser/extensions/api/streams_private/streams_private_api.h"
|
|
-#include "chrome/browser/plugins/plugin_utils.h"
|
|
+#include "electron/shell/browser/extensions/api/streams_private/streams_private_api.h"
|
|
+#include "electron/shell/browser/plugins/plugin_utils.h"
|
|
#include "content/public/browser/browser_task_traits.h"
|
|
#include "content/public/browser/browser_thread.h"
|
|
#include "content/public/browser/download_utils.h"
|