mirror of https://github.com/electron/electron
25 lines
1.3 KiB
Diff
25 lines
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 de3bf9edfd25e6defd3245f283bae1fed9151b06..5931d446f1fecd1f6c3fd05224d43ada1306fdd6 100644
|
|
--- a/chrome/browser/plugins/plugin_response_interceptor_url_loader_throttle.cc
|
|
+++ b/chrome/browser/plugins/plugin_response_interceptor_url_loader_throttle.cc
|
|
@@ -11,8 +11,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"
|