mirror of
https://bitbucket.org/chromiumembedded/cef
synced 2025-06-05 21:39:12 +02:00
Update to Chromium revision 66afc5e5 (#540276)
This commit is contained in:
@@ -1,8 +1,8 @@
|
||||
diff --git content/browser/renderer_host/browser_compositor_view_mac.h content/browser/renderer_host/browser_compositor_view_mac.h
|
||||
index 81376ab57c4b..364305777492 100644
|
||||
index dad7599ed999..c8daf2ba58c8 100644
|
||||
--- content/browser/renderer_host/browser_compositor_view_mac.h
|
||||
+++ content/browser/renderer_host/browser_compositor_view_mac.h
|
||||
@@ -51,11 +51,13 @@ class CONTENT_EXPORT BrowserCompositorMac : public DelegatedFrameHostClient {
|
||||
@@ -52,11 +52,13 @@ class CONTENT_EXPORT BrowserCompositorMac : public DelegatedFrameHostClient {
|
||||
|
||||
// These will not return nullptr until Destroy is called.
|
||||
DelegatedFrameHost* GetDelegatedFrameHost();
|
||||
@@ -17,10 +17,10 @@ index 81376ab57c4b..364305777492 100644
|
||||
void DidCreateNewRendererCompositorFrameSink(
|
||||
viz::mojom::CompositorFrameSinkClient* renderer_compositor_frame_sink);
|
||||
diff --git content/browser/renderer_host/browser_compositor_view_mac.mm content/browser/renderer_host/browser_compositor_view_mac.mm
|
||||
index 8e98fb37c1d4..8dc887eac61b 100644
|
||||
index 07d42e680951..46699b959d2d 100644
|
||||
--- content/browser/renderer_host/browser_compositor_view_mac.mm
|
||||
+++ content/browser/renderer_host/browser_compositor_view_mac.mm
|
||||
@@ -214,6 +214,12 @@ void OnCompositingShuttingDown(ui::Compositor* compositor) override {}
|
||||
@@ -215,6 +215,12 @@ void OnCompositingShuttingDown(ui::Compositor* compositor) override {}
|
||||
g_spare_recyclable_compositors.Get().clear();
|
||||
}
|
||||
|
||||
@@ -33,30 +33,22 @@ index 8e98fb37c1d4..8dc887eac61b 100644
|
||||
gfx::AcceleratedWidget BrowserCompositorMac::GetAcceleratedWidget() {
|
||||
if (recyclable_compositor_) {
|
||||
return recyclable_compositor_->accelerated_widget_mac()
|
||||
@@ -473,10 +479,16 @@ void OnCompositingShuttingDown(ui::Compositor* compositor) override {}
|
||||
NSView* ns_view =
|
||||
@@ -268,7 +274,9 @@ void OnCompositingShuttingDown(ui::Compositor* compositor) override {}
|
||||
accelerated_widget_mac_ns_view_->AcceleratedWidgetGetNSView();
|
||||
if (bounds_in_dip) {
|
||||
- NSSize dip_ns_size = [ns_view bounds].size;
|
||||
- *bounds_in_dip = gfx::Size(dip_ns_size.width, dip_ns_size.height);
|
||||
+ if (ns_view) {
|
||||
+ NSSize dip_ns_size = [ns_view bounds].size;
|
||||
+ *bounds_in_dip = gfx::Size(dip_ns_size.width, dip_ns_size.height);
|
||||
+ } else {
|
||||
+ // |ns_view| will be nullptr for CEF.
|
||||
+ *bounds_in_dip = root_layer_->bounds().size();
|
||||
+ }
|
||||
}
|
||||
if (scale_factor || color_space) {
|
||||
+ // TODO(cef): Return values from CEF callbacks here.
|
||||
display::Display display =
|
||||
display::Screen::GetScreen()->GetDisplayNearestView(ns_view);
|
||||
if (scale_factor)
|
||||
display::Display new_display =
|
||||
display::Screen::GetScreen()->GetDisplayNearestView(ns_view);
|
||||
- gfx::Size new_size_dip([ns_view bounds].size);
|
||||
+ // TODO(cef): Get display info from callbacks. |ns_view| will be nullptr.
|
||||
+ gfx::Size new_size_dip(ns_view ? gfx::Size([ns_view bounds].size) :
|
||||
+ root_layer_->bounds().size());
|
||||
if (new_size_dip == dfh_size_dip_ && new_display == dfh_display_)
|
||||
return false;
|
||||
|
||||
diff --git ui/accelerated_widget_mac/accelerated_widget_mac.mm ui/accelerated_widget_mac/accelerated_widget_mac.mm
|
||||
index 7ff59beee63c..48efe5ac93fa 100644
|
||||
index 8306398431d9..5ab4fef9ac0f 100644
|
||||
--- ui/accelerated_widget_mac/accelerated_widget_mac.mm
|
||||
+++ ui/accelerated_widget_mac/accelerated_widget_mac.mm
|
||||
@@ -66,6 +66,10 @@ - (void)setContentsChanged;
|
||||
@@ -71,6 +71,10 @@ - (void)setContentsChanged;
|
||||
DCHECK(view && !view_);
|
||||
view_ = view;
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git content/browser/browser_plugin/browser_plugin_guest.cc content/browser/browser_plugin/browser_plugin_guest.cc
|
||||
index c83e5babe405..92efd9e12561 100644
|
||||
index 593f46130e32..5f7d2fe7355d 100644
|
||||
--- content/browser/browser_plugin/browser_plugin_guest.cc
|
||||
+++ content/browser/browser_plugin/browser_plugin_guest.cc
|
||||
@@ -339,8 +339,11 @@ void BrowserPluginGuest::InitInternal(
|
||||
@@ -322,8 +322,11 @@ void BrowserPluginGuest::InitInternal(
|
||||
static_cast<WebContentsViewGuest*>(GetWebContents()->GetView());
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ index c83e5babe405..92efd9e12561 100644
|
||||
|
||||
// Once a BrowserPluginGuest has an embedder WebContents, it's considered to
|
||||
// be attached.
|
||||
@@ -836,10 +839,19 @@ void BrowserPluginGuest::OnWillAttachComplete(
|
||||
@@ -806,10 +809,19 @@ void BrowserPluginGuest::OnWillAttachComplete(
|
||||
static_cast<WebContentsViewGuest*>(GetWebContents()->GetView());
|
||||
if (!web_contents()->GetRenderViewHost()->GetWidget()->GetView()) {
|
||||
web_contents_view->CreateViewForWidget(
|
||||
@@ -37,10 +37,10 @@ index c83e5babe405..92efd9e12561 100644
|
||||
|
||||
attached_ = true;
|
||||
diff --git content/browser/frame_host/interstitial_page_impl.cc content/browser/frame_host/interstitial_page_impl.cc
|
||||
index 5a7aa396e372..8f80ed6d340c 100644
|
||||
index 7c83d2a63b2c..070982ea2298 100644
|
||||
--- content/browser/frame_host/interstitial_page_impl.cc
|
||||
+++ content/browser/frame_host/interstitial_page_impl.cc
|
||||
@@ -613,7 +613,7 @@ WebContentsView* InterstitialPageImpl::CreateWebContentsView() {
|
||||
@@ -614,7 +614,7 @@ WebContentsView* InterstitialPageImpl::CreateWebContentsView() {
|
||||
WebContentsView* wcv =
|
||||
static_cast<WebContentsImpl*>(web_contents())->GetView();
|
||||
RenderWidgetHostViewBase* view =
|
||||
@@ -50,7 +50,7 @@ index 5a7aa396e372..8f80ed6d340c 100644
|
||||
render_view_host_->GetMainFrame()->AllowBindings(
|
||||
BINDINGS_POLICY_DOM_AUTOMATION);
|
||||
diff --git content/browser/web_contents/web_contents_view.h content/browser/web_contents/web_contents_view.h
|
||||
index a38a936af6df..5380e09ee023 100644
|
||||
index cf8c74f4c744..b8cefb4b154b 100644
|
||||
--- content/browser/web_contents/web_contents_view.h
|
||||
+++ content/browser/web_contents/web_contents_view.h
|
||||
@@ -24,7 +24,7 @@ struct ScreenInfo;
|
||||
@@ -62,7 +62,7 @@ index a38a936af6df..5380e09ee023 100644
|
||||
public:
|
||||
virtual ~WebContentsView() {}
|
||||
|
||||
@@ -91,13 +91,9 @@ class WebContentsView {
|
||||
@@ -88,13 +88,9 @@ class WebContentsView {
|
||||
// Sets up the View that holds the rendered web page, receives messages for
|
||||
// it and contains page plugins. The host view should be sized to the current
|
||||
// size of the WebContents.
|
||||
@@ -79,10 +79,10 @@ index a38a936af6df..5380e09ee023 100644
|
||||
// Creates a new View that holds a popup and receives messages for it.
|
||||
virtual RenderWidgetHostViewBase* CreateViewForPopupWidget(
|
||||
diff --git content/browser/web_contents/web_contents_view_aura.cc content/browser/web_contents/web_contents_view_aura.cc
|
||||
index c5ce75e10e2b..9968d86d4d48 100644
|
||||
index 13d687ea411e..f16415faa23f 100644
|
||||
--- content/browser/web_contents/web_contents_view_aura.cc
|
||||
+++ content/browser/web_contents/web_contents_view_aura.cc
|
||||
@@ -887,7 +887,8 @@ void WebContentsViewAura::CreateView(const gfx::Size& initial_size,
|
||||
@@ -781,7 +781,8 @@ void WebContentsViewAura::CreateView(const gfx::Size& initial_size,
|
||||
}
|
||||
|
||||
RenderWidgetHostViewBase* WebContentsViewAura::CreateViewForWidget(
|
||||
@@ -92,7 +92,7 @@ index c5ce75e10e2b..9968d86d4d48 100644
|
||||
if (render_widget_host->GetView()) {
|
||||
// During testing, the view will already be set up in most cases to the
|
||||
// test view, so we don't want to clobber it with a real one. To verify that
|
||||
@@ -899,6 +900,7 @@ RenderWidgetHostViewBase* WebContentsViewAura::CreateViewForWidget(
|
||||
@@ -793,6 +794,7 @@ RenderWidgetHostViewBase* WebContentsViewAura::CreateViewForWidget(
|
||||
render_widget_host->GetView());
|
||||
}
|
||||
|
||||
@@ -101,10 +101,10 @@ index c5ce75e10e2b..9968d86d4d48 100644
|
||||
g_create_render_widget_host_view
|
||||
? g_create_render_widget_host_view(render_widget_host,
|
||||
diff --git content/browser/web_contents/web_contents_view_aura.h content/browser/web_contents/web_contents_view_aura.h
|
||||
index 534f92c4cd6a..6f2ec63f09e6 100644
|
||||
index 2371c819e665..40fa46097de1 100644
|
||||
--- content/browser/web_contents/web_contents_view_aura.h
|
||||
+++ content/browser/web_contents/web_contents_view_aura.h
|
||||
@@ -120,7 +120,7 @@ class CONTENT_EXPORT WebContentsViewAura
|
||||
@@ -114,7 +114,7 @@ class CONTENT_EXPORT WebContentsViewAura
|
||||
gfx::NativeView context) override;
|
||||
RenderWidgetHostViewBase* CreateViewForWidget(
|
||||
RenderWidgetHost* render_widget_host,
|
||||
@@ -114,10 +114,10 @@ index 534f92c4cd6a..6f2ec63f09e6 100644
|
||||
RenderWidgetHost* render_widget_host) override;
|
||||
void SetPageTitle(const base::string16& title) override;
|
||||
diff --git content/browser/web_contents/web_contents_view_child_frame.cc content/browser/web_contents/web_contents_view_child_frame.cc
|
||||
index e1db175c25cb..1ef7b20a7add 100644
|
||||
index e95c31d677f5..2e14ca1fabcf 100644
|
||||
--- content/browser/web_contents/web_contents_view_child_frame.cc
|
||||
+++ content/browser/web_contents/web_contents_view_child_frame.cc
|
||||
@@ -96,7 +96,7 @@ void WebContentsViewChildFrame::CreateView(const gfx::Size& initial_size,
|
||||
@@ -84,7 +84,7 @@ void WebContentsViewChildFrame::CreateView(const gfx::Size& initial_size,
|
||||
|
||||
RenderWidgetHostViewBase* WebContentsViewChildFrame::CreateViewForWidget(
|
||||
RenderWidgetHost* render_widget_host,
|
||||
@@ -127,10 +127,10 @@ index e1db175c25cb..1ef7b20a7add 100644
|
||||
}
|
||||
|
||||
diff --git content/browser/web_contents/web_contents_view_child_frame.h content/browser/web_contents/web_contents_view_child_frame.h
|
||||
index ca3c586f9f8f..5fd0e860a5ff 100644
|
||||
index 17275be93025..6c73effc578b 100644
|
||||
--- content/browser/web_contents/web_contents_view_child_frame.h
|
||||
+++ content/browser/web_contents/web_contents_view_child_frame.h
|
||||
@@ -41,7 +41,7 @@ class WebContentsViewChildFrame : public WebContentsView,
|
||||
@@ -40,7 +40,7 @@ class WebContentsViewChildFrame : public WebContentsView,
|
||||
gfx::NativeView context) override;
|
||||
RenderWidgetHostViewBase* CreateViewForWidget(
|
||||
RenderWidgetHost* render_widget_host,
|
||||
@@ -140,10 +140,10 @@ index ca3c586f9f8f..5fd0e860a5ff 100644
|
||||
RenderWidgetHost* render_widget_host) override;
|
||||
void SetPageTitle(const base::string16& title) override;
|
||||
diff --git content/browser/web_contents/web_contents_view_guest.cc content/browser/web_contents/web_contents_view_guest.cc
|
||||
index 227a66c7c836..f4d47bbed1a8 100644
|
||||
index 699570cc1390..0c8bb808e657 100644
|
||||
--- content/browser/web_contents/web_contents_view_guest.cc
|
||||
+++ content/browser/web_contents/web_contents_view_guest.cc
|
||||
@@ -74,6 +74,8 @@ void WebContentsViewGuest::GetScreenInfo(ScreenInfo* screen_info) const {
|
||||
@@ -67,6 +67,8 @@ gfx::NativeWindow WebContentsViewGuest::GetTopLevelNativeWindow() const {
|
||||
|
||||
void WebContentsViewGuest::OnGuestAttached(WebContentsView* parent_view) {
|
||||
#if defined(USE_AURA)
|
||||
@@ -152,16 +152,16 @@ index 227a66c7c836..f4d47bbed1a8 100644
|
||||
// In aura, ScreenPositionClient doesn't work properly if we do
|
||||
// not have the native view associated with this WebContentsViewGuest in the
|
||||
// view hierarchy. We add this view as embedder's child here.
|
||||
@@ -86,6 +88,8 @@ void WebContentsViewGuest::OnGuestAttached(WebContentsView* parent_view) {
|
||||
@@ -79,6 +81,8 @@ void WebContentsViewGuest::OnGuestAttached(WebContentsView* parent_view) {
|
||||
|
||||
void WebContentsViewGuest::OnGuestDetached(WebContentsView* old_parent_view) {
|
||||
#if defined(USE_AURA)
|
||||
+ if (!platform_view_->GetNativeView())
|
||||
+ return;
|
||||
if (!switches::IsMusHostingViz()) {
|
||||
if (!base::FeatureList::IsEnabled(features::kMash)) {
|
||||
old_parent_view->GetNativeView()->RemoveChild(
|
||||
platform_view_->GetNativeView());
|
||||
@@ -139,7 +143,8 @@ void WebContentsViewGuest::CreateView(const gfx::Size& initial_size,
|
||||
@@ -132,7 +136,8 @@ void WebContentsViewGuest::CreateView(const gfx::Size& initial_size,
|
||||
}
|
||||
|
||||
RenderWidgetHostViewBase* WebContentsViewGuest::CreateViewForWidget(
|
||||
@@ -171,7 +171,7 @@ index 227a66c7c836..f4d47bbed1a8 100644
|
||||
if (render_widget_host->GetView()) {
|
||||
// During testing, the view will already be set up in most cases to the
|
||||
// test view, so we don't want to clobber it with a real one. To verify that
|
||||
@@ -151,11 +156,19 @@ RenderWidgetHostViewBase* WebContentsViewGuest::CreateViewForWidget(
|
||||
@@ -144,11 +149,19 @@ RenderWidgetHostViewBase* WebContentsViewGuest::CreateViewForWidget(
|
||||
render_widget_host->GetView());
|
||||
}
|
||||
|
||||
@@ -195,10 +195,10 @@ index 227a66c7c836..f4d47bbed1a8 100644
|
||||
|
||||
RenderWidgetHostViewBase* WebContentsViewGuest::CreateViewForPopupWidget(
|
||||
diff --git content/browser/web_contents/web_contents_view_guest.h content/browser/web_contents/web_contents_view_guest.h
|
||||
index c04fe9bc23c4..5dba7a8b9e76 100644
|
||||
index 4a06fe5f6880..ecad941c2638 100644
|
||||
--- content/browser/web_contents/web_contents_view_guest.h
|
||||
+++ content/browser/web_contents/web_contents_view_guest.h
|
||||
@@ -59,7 +59,7 @@ class WebContentsViewGuest : public WebContentsView,
|
||||
@@ -58,7 +58,7 @@ class WebContentsViewGuest : public WebContentsView,
|
||||
gfx::NativeView context) override;
|
||||
RenderWidgetHostViewBase* CreateViewForWidget(
|
||||
RenderWidgetHost* render_widget_host,
|
||||
@@ -208,10 +208,10 @@ index c04fe9bc23c4..5dba7a8b9e76 100644
|
||||
RenderWidgetHost* render_widget_host) override;
|
||||
void SetPageTitle(const base::string16& title) override;
|
||||
diff --git content/browser/web_contents/web_contents_view_mac.h content/browser/web_contents/web_contents_view_mac.h
|
||||
index 95ba5f05e4f7..39d4d764136c 100644
|
||||
index 968c5157ab41..22aad9fbafa4 100644
|
||||
--- content/browser/web_contents/web_contents_view_mac.h
|
||||
+++ content/browser/web_contents/web_contents_view_mac.h
|
||||
@@ -90,7 +90,7 @@ class WebContentsViewMac : public WebContentsView,
|
||||
@@ -89,7 +89,7 @@ class WebContentsViewMac : public WebContentsView,
|
||||
gfx::NativeView context) override;
|
||||
RenderWidgetHostViewBase* CreateViewForWidget(
|
||||
RenderWidgetHost* render_widget_host,
|
||||
@@ -221,10 +221,10 @@ index 95ba5f05e4f7..39d4d764136c 100644
|
||||
RenderWidgetHost* render_widget_host) override;
|
||||
void SetPageTitle(const base::string16& title) override;
|
||||
diff --git content/browser/web_contents/web_contents_view_mac.mm content/browser/web_contents/web_contents_view_mac.mm
|
||||
index 2c5dd9e99e6d..39d6bceb55ed 100644
|
||||
index 6a9ee15776b6..e4872d47e3d2 100644
|
||||
--- content/browser/web_contents/web_contents_view_mac.mm
|
||||
+++ content/browser/web_contents/web_contents_view_mac.mm
|
||||
@@ -376,7 +376,8 @@ void WebContentsViewMac::CreateView(
|
||||
@@ -346,7 +346,8 @@ void WebContentsViewMac::CreateView(
|
||||
}
|
||||
|
||||
RenderWidgetHostViewBase* WebContentsViewMac::CreateViewForWidget(
|
||||
@@ -234,7 +234,7 @@ index 2c5dd9e99e6d..39d6bceb55ed 100644
|
||||
if (render_widget_host->GetView()) {
|
||||
// During testing, the view will already be set up in most cases to the
|
||||
// test view, so we don't want to clobber it with a real one. To verify that
|
||||
@@ -388,6 +389,7 @@ RenderWidgetHostViewBase* WebContentsViewMac::CreateViewForWidget(
|
||||
@@ -358,6 +359,7 @@ RenderWidgetHostViewBase* WebContentsViewMac::CreateViewForWidget(
|
||||
render_widget_host->GetView());
|
||||
}
|
||||
|
||||
@@ -243,7 +243,7 @@ index 2c5dd9e99e6d..39d6bceb55ed 100644
|
||||
g_create_render_widget_host_view
|
||||
? g_create_render_widget_host_view(render_widget_host,
|
||||
diff --git content/public/browser/browser_plugin_guest_delegate.h content/public/browser/browser_plugin_guest_delegate.h
|
||||
index 9a3c2375c7f6..f95ea9cbe9ba 100644
|
||||
index d05dd5421458..fa13775f0512 100644
|
||||
--- content/public/browser/browser_plugin_guest_delegate.h
|
||||
+++ content/public/browser/browser_plugin_guest_delegate.h
|
||||
@@ -19,6 +19,7 @@ namespace content {
|
||||
@@ -262,9 +262,9 @@ index 9a3c2375c7f6..f95ea9cbe9ba 100644
|
||||
+ virtual void OnGuestAttached(content::WebContentsView* parent_view) {}
|
||||
+ virtual void OnGuestDetached(content::WebContentsView* parent_view) {}
|
||||
+
|
||||
// Sets the position of the context menu for the guest contents. The value
|
||||
// reported from the guest renderer should be ignored. The reported value
|
||||
// from the guest renderer is incorrect in situations where BrowserPlugin is
|
||||
// TODO(ekaramad): A short workaround to force some types of guests to use
|
||||
// a BrowserPlugin even when we are using cross process frames for guests. It
|
||||
// should be removed after resolving https://crbug.com/642826).
|
||||
diff --git extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc
|
||||
index 6f2b56d0cd90..ec6f15c0a789 100644
|
||||
--- extensions/browser/guest_view/mime_handler_view/mime_handler_view_guest.cc
|
||||
|
@@ -1,24 +1,24 @@
|
||||
diff --git chrome/browser/BUILD.gn chrome/browser/BUILD.gn
|
||||
index 472d5ea34687..575960cb4a37 100644
|
||||
index ac49d3b83913..69696c72d0f3 100644
|
||||
--- chrome/browser/BUILD.gn
|
||||
+++ chrome/browser/BUILD.gn
|
||||
@@ -7,6 +7,7 @@ import("//build/config/crypto.gni")
|
||||
import("//build/config/features.gni")
|
||||
@@ -8,6 +8,7 @@ import("//build/config/features.gni")
|
||||
import("//build/config/jumbo.gni")
|
||||
import("//build/config/ui.gni")
|
||||
import("//build/split_static_library.gni")
|
||||
+import("//cef/libcef/features/features.gni")
|
||||
import("//chrome/common/features.gni")
|
||||
import("//components/feature_engagement/features.gni")
|
||||
import("//components/nacl/features.gni")
|
||||
@@ -1586,6 +1587,7 @@ split_static_library("browser") {
|
||||
@@ -1591,6 +1592,7 @@ jumbo_split_static_library("browser") {
|
||||
"//base:i18n",
|
||||
"//base/allocator:features",
|
||||
"//base/allocator:buildflags",
|
||||
"//cc",
|
||||
+ "//cef/libcef/features",
|
||||
"//chrome:extra_resources",
|
||||
"//chrome:resources",
|
||||
"//chrome:strings",
|
||||
@@ -1837,6 +1839,10 @@ split_static_library("browser") {
|
||||
@@ -1845,6 +1847,10 @@ jumbo_split_static_library("browser") {
|
||||
"//ui/web_dialogs",
|
||||
]
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
diff --git chrome/browser/content_settings/host_content_settings_map_factory.cc chrome/browser/content_settings/host_content_settings_map_factory.cc
|
||||
index 7bb265a57ba4..6917d09be48a 100644
|
||||
index 2e8e68563c3c..54a1834c6055 100644
|
||||
--- chrome/browser/content_settings/host_content_settings_map_factory.cc
|
||||
+++ chrome/browser/content_settings/host_content_settings_map_factory.cc
|
||||
@@ -7,6 +7,7 @@
|
||||
@@ -36,8 +36,8 @@ index 7bb265a57ba4..6917d09be48a 100644
|
||||
#endif
|
||||
}
|
||||
|
||||
@@ -88,9 +99,15 @@ scoped_refptr<RefcountedKeyedService>
|
||||
store_last_modified));
|
||||
@@ -86,9 +97,15 @@ scoped_refptr<RefcountedKeyedService>
|
||||
/*store_last_modified=*/true));
|
||||
|
||||
#if BUILDFLAG(ENABLE_EXTENSIONS)
|
||||
+#if BUILDFLAG(ENABLE_CEF)
|
||||
|
@@ -71,7 +71,7 @@ index e8e76ce5b954..1dd338dd0142 100644
|
||||
content::BrowserContext* GetBrowserContextRedirectedInIncognito(
|
||||
content::BrowserContext* context);
|
||||
diff --git chrome/browser/profiles/profile_manager.cc chrome/browser/profiles/profile_manager.cc
|
||||
index c5ab3d4e4d7a..69f54123f2cc 100644
|
||||
index 06cc4ca5c59c..a610360829d8 100644
|
||||
--- chrome/browser/profiles/profile_manager.cc
|
||||
+++ chrome/browser/profiles/profile_manager.cc
|
||||
@@ -377,7 +377,7 @@ ProfileManager::ProfileManager(const base::FilePath& user_data_dir)
|
||||
@@ -84,7 +84,7 @@ index c5ab3d4e4d7a..69f54123f2cc 100644
|
||||
this));
|
||||
}
|
||||
diff --git chrome/browser/profiles/profile_manager.h chrome/browser/profiles/profile_manager.h
|
||||
index 9c410dc3ba6d..219d42503fa7 100644
|
||||
index 95d20f01a062..96834378f487 100644
|
||||
--- chrome/browser/profiles/profile_manager.h
|
||||
+++ chrome/browser/profiles/profile_manager.h
|
||||
@@ -93,7 +93,7 @@ class ProfileManager : public content::NotificationObserver,
|
||||
|
@@ -1,5 +1,5 @@
|
||||
diff --git chrome/browser/plugins/plugin_info_host_impl.cc chrome/browser/plugins/plugin_info_host_impl.cc
|
||||
index 312e27d1b562..03eb1fda05cb 100644
|
||||
index ab3fd0de9e07..298db88e685f 100644
|
||||
--- chrome/browser/plugins/plugin_info_host_impl.cc
|
||||
+++ chrome/browser/plugins/plugin_info_host_impl.cc
|
||||
@@ -17,6 +17,7 @@
|
||||
@@ -157,10 +157,10 @@ index 312e27d1b562..03eb1fda05cb 100644
|
||||
// If we broke out of the loop, we have found an enabled plugin.
|
||||
bool enabled = i < matching_plugins.size();
|
||||
diff --git chrome/renderer/chrome_content_renderer_client.cc chrome/renderer/chrome_content_renderer_client.cc
|
||||
index 47aceed2a513..2f1dae33e865 100644
|
||||
index 700886c6ce89..8a47ec9f91a3 100644
|
||||
--- chrome/renderer/chrome_content_renderer_client.cc
|
||||
+++ chrome/renderer/chrome_content_renderer_client.cc
|
||||
@@ -795,6 +795,7 @@ WebPlugin* ChromeContentRendererClient::CreatePlugin(
|
||||
@@ -774,6 +774,7 @@ WebPlugin* ChromeContentRendererClient::CreatePlugin(
|
||||
|
||||
if ((status == chrome::mojom::PluginStatus::kUnauthorized ||
|
||||
status == chrome::mojom::PluginStatus::kBlocked) &&
|
||||
@@ -168,7 +168,7 @@ index 47aceed2a513..2f1dae33e865 100644
|
||||
observer->IsPluginTemporarilyAllowed(identifier)) {
|
||||
status = chrome::mojom::PluginStatus::kAllowed;
|
||||
}
|
||||
@@ -982,7 +983,8 @@ WebPlugin* ChromeContentRendererClient::CreatePlugin(
|
||||
@@ -961,7 +962,8 @@ WebPlugin* ChromeContentRendererClient::CreatePlugin(
|
||||
render_frame->GetRemoteAssociatedInterfaces()->GetInterface(
|
||||
&plugin_auth_host);
|
||||
plugin_auth_host->BlockedUnauthorizedPlugin(group_name, identifier);
|
||||
@@ -178,7 +178,7 @@ index 47aceed2a513..2f1dae33e865 100644
|
||||
break;
|
||||
}
|
||||
case chrome::mojom::PluginStatus::kBlocked: {
|
||||
@@ -991,7 +993,8 @@ WebPlugin* ChromeContentRendererClient::CreatePlugin(
|
||||
@@ -970,7 +972,8 @@ WebPlugin* ChromeContentRendererClient::CreatePlugin(
|
||||
l10n_util::GetStringFUTF16(IDS_PLUGIN_BLOCKED, group_name));
|
||||
placeholder->AllowLoading();
|
||||
RenderThread::Get()->RecordAction(UserMetricsAction("Plugin_Blocked"));
|
||||
@@ -188,7 +188,7 @@ index 47aceed2a513..2f1dae33e865 100644
|
||||
break;
|
||||
}
|
||||
case chrome::mojom::PluginStatus::kBlockedByPolicy: {
|
||||
@@ -1001,7 +1004,8 @@ WebPlugin* ChromeContentRendererClient::CreatePlugin(
|
||||
@@ -980,7 +983,8 @@ WebPlugin* ChromeContentRendererClient::CreatePlugin(
|
||||
group_name));
|
||||
RenderThread::Get()->RecordAction(
|
||||
UserMetricsAction("Plugin_BlockedByPolicy"));
|
||||
@@ -198,7 +198,7 @@ index 47aceed2a513..2f1dae33e865 100644
|
||||
break;
|
||||
}
|
||||
case chrome::mojom::PluginStatus::kBlockedNoLoading: {
|
||||
@@ -1009,7 +1013,8 @@ WebPlugin* ChromeContentRendererClient::CreatePlugin(
|
||||
@@ -988,7 +992,8 @@ WebPlugin* ChromeContentRendererClient::CreatePlugin(
|
||||
IDR_BLOCKED_PLUGIN_HTML,
|
||||
l10n_util::GetStringFUTF16(IDS_PLUGIN_BLOCKED_NO_LOADING,
|
||||
group_name));
|
||||
@@ -209,7 +209,7 @@ index 47aceed2a513..2f1dae33e865 100644
|
||||
}
|
||||
case chrome::mojom::PluginStatus::kComponentUpdateRequired: {
|
||||
diff --git chrome/renderer/plugins/chrome_plugin_placeholder.cc chrome/renderer/plugins/chrome_plugin_placeholder.cc
|
||||
index 63b86138b4fe..4ed38c132efb 100644
|
||||
index 6bc73727e61b..4f84ab989060 100644
|
||||
--- chrome/renderer/plugins/chrome_plugin_placeholder.cc
|
||||
+++ chrome/renderer/plugins/chrome_plugin_placeholder.cc
|
||||
@@ -350,8 +350,11 @@ void ChromePluginPlaceholder::OnBlockedContent(
|
||||
|
@@ -1,5 +1,5 @@
|
||||
diff --git chrome/renderer/BUILD.gn chrome/renderer/BUILD.gn
|
||||
index 3f68c173d1c2..3906f588c7c2 100644
|
||||
index 1ec9a536a378..8ab180c18d8e 100644
|
||||
--- chrome/renderer/BUILD.gn
|
||||
+++ chrome/renderer/BUILD.gn
|
||||
@@ -3,6 +3,7 @@
|
||||
|
@@ -1,5 +1,5 @@
|
||||
diff --git chrome/common/chrome_content_client.cc chrome/common/chrome_content_client.cc
|
||||
index 3c0ce2e2f701..7b078635d3b9 100644
|
||||
index 750df2f7fbbe..5b46bb127102 100644
|
||||
--- chrome/common/chrome_content_client.cc
|
||||
+++ chrome/common/chrome_content_client.cc
|
||||
@@ -91,7 +91,8 @@
|
||||
|
@@ -13,7 +13,7 @@ index 4393a8fac233..860715e86900 100644
|
||||
explicit ContentServiceManagerMainDelegate(const ContentMainParams& params);
|
||||
~ContentServiceManagerMainDelegate() override;
|
||||
diff --git third_party/WebKit/Source/controller/BUILD.gn third_party/WebKit/Source/controller/BUILD.gn
|
||||
index d10cff4a0fdd..89673c9c5250 100644
|
||||
index 67afa8b0bcef..20591788d173 100644
|
||||
--- third_party/WebKit/Source/controller/BUILD.gn
|
||||
+++ third_party/WebKit/Source/controller/BUILD.gn
|
||||
@@ -25,6 +25,7 @@ component("controller") {
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git content/browser/compositor/gpu_process_transport_factory.cc content/browser/compositor/gpu_process_transport_factory.cc
|
||||
index 33b9aa78462d..0653e11dbef1 100644
|
||||
index b40de2a2910a..da20699a5d64 100644
|
||||
--- content/browser/compositor/gpu_process_transport_factory.cc
|
||||
+++ content/browser/compositor/gpu_process_transport_factory.cc
|
||||
@@ -491,9 +491,19 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
|
||||
@@ -492,9 +492,19 @@ void GpuProcessTransportFactory::EstablishedGpuChannel(
|
||||
// surfaces as they are not following the correct mode.
|
||||
DisableGpuCompositing(compositor.get());
|
||||
}
|
||||
@@ -24,18 +24,18 @@ index 33b9aa78462d..0653e11dbef1 100644
|
||||
} else {
|
||||
DCHECK(context_provider);
|
||||
diff --git ui/compositor/compositor.h ui/compositor/compositor.h
|
||||
index eb56a103f8cb..ec2a44f1f5d0 100644
|
||||
index 78b361460638..bbde6e19916d 100644
|
||||
--- ui/compositor/compositor.h
|
||||
+++ ui/compositor/compositor.h
|
||||
@@ -24,6 +24,7 @@
|
||||
#include "components/viz/common/surfaces/frame_sink_id.h"
|
||||
#include "components/viz/common/surfaces/local_surface_id.h"
|
||||
#include "components/viz/common/surfaces/surface_sequence.h"
|
||||
#include "components/viz/host/host_frame_sink_client.h"
|
||||
+#include "components/viz/service/display/software_output_device.h"
|
||||
#include "third_party/skia/include/core/SkColor.h"
|
||||
#include "third_party/skia/include/core/SkMatrix44.h"
|
||||
#include "ui/compositor/compositor_animation_observer.h"
|
||||
@@ -186,6 +187,17 @@ class COMPOSITOR_EXPORT ContextFactory {
|
||||
@@ -182,6 +183,17 @@ class COMPOSITOR_EXPORT ContextFactory {
|
||||
virtual void RemoveObserver(ContextFactoryObserver* observer) = 0;
|
||||
};
|
||||
|
||||
@@ -53,7 +53,7 @@ index eb56a103f8cb..ec2a44f1f5d0 100644
|
||||
// Compositor object to take care of GPU painting.
|
||||
// A Browser compositor object is responsible for generating the final
|
||||
// displayable form of pixels comprising a single widget's contents. It draws an
|
||||
@@ -225,6 +237,9 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||
@@ -221,6 +233,9 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||
// Schedules a redraw of the layer tree associated with this compositor.
|
||||
void ScheduleDraw();
|
||||
|
||||
@@ -63,7 +63,7 @@ index eb56a103f8cb..ec2a44f1f5d0 100644
|
||||
// Sets the root of the layer tree drawn by this Compositor. The root layer
|
||||
// must have no parent. The compositor's root layer is reset if the root layer
|
||||
// is destroyed. NULL can be passed to reset the root layer, in which case the
|
||||
@@ -445,6 +460,8 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||
@@ -441,6 +456,8 @@ class COMPOSITOR_EXPORT Compositor : public cc::LayerTreeHostClient,
|
||||
ui::ContextFactory* context_factory_;
|
||||
ui::ContextFactoryPrivate* context_factory_private_;
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git chrome/browser/download/download_target_determiner.cc chrome/browser/download/download_target_determiner.cc
|
||||
index 4f4dadd98fd9..840c1df997dd 100644
|
||||
index 03ca8ad55078..0899131ab154 100644
|
||||
--- chrome/browser/download/download_target_determiner.cc
|
||||
+++ chrome/browser/download/download_target_determiner.cc
|
||||
@@ -539,8 +539,8 @@ void IsHandledBySafePlugin(content::ResourceContext* resource_context,
|
||||
@@ -540,8 +540,8 @@ void IsHandledBySafePlugin(content::ResourceContext* resource_context,
|
||||
content::PluginService* plugin_service =
|
||||
content::PluginService::GetInstance();
|
||||
bool plugin_found = plugin_service->GetPluginInfo(
|
||||
@@ -14,10 +14,10 @@ index 4f4dadd98fd9..840c1df997dd 100644
|
||||
// The GetPlugins call causes the plugin list to be refreshed. Once that's
|
||||
// done we can retry the GetPluginInfo call. We break out of this cycle
|
||||
diff --git chrome/browser/plugins/chrome_plugin_service_filter.cc chrome/browser/plugins/chrome_plugin_service_filter.cc
|
||||
index 5b07f3a407bf..7dffe84fc17c 100644
|
||||
index 8e6ef99239ab..24ceaf229702 100644
|
||||
--- chrome/browser/plugins/chrome_plugin_service_filter.cc
|
||||
+++ chrome/browser/plugins/chrome_plugin_service_filter.cc
|
||||
@@ -169,6 +169,7 @@ bool ChromePluginServiceFilter::IsPluginAvailable(
|
||||
@@ -178,6 +178,7 @@ bool ChromePluginServiceFilter::IsPluginAvailable(
|
||||
int render_frame_id,
|
||||
const void* context,
|
||||
const GURL& plugin_content_url,
|
||||
@@ -38,7 +38,7 @@ index 133145db74bf..021ab307ee2a 100644
|
||||
content::WebPluginInfo* plugin) override;
|
||||
|
||||
diff --git chrome/browser/plugins/pdf_iframe_navigation_throttle.cc chrome/browser/plugins/pdf_iframe_navigation_throttle.cc
|
||||
index 8027836d925e..71f8d5a3f9dc 100644
|
||||
index 3b0948c90a00..f0fb3b5d9d55 100644
|
||||
--- chrome/browser/plugins/pdf_iframe_navigation_throttle.cc
|
||||
+++ chrome/browser/plugins/pdf_iframe_navigation_throttle.cc
|
||||
@@ -53,7 +53,7 @@ PDFIFrameNavigationThrottle::MaybeCreateThrottleFor(
|
||||
@@ -51,10 +51,10 @@ index 8027836d925e..71f8d5a3f9dc 100644
|
||||
return nullptr;
|
||||
}
|
||||
diff --git chrome/browser/ui/cocoa/drag_util.mm chrome/browser/ui/cocoa/drag_util.mm
|
||||
index 6a2122ee1ed7..68831894695a 100644
|
||||
index b1a49f718226..cb56c9fd4765 100644
|
||||
--- chrome/browser/ui/cocoa/drag_util.mm
|
||||
+++ chrome/browser/ui/cocoa/drag_util.mm
|
||||
@@ -54,7 +54,7 @@ BOOL IsSupportedFileURL(Profile* profile, const GURL& url) {
|
||||
@@ -51,7 +51,7 @@ BOOL IsSupportedFileURL(Profile* profile, const GURL& url) {
|
||||
return PluginService::GetInstance()->GetPluginInfo(
|
||||
-1, // process ID
|
||||
MSG_ROUTING_NONE, // routing ID
|
||||
@@ -64,10 +64,10 @@ index 6a2122ee1ed7..68831894695a 100644
|
||||
}
|
||||
|
||||
diff --git chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
|
||||
index fcbea93113dd..0cd61aaf0aae 100644
|
||||
index f4eb41e948bb..7e47a184d8c0 100644
|
||||
--- chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
|
||||
+++ chrome/browser/ui/views/tabs/browser_tab_strip_controller.cc
|
||||
@@ -596,6 +596,6 @@ void BrowserTabStripController::OnFindURLMimeTypeCompleted(
|
||||
@@ -601,6 +601,6 @@ void BrowserTabStripController::OnFindURLMimeTypeCompleted(
|
||||
content::PluginService::GetInstance()->GetPluginInfo(
|
||||
-1, // process ID
|
||||
MSG_ROUTING_NONE, // routing ID
|
||||
@@ -76,10 +76,10 @@ index fcbea93113dd..0cd61aaf0aae 100644
|
||||
mime_type, false, NULL, &plugin, NULL));
|
||||
}
|
||||
diff --git content/browser/frame_host/navigation_handle_impl.cc content/browser/frame_host/navigation_handle_impl.cc
|
||||
index 89a41274745c..586864a9d827 100644
|
||||
index 2986bf0e340e..6ef8486960ce 100644
|
||||
--- content/browser/frame_host/navigation_handle_impl.cc
|
||||
+++ content/browser/frame_host/navigation_handle_impl.cc
|
||||
@@ -325,12 +325,6 @@ net::Error NavigationHandleImpl::GetNetErrorCode() {
|
||||
@@ -368,12 +368,6 @@ net::Error NavigationHandleImpl::GetNetErrorCode() {
|
||||
}
|
||||
|
||||
RenderFrameHostImpl* NavigationHandleImpl::GetRenderFrameHost() {
|
||||
@@ -93,21 +93,34 @@ index 89a41274745c..586864a9d827 100644
|
||||
}
|
||||
|
||||
diff --git content/browser/frame_host/render_frame_host_impl.cc content/browser/frame_host/render_frame_host_impl.cc
|
||||
index fc3412cb2680..385a7c591689 100644
|
||||
index 1f566ef1f437..cffef1c8a2f2 100644
|
||||
--- content/browser/frame_host/render_frame_host_impl.cc
|
||||
+++ content/browser/frame_host/render_frame_host_impl.cc
|
||||
@@ -1499,6 +1499,7 @@ void RenderFrameHostImpl::OnDidFailProvisionalLoadWithError(
|
||||
if (navigation_handle_) {
|
||||
navigation_handle_->set_net_error_code(
|
||||
@@ -1527,6 +1527,7 @@ void RenderFrameHostImpl::OnDidFailProvisionalLoadWithError(
|
||||
if (GetNavigationHandle()) {
|
||||
GetNavigationHandle()->set_net_error_code(
|
||||
static_cast<net::Error>(params.error_code));
|
||||
+ navigation_handle_->set_render_frame_host(this);
|
||||
+ GetNavigationHandle()->set_render_frame_host(this);
|
||||
}
|
||||
|
||||
frame_tree_node_->navigator()->DidFailProvisionalLoadWithError(this, params);
|
||||
@@ -3515,9 +3516,9 @@ void RenderFrameHostImpl::CommitNavigation(
|
||||
@@ -3269,9 +3270,9 @@ void RenderFrameHostImpl::RegisterMojoInterfaces() {
|
||||
&QuotaDispatcherHost::CreateForFrame, GetProcess(), routing_id_));
|
||||
|
||||
if (base::FeatureList::IsEnabled(network::features::kNetworkService)) {
|
||||
- StoragePartitionImpl* storage_partition =
|
||||
- static_cast<StoragePartitionImpl*>(BrowserContext::GetStoragePartition(
|
||||
- GetSiteInstance()->GetBrowserContext(), GetSiteInstance()));
|
||||
+ StoragePartition* storage_partition =
|
||||
+ BrowserContext::GetStoragePartition(
|
||||
+ GetSiteInstance()->GetBrowserContext(), GetSiteInstance());
|
||||
// TODO(https://crbug.com/813479): Investigate why we need to explicitly
|
||||
// specify task runner for BrowserThread::IO here.
|
||||
// Bind calls to the BindRegistry should come on to the IO thread by
|
||||
@@ -3545,9 +3546,9 @@ void RenderFrameHostImpl::CommitNavigation(
|
||||
// however only do this for cross-document navigations, because the
|
||||
// alternative would be redundant effort.
|
||||
network::mojom::URLLoaderFactoryPtr default_factory;
|
||||
network::mojom::URLLoaderFactoryPtrInfo default_factory_info;
|
||||
- StoragePartitionImpl* storage_partition =
|
||||
- static_cast<StoragePartitionImpl*>(BrowserContext::GetStoragePartition(
|
||||
- GetSiteInstance()->GetBrowserContext(), GetSiteInstance()));
|
||||
@@ -117,24 +130,22 @@ index fc3412cb2680..385a7c591689 100644
|
||||
if (subresource_loader_params &&
|
||||
subresource_loader_params->loader_factory_info.is_valid()) {
|
||||
// If the caller has supplied a default URLLoaderFactory override (for
|
||||
@@ -3652,9 +3653,9 @@ void RenderFrameHostImpl::FailedNavigation(
|
||||
// completing an unload handler.
|
||||
ResetWaitingState();
|
||||
|
||||
- StoragePartitionImpl* storage_partition =
|
||||
- static_cast<StoragePartitionImpl*>(BrowserContext::GetStoragePartition(
|
||||
- GetSiteInstance()->GetBrowserContext(), GetSiteInstance()));
|
||||
@@ -4162,8 +4163,8 @@ void RenderFrameHostImpl::CreateNetworkServiceDefaultFactoryAndObserve(
|
||||
auto* context = GetSiteInstance()->GetBrowserContext();
|
||||
GetContentClient()->browser()->WillCreateURLLoaderFactory(
|
||||
this, false /* is_navigation */, &default_factory_request);
|
||||
- StoragePartitionImpl* storage_partition = static_cast<StoragePartitionImpl*>(
|
||||
- BrowserContext::GetStoragePartition(context, GetSiteInstance()));
|
||||
+ StoragePartition* storage_partition =
|
||||
+ BrowserContext::GetStoragePartition(
|
||||
+ GetSiteInstance()->GetBrowserContext(), GetSiteInstance());
|
||||
|
||||
network::mojom::URLLoaderFactoryPtr default_factory;
|
||||
if (g_url_loader_factory_callback_for_test.Get().is_null()) {
|
||||
+ BrowserContext::GetStoragePartition(context, GetSiteInstance());
|
||||
if (g_create_network_factory_callback_for_test.Get().is_null()) {
|
||||
storage_partition->GetNetworkContext()->CreateURLLoaderFactory(
|
||||
std::move(default_factory_request), GetProcess()->GetID());
|
||||
diff --git content/browser/frame_host/render_frame_message_filter.cc content/browser/frame_host/render_frame_message_filter.cc
|
||||
index 6e105e13b6c5..99815c49cbc1 100644
|
||||
index b3653373a51f..6db0652284ec 100644
|
||||
--- content/browser/frame_host/render_frame_message_filter.cc
|
||||
+++ content/browser/frame_host/render_frame_message_filter.cc
|
||||
@@ -540,6 +540,7 @@ void RenderFrameMessageFilter::GetCookies(int render_frame_id,
|
||||
@@ -546,6 +546,7 @@ void RenderFrameMessageFilter::GetCookies(int render_frame_id,
|
||||
|
||||
void RenderFrameMessageFilter::OnGetPlugins(
|
||||
bool refresh,
|
||||
@@ -142,7 +153,7 @@ index 6e105e13b6c5..99815c49cbc1 100644
|
||||
const url::Origin& main_frame_origin,
|
||||
IPC::Message* reply_msg) {
|
||||
// Don't refresh if the specified threshold has not been passed. Note that
|
||||
@@ -561,18 +562,19 @@ void RenderFrameMessageFilter::OnGetPlugins(
|
||||
@@ -567,18 +568,19 @@ void RenderFrameMessageFilter::OnGetPlugins(
|
||||
|
||||
PluginServiceImpl::GetInstance()->GetPlugins(
|
||||
base::BindOnce(&RenderFrameMessageFilter::GetPluginsCallback, this,
|
||||
@@ -164,7 +175,7 @@ index 6e105e13b6c5..99815c49cbc1 100644
|
||||
int routing_id = MSG_ROUTING_NONE;
|
||||
// In this loop, copy the WebPluginInfo (and do not use a reference) because
|
||||
// the filter might mutate it.
|
||||
@@ -581,7 +583,7 @@ void RenderFrameMessageFilter::GetPluginsCallback(
|
||||
@@ -587,7 +589,7 @@ void RenderFrameMessageFilter::GetPluginsCallback(
|
||||
if (!filter ||
|
||||
filter->IsPluginAvailable(child_process_id, routing_id,
|
||||
resource_context_, main_frame_origin.GetURL(),
|
||||
@@ -173,7 +184,7 @@ index 6e105e13b6c5..99815c49cbc1 100644
|
||||
plugins.push_back(plugin);
|
||||
}
|
||||
}
|
||||
@@ -593,6 +595,7 @@ void RenderFrameMessageFilter::GetPluginsCallback(
|
||||
@@ -599,6 +601,7 @@ void RenderFrameMessageFilter::GetPluginsCallback(
|
||||
void RenderFrameMessageFilter::OnGetPluginInfo(
|
||||
int render_frame_id,
|
||||
const GURL& url,
|
||||
@@ -181,7 +192,7 @@ index 6e105e13b6c5..99815c49cbc1 100644
|
||||
const url::Origin& main_frame_origin,
|
||||
const std::string& mime_type,
|
||||
bool* found,
|
||||
@@ -601,8 +604,8 @@ void RenderFrameMessageFilter::OnGetPluginInfo(
|
||||
@@ -607,8 +610,8 @@ void RenderFrameMessageFilter::OnGetPluginInfo(
|
||||
bool allow_wildcard = true;
|
||||
*found = plugin_service_->GetPluginInfo(
|
||||
render_process_id_, render_frame_id, resource_context_, url,
|
||||
@@ -193,7 +204,7 @@ index 6e105e13b6c5..99815c49cbc1 100644
|
||||
|
||||
void RenderFrameMessageFilter::OnOpenChannelToPepperPlugin(
|
||||
diff --git content/browser/frame_host/render_frame_message_filter.h content/browser/frame_host/render_frame_message_filter.h
|
||||
index 8c3371209034..ae382bf750c0 100644
|
||||
index db9398a07607..ce062d8a9ccd 100644
|
||||
--- content/browser/frame_host/render_frame_message_filter.h
|
||||
+++ content/browser/frame_host/render_frame_message_filter.h
|
||||
@@ -136,13 +136,16 @@ class CONTENT_EXPORT RenderFrameMessageFilter
|
||||
@@ -214,10 +225,10 @@ index 8c3371209034..ae382bf750c0 100644
|
||||
const std::string& mime_type,
|
||||
bool* found,
|
||||
diff --git content/browser/loader/mime_sniffing_resource_handler.cc content/browser/loader/mime_sniffing_resource_handler.cc
|
||||
index f951a3fd5cad..4740a49d4d38 100644
|
||||
index a9322bc8b5d7..0b3bfef2237b 100644
|
||||
--- content/browser/loader/mime_sniffing_resource_handler.cc
|
||||
+++ content/browser/loader/mime_sniffing_resource_handler.cc
|
||||
@@ -447,8 +447,8 @@ bool MimeSniffingResourceHandler::CheckForPluginHandler(
|
||||
@@ -494,8 +494,8 @@ bool MimeSniffingResourceHandler::CheckForPluginHandler(
|
||||
WebPluginInfo plugin;
|
||||
bool has_plugin = plugin_service_->GetPluginInfo(
|
||||
info->GetChildID(), info->GetRenderFrameID(), info->GetContext(),
|
||||
@@ -263,10 +274,10 @@ index e6de4ca6c8b3..18eea4948e43 100644
|
||||
const std::string& mime_type,
|
||||
bool allow_wildcard,
|
||||
diff --git content/common/frame_messages.h content/common/frame_messages.h
|
||||
index 7bce348a78d4..bc27dbcdda37 100644
|
||||
index 8e482fa78e3a..99b8e486e88f 100644
|
||||
--- content/common/frame_messages.h
|
||||
+++ content/common/frame_messages.h
|
||||
@@ -1342,8 +1342,9 @@ IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperStopsPlayback,
|
||||
@@ -1362,8 +1362,9 @@ IPC_MESSAGE_ROUTED1(FrameHostMsg_PepperStopsPlayback,
|
||||
|
||||
// Used to get the list of plugins. |main_frame_origin| is used to handle
|
||||
// exceptions for plugin content settings.
|
||||
@@ -277,7 +288,7 @@ index 7bce348a78d4..bc27dbcdda37 100644
|
||||
url::Origin /* main_frame_origin */,
|
||||
std::vector<content::WebPluginInfo> /* plugins */)
|
||||
|
||||
@@ -1351,9 +1352,10 @@ IPC_SYNC_MESSAGE_CONTROL2_1(FrameHostMsg_GetPlugins,
|
||||
@@ -1371,9 +1372,10 @@ IPC_SYNC_MESSAGE_CONTROL2_1(FrameHostMsg_GetPlugins,
|
||||
// type. If there is no matching plugin, |found| is false.
|
||||
// |actual_mime_type| is the actual mime type supported by the
|
||||
// found plugin.
|
||||
@@ -338,10 +349,10 @@ index 3b610b1f554e..7c439e060779 100644
|
||||
WebPluginInfo* plugin) = 0;
|
||||
|
||||
diff --git content/public/renderer/content_renderer_client.h content/public/renderer/content_renderer_client.h
|
||||
index b51a04da8ca0..ca13e9a6a07e 100644
|
||||
index 34aed4fd3565..364f042ee903 100644
|
||||
--- content/public/renderer/content_renderer_client.h
|
||||
+++ content/public/renderer/content_renderer_client.h
|
||||
@@ -73,6 +73,9 @@ class CONTENT_EXPORT ContentRendererClient {
|
||||
@@ -74,6 +74,9 @@ class CONTENT_EXPORT ContentRendererClient {
|
||||
// Notifies us that the RenderThread has been created.
|
||||
virtual void RenderThreadStarted() {}
|
||||
|
||||
@@ -351,7 +362,7 @@ index b51a04da8ca0..ca13e9a6a07e 100644
|
||||
// Notifies that a new RenderFrame has been created.
|
||||
virtual void RenderFrameCreated(RenderFrame* render_frame) {}
|
||||
|
||||
@@ -327,6 +330,10 @@ class CONTENT_EXPORT ContentRendererClient {
|
||||
@@ -333,6 +336,10 @@ class CONTENT_EXPORT ContentRendererClient {
|
||||
// This method may invalidate the frame.
|
||||
virtual void RunScriptsAtDocumentIdle(RenderFrame* render_frame) {}
|
||||
|
||||
@@ -377,10 +388,10 @@ index aa77b86eee98..097d26a80aa9 100644
|
||||
virtual void FocusedNodeChanged(const blink::WebNode& node) {}
|
||||
|
||||
diff --git content/renderer/render_frame_impl.cc content/renderer/render_frame_impl.cc
|
||||
index f341fb4aec24..28f3105f15c0 100644
|
||||
index 259d31191208..890ec89bbaee 100644
|
||||
--- content/renderer/render_frame_impl.cc
|
||||
+++ content/renderer/render_frame_impl.cc
|
||||
@@ -3468,7 +3468,8 @@ blink::WebPlugin* RenderFrameImpl::CreatePlugin(
|
||||
@@ -3447,7 +3447,8 @@ blink::WebPlugin* RenderFrameImpl::CreatePlugin(
|
||||
std::string mime_type;
|
||||
bool found = false;
|
||||
Send(new FrameHostMsg_GetPluginInfo(
|
||||
@@ -390,7 +401,7 @@ index f341fb4aec24..28f3105f15c0 100644
|
||||
params.mime_type.Utf8(), &found, &info, &mime_type));
|
||||
if (!found)
|
||||
return nullptr;
|
||||
@@ -3824,6 +3825,8 @@ void RenderFrameImpl::FrameDetached(DetachType type) {
|
||||
@@ -3808,6 +3809,8 @@ void RenderFrameImpl::FrameDetached(DetachType type) {
|
||||
|
||||
void RenderFrameImpl::FrameFocused() {
|
||||
Send(new FrameHostMsg_FrameFocused(routing_id_));
|
||||
@@ -400,10 +411,10 @@ index f341fb4aec24..28f3105f15c0 100644
|
||||
|
||||
void RenderFrameImpl::WillCommitProvisionalLoad() {
|
||||
diff --git content/renderer/render_thread_impl.cc content/renderer/render_thread_impl.cc
|
||||
index f55d956f05ec..ec2292acb1c3 100644
|
||||
index 81d3f80db8ef..1e349f80ed23 100644
|
||||
--- content/renderer/render_thread_impl.cc
|
||||
+++ content/renderer/render_thread_impl.cc
|
||||
@@ -822,6 +822,8 @@ void RenderThreadImpl::Init(
|
||||
@@ -925,6 +925,8 @@ void RenderThreadImpl::Init(
|
||||
|
||||
StartServiceManagerConnection();
|
||||
|
||||
@@ -413,10 +424,10 @@ index f55d956f05ec..ec2292acb1c3 100644
|
||||
base::Bind(&RenderThreadImpl::OnRendererInterfaceRequest,
|
||||
base::Unretained(this)));
|
||||
diff --git content/renderer/renderer_blink_platform_impl.cc content/renderer/renderer_blink_platform_impl.cc
|
||||
index 561593754e91..18273663e17e 100644
|
||||
index 0affacaa0294..8c08aad965a2 100644
|
||||
--- content/renderer/renderer_blink_platform_impl.cc
|
||||
+++ content/renderer/renderer_blink_platform_impl.cc
|
||||
@@ -842,6 +842,7 @@ RendererBlinkPlatformImpl::CreateMIDIAccessor(
|
||||
@@ -849,6 +849,7 @@ RendererBlinkPlatformImpl::CreateMIDIAccessor(
|
||||
|
||||
void RendererBlinkPlatformImpl::GetPluginList(
|
||||
bool refresh,
|
||||
@@ -424,7 +435,7 @@ index 561593754e91..18273663e17e 100644
|
||||
const blink::WebSecurityOrigin& mainFrameOrigin,
|
||||
blink::WebPluginListBuilder* builder) {
|
||||
#if BUILDFLAG(ENABLE_PLUGINS)
|
||||
@@ -849,7 +850,8 @@ void RendererBlinkPlatformImpl::GetPluginList(
|
||||
@@ -856,7 +857,8 @@ void RendererBlinkPlatformImpl::GetPluginList(
|
||||
if (!plugin_refresh_allowed_)
|
||||
refresh = false;
|
||||
RenderThread::Get()->Send(
|
||||
@@ -434,7 +445,7 @@ index 561593754e91..18273663e17e 100644
|
||||
for (const WebPluginInfo& plugin : plugins) {
|
||||
builder->AddPlugin(WebString::FromUTF16(plugin.name),
|
||||
WebString::FromUTF16(plugin.desc),
|
||||
@@ -1424,6 +1426,14 @@ void RendererBlinkPlatformImpl::RequestPurgeMemory() {
|
||||
@@ -1417,6 +1419,14 @@ void RendererBlinkPlatformImpl::RequestPurgeMemory() {
|
||||
base::MemoryCoordinatorClientRegistry::GetInstance()->PurgeMemory();
|
||||
}
|
||||
|
||||
@@ -450,7 +461,7 @@ index 561593754e91..18273663e17e 100644
|
||||
if (!web_database_host_) {
|
||||
web_database_host_ = blink::mojom::ThreadSafeWebDatabaseHostPtr::Create(
|
||||
diff --git content/renderer/renderer_blink_platform_impl.h content/renderer/renderer_blink_platform_impl.h
|
||||
index 65ddfde81aff..d92a0b316270 100644
|
||||
index e8a4578009d1..780d8b29acb2 100644
|
||||
--- content/renderer/renderer_blink_platform_impl.h
|
||||
+++ content/renderer/renderer_blink_platform_impl.h
|
||||
@@ -128,6 +128,7 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
|
||||
@@ -461,7 +472,7 @@ index 65ddfde81aff..d92a0b316270 100644
|
||||
const blink::WebSecurityOrigin& mainFrameOrigin,
|
||||
blink::WebPluginListBuilder* builder) override;
|
||||
blink::WebPublicSuffixList* PublicSuffixList() override;
|
||||
@@ -258,6 +259,9 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
|
||||
@@ -256,6 +257,9 @@ class CONTENT_EXPORT RendererBlinkPlatformImpl : public BlinkPlatformImpl {
|
||||
mojo::ScopedDataPipeConsumerHandle handle) override;
|
||||
void RequestPurgeMemory() override;
|
||||
|
||||
@@ -520,10 +531,10 @@ index db23a83ed079..57a4c536118c 100644
|
||||
const std::string& mime_type,
|
||||
bool allow_wildcard,
|
||||
diff --git content/test/test_blink_web_unit_test_support.cc content/test/test_blink_web_unit_test_support.cc
|
||||
index ae5e6942fe34..a8fead11a023 100644
|
||||
index 25182fdb0928..9cc19c4016d3 100644
|
||||
--- content/test/test_blink_web_unit_test_support.cc
|
||||
+++ content/test/test_blink_web_unit_test_support.cc
|
||||
@@ -325,6 +325,7 @@ blink::WebThread* TestBlinkWebUnitTestSupport::CurrentThread() {
|
||||
@@ -324,6 +324,7 @@ blink::WebThread* TestBlinkWebUnitTestSupport::CurrentThread() {
|
||||
|
||||
void TestBlinkWebUnitTestSupport::GetPluginList(
|
||||
bool refresh,
|
||||
@@ -532,7 +543,7 @@ index ae5e6942fe34..a8fead11a023 100644
|
||||
blink::WebPluginListBuilder* builder) {
|
||||
builder->AddPlugin("pdf", "pdf", "pdf-files");
|
||||
diff --git content/test/test_blink_web_unit_test_support.h content/test/test_blink_web_unit_test_support.h
|
||||
index 9b5c0a94fa7f..f31678481f0f 100644
|
||||
index d8ad7b6e4435..5eda4bc3c2d5 100644
|
||||
--- content/test/test_blink_web_unit_test_support.h
|
||||
+++ content/test/test_blink_web_unit_test_support.h
|
||||
@@ -72,6 +72,7 @@ class TestBlinkWebUnitTestSupport : public BlinkPlatformImpl {
|
||||
|
@@ -1,5 +1,5 @@
|
||||
diff --git chrome/common/crash_keys.cc chrome/common/crash_keys.cc
|
||||
index 5e0eabb..f862908 100644
|
||||
index 887e13776dd2..de30ebff25e4 100644
|
||||
--- chrome/common/crash_keys.cc
|
||||
+++ chrome/common/crash_keys.cc
|
||||
@@ -4,6 +4,8 @@
|
||||
@@ -20,7 +20,7 @@ index 5e0eabb..f862908 100644
|
||||
static const char* const kIgnoreSwitches[] = {
|
||||
switches::kEnableLogging,
|
||||
switches::kFlagSwitchesBegin,
|
||||
@@ -81,7 +83,7 @@ static bool IsBoringSwitch(const std::string& flag) {
|
||||
@@ -77,7 +79,7 @@ static bool IsBoringSwitch(const std::string& flag) {
|
||||
}
|
||||
|
||||
void SetCrashKeysFromCommandLine(const base::CommandLine& command_line) {
|
||||
@@ -30,7 +30,7 @@ index 5e0eabb..f862908 100644
|
||||
|
||||
void SetActiveExtensions(const std::set<std::string>& extensions) {
|
||||
diff --git chrome/common/crash_keys.h chrome/common/crash_keys.h
|
||||
index a18c8fc..011bcc2 100644
|
||||
index bcf172e645a2..a46141ea43e0 100644
|
||||
--- chrome/common/crash_keys.h
|
||||
+++ chrome/common/crash_keys.h
|
||||
@@ -16,6 +16,10 @@ class CommandLine;
|
||||
@@ -45,7 +45,7 @@ index a18c8fc..011bcc2 100644
|
||||
// Sets the kNumSwitches key and the set of keys named using kSwitchFormat based
|
||||
// on the given |command_line|.
|
||||
diff --git chrome_elf/BUILD.gn chrome_elf/BUILD.gn
|
||||
index fd5a28b..df46cb0 100644
|
||||
index 08dc1ddba75a..e2bc7c365980 100644
|
||||
--- chrome_elf/BUILD.gn
|
||||
+++ chrome_elf/BUILD.gn
|
||||
@@ -7,6 +7,7 @@
|
||||
@@ -56,7 +56,7 @@ index fd5a28b..df46cb0 100644
|
||||
import("//chrome/process_version_rc_template.gni")
|
||||
import("//testing/test.gni")
|
||||
|
||||
@@ -181,9 +182,6 @@ static_library("blacklist") {
|
||||
@@ -186,9 +187,6 @@ static_library("blacklist") {
|
||||
|
||||
static_library("crash") {
|
||||
sources = [
|
||||
@@ -66,7 +66,7 @@ index fd5a28b..df46cb0 100644
|
||||
"crash/crash_helper.cc",
|
||||
"crash/crash_helper.h",
|
||||
]
|
||||
@@ -191,6 +189,7 @@ static_library("crash") {
|
||||
@@ -196,6 +194,7 @@ static_library("crash") {
|
||||
":hook_util",
|
||||
"//base", # This needs to go. DEP of app, crash_keys, client.
|
||||
"//base:base_static", # pe_image
|
||||
@@ -74,7 +74,7 @@ index fd5a28b..df46cb0 100644
|
||||
"//chrome/install_static:install_static_util",
|
||||
"//components/crash/content/app",
|
||||
"//components/crash/core/common", # crash_keys
|
||||
@@ -198,6 +197,17 @@ static_library("crash") {
|
||||
@@ -203,6 +202,17 @@ static_library("crash") {
|
||||
"//content/public/common:result_codes",
|
||||
"//third_party/crashpad/crashpad/client", # DumpWithoutCrash
|
||||
]
|
||||
@@ -93,7 +93,7 @@ index fd5a28b..df46cb0 100644
|
||||
|
||||
static_library("hook_util") {
|
||||
diff --git chrome_elf/crash/crash_helper.cc chrome_elf/crash/crash_helper.cc
|
||||
index e8e27dc..7cb2149 100644
|
||||
index e8e27dc4ebd7..7cb2149ec41d 100644
|
||||
--- chrome_elf/crash/crash_helper.cc
|
||||
+++ chrome_elf/crash/crash_helper.cc
|
||||
@@ -11,12 +11,17 @@
|
||||
@@ -127,7 +127,7 @@ index e8e27dc..7cb2149 100644
|
||||
g_crash_helper_enabled = true;
|
||||
return true;
|
||||
diff --git components/crash/content/app/breakpad_linux.cc components/crash/content/app/breakpad_linux.cc
|
||||
index c72cd36..e9a79dd 100644
|
||||
index 460f7ac4defa..1c1b11f87e91 100644
|
||||
--- components/crash/content/app/breakpad_linux.cc
|
||||
+++ components/crash/content/app/breakpad_linux.cc
|
||||
@@ -28,6 +28,7 @@
|
||||
@@ -146,7 +146,7 @@ index c72cd36..e9a79dd 100644
|
||||
#endif
|
||||
|
||||
bool g_is_crash_reporter_enabled = false;
|
||||
@@ -685,7 +687,7 @@ bool CrashDone(const MinidumpDescriptor& minidump,
|
||||
@@ -689,7 +691,7 @@ bool CrashDone(const MinidumpDescriptor& minidump,
|
||||
info.process_type_length = 7;
|
||||
info.distro = base::g_linux_distro;
|
||||
info.distro_length = my_strlen(base::g_linux_distro);
|
||||
@@ -155,7 +155,7 @@ index c72cd36..e9a79dd 100644
|
||||
info.process_start_time = g_process_start_time;
|
||||
info.oom_size = base::g_oom_size;
|
||||
info.pid = g_pid;
|
||||
@@ -1341,7 +1343,7 @@ void ExecUploadProcessOrTerminate(const BreakpadInfo& info,
|
||||
@@ -1345,7 +1347,7 @@ void ExecUploadProcessOrTerminate(const BreakpadInfo& info,
|
||||
header_content_encoding,
|
||||
header_content_type,
|
||||
post_file,
|
||||
@@ -164,7 +164,7 @@ index c72cd36..e9a79dd 100644
|
||||
"--timeout=10", // Set a timeout so we don't hang forever.
|
||||
"--tries=1", // Don't retry if the upload fails.
|
||||
"-O", // Output reply to the file descriptor path.
|
||||
@@ -1681,10 +1683,19 @@ void HandleCrashDump(const BreakpadInfo& info) {
|
||||
@@ -1685,10 +1687,19 @@ void HandleCrashDump(const BreakpadInfo& info) {
|
||||
GetCrashReporterClient()->GetProductNameAndVersion(&product_name, &version);
|
||||
|
||||
writer.AddBoundary();
|
||||
@@ -186,7 +186,7 @@ index c72cd36..e9a79dd 100644
|
||||
if (info.pid > 0) {
|
||||
char pid_value_buf[kUint64StringSize];
|
||||
uint64_t pid_value_len = my_uint64_len(info.pid);
|
||||
@@ -1789,10 +1800,20 @@ void HandleCrashDump(const BreakpadInfo& info) {
|
||||
@@ -1793,10 +1804,20 @@ void HandleCrashDump(const BreakpadInfo& info) {
|
||||
crash_reporter::internal::TransitionalCrashKeyStorage;
|
||||
CrashKeyStorage::Iterator crash_key_iterator(*info.crash_keys);
|
||||
const CrashKeyStorage::Entry* entry;
|
||||
@@ -208,7 +208,7 @@ index c72cd36..e9a79dd 100644
|
||||
writer.AddBoundary();
|
||||
writer.Flush();
|
||||
}
|
||||
@@ -2002,6 +2023,17 @@ void SetChannelCrashKey(const std::string& channel) {
|
||||
@@ -2006,6 +2027,17 @@ void SetChannelCrashKey(const std::string& channel) {
|
||||
channel_key.Set(channel);
|
||||
}
|
||||
|
||||
@@ -227,7 +227,7 @@ index c72cd36..e9a79dd 100644
|
||||
void InitNonBrowserCrashReporterForAndroid(const std::string& process_type) {
|
||||
SanitizationInfo sanitization_info;
|
||||
diff --git components/crash/content/app/breakpad_linux.h components/crash/content/app/breakpad_linux.h
|
||||
index 9ee8555..7af55dd 100644
|
||||
index 9ee85554812c..7af55ddda8fe 100644
|
||||
--- components/crash/content/app/breakpad_linux.h
|
||||
+++ components/crash/content/app/breakpad_linux.h
|
||||
@@ -19,6 +19,9 @@ extern void InitCrashReporter(const std::string& process_type);
|
||||
@@ -241,7 +241,7 @@ index 9ee8555..7af55dd 100644
|
||||
extern void InitCrashKeysForTesting();
|
||||
|
||||
diff --git components/crash/content/app/crash_reporter_client.cc components/crash/content/app/crash_reporter_client.cc
|
||||
index a37619c..e13a0f7 100644
|
||||
index a37619c815e3..e13a0f7ade86 100644
|
||||
--- components/crash/content/app/crash_reporter_client.cc
|
||||
+++ components/crash/content/app/crash_reporter_client.cc
|
||||
@@ -88,11 +88,12 @@ int CrashReporterClient::GetResultCodeRespawnFailed() {
|
||||
@@ -315,7 +315,7 @@ index a37619c..e13a0f7 100644
|
||||
|
||||
} // namespace crash_reporter
|
||||
diff --git components/crash/content/app/crash_reporter_client.h components/crash/content/app/crash_reporter_client.h
|
||||
index 75d3d6d..aa86f45 100644
|
||||
index 75d3d6d93873..aa86f45c9746 100644
|
||||
--- components/crash/content/app/crash_reporter_client.h
|
||||
+++ components/crash/content/app/crash_reporter_client.h
|
||||
@@ -5,7 +5,9 @@
|
||||
@@ -343,14 +343,14 @@ index 75d3d6d..aa86f45 100644
|
||||
virtual base::FilePath GetReporterLogFilename();
|
||||
|
||||
// Custom crash minidump handler after the minidump is generated.
|
||||
@@ -106,6 +109,7 @@ class CrashReporterClient {
|
||||
@@ -105,6 +108,7 @@ class CrashReporterClient {
|
||||
// WARNING: this handler runs in a compromised context. It may not call into
|
||||
// libc nor allocate memory normally.
|
||||
virtual bool HandleCrashDump(const char* crashdump_filename);
|
||||
#endif
|
||||
+#endif
|
||||
#endif
|
||||
|
||||
// The location where minidump files should be written. Returns true if
|
||||
// |crash_dir| was set. Windows has to use base::string16 because this code
|
||||
@@ -180,6 +184,30 @@ class CrashReporterClient {
|
||||
|
||||
// Returns true if breakpad should run in the given process type.
|
||||
@@ -383,10 +383,10 @@ index 75d3d6d..aa86f45 100644
|
||||
|
||||
} // namespace crash_reporter
|
||||
diff --git components/crash/content/app/crashpad.cc components/crash/content/app/crashpad.cc
|
||||
index dde11ea..1a1f8b0 100644
|
||||
index 36ff7c219ad5..241156316efc 100644
|
||||
--- components/crash/content/app/crashpad.cc
|
||||
+++ components/crash/content/app/crashpad.cc
|
||||
@@ -133,7 +133,8 @@ void InitializeCrashpadImpl(bool initial_client,
|
||||
@@ -142,7 +142,8 @@ void InitializeCrashpadImpl(bool initial_client,
|
||||
// fallback. Forwarding is turned off for debug-mode builds even for the
|
||||
// browser process, because the system's crash reporter can take a very long
|
||||
// time to chew on symbols.
|
||||
@@ -397,7 +397,7 @@ index dde11ea..1a1f8b0 100644
|
||||
->set_system_crash_reporter_forwarding(crashpad::TriState::kDisabled);
|
||||
}
|
||||
diff --git components/crash/content/app/crashpad_mac.mm components/crash/content/app/crashpad_mac.mm
|
||||
index 6508c2a..f51ce5a 100644
|
||||
index 6508c2a06760..f51ce5a17e63 100644
|
||||
--- components/crash/content/app/crashpad_mac.mm
|
||||
+++ components/crash/content/app/crashpad_mac.mm
|
||||
@@ -16,11 +16,14 @@
|
||||
@@ -498,7 +498,7 @@ index 6508c2a..f51ce5a 100644
|
||||
handler_path, database_path, metrics_path, url, process_annotations,
|
||||
arguments, true, false);
|
||||
diff --git components/crash/content/app/crashpad_win.cc components/crash/content/app/crashpad_win.cc
|
||||
index a5d1afc..91815d9 100644
|
||||
index a5d1afc409f4..91815d949f2e 100644
|
||||
--- components/crash/content/app/crashpad_win.cc
|
||||
+++ components/crash/content/app/crashpad_win.cc
|
||||
@@ -34,8 +34,8 @@ void GetPlatformCrashpadAnnotations(
|
||||
@@ -568,7 +568,7 @@ index a5d1afc..91815d9 100644
|
||||
|
||||
if (crash_reporter_client->ShouldMonitorCrashHandlerExpensively()) {
|
||||
diff --git content/browser/frame_host/debug_urls.cc content/browser/frame_host/debug_urls.cc
|
||||
index 4695432..62a7ce8 100644
|
||||
index 46954327b9c7..62a7ce8d4e46 100644
|
||||
--- content/browser/frame_host/debug_urls.cc
|
||||
+++ content/browser/frame_host/debug_urls.cc
|
||||
@@ -139,7 +139,9 @@ bool HandleDebugURL(const GURL& url, ui::PageTransition transition) {
|
||||
|
@@ -146,7 +146,7 @@ index b64f74fbaf28..0c3c22e215b6 100644
|
||||
struct Data;
|
||||
|
||||
diff --git third_party/crashpad/crashpad/handler/BUILD.gn third_party/crashpad/crashpad/handler/BUILD.gn
|
||||
index 71037bb04d5d..61f7e8ca04ca 100644
|
||||
index 9c337697b605..b1fbd1de6074 100644
|
||||
--- third_party/crashpad/crashpad/handler/BUILD.gn
|
||||
+++ third_party/crashpad/crashpad/handler/BUILD.gn
|
||||
@@ -12,6 +12,7 @@
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git content/browser/devtools/devtools_http_handler.cc content/browser/devtools/devtools_http_handler.cc
|
||||
index 36525162ff0e..db28486fa6c0 100644
|
||||
index 1a93ba92a9e0..2c4b116d25ea 100644
|
||||
--- content/browser/devtools/devtools_http_handler.cc
|
||||
+++ content/browser/devtools/devtools_http_handler.cc
|
||||
@@ -503,7 +503,7 @@ void DevToolsHttpHandler::OnJsonRequest(
|
||||
@@ -543,7 +543,7 @@ void DevToolsHttpHandler::OnJsonRequest(
|
||||
version.SetString("Protocol-Version",
|
||||
DevToolsAgentHost::GetProtocolVersion());
|
||||
version.SetString("WebKit-Version", GetWebKitVersion());
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git content/browser/frame_host/render_frame_host_manager.cc content/browser/frame_host/render_frame_host_manager.cc
|
||||
index 3263eb9e324a..b5bde4cea8f7 100644
|
||||
index d7342d69dd8e..33d538952375 100644
|
||||
--- content/browser/frame_host/render_frame_host_manager.cc
|
||||
+++ content/browser/frame_host/render_frame_host_manager.cc
|
||||
@@ -890,10 +890,11 @@ bool RenderFrameHostManager::ShouldSwapBrowsingInstancesForNavigation(
|
||||
@@ -891,10 +891,11 @@ bool RenderFrameHostManager::ShouldSwapBrowsingInstancesForNavigation(
|
||||
// TODO(alexmos): This check should've been enforced earlier in the
|
||||
// navigation, in chrome::Navigate(). Verify this, and then convert this to
|
||||
// a CHECK and remove the fallback.
|
||||
@@ -18,7 +18,7 @@ index 3263eb9e324a..b5bde4cea8f7 100644
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -1032,7 +1033,8 @@ RenderFrameHostManager::GetSiteInstanceForNavigation(
|
||||
@@ -1033,7 +1034,8 @@ RenderFrameHostManager::GetSiteInstanceForNavigation(
|
||||
|
||||
// Double-check that the new SiteInstance is associated with the right
|
||||
// BrowserContext.
|
||||
@@ -29,10 +29,10 @@ index 3263eb9e324a..b5bde4cea8f7 100644
|
||||
// If |new_instance| is a new SiteInstance for a subframe that requires a
|
||||
// dedicated process, set its process reuse policy so that such subframes are
|
||||
diff --git content/public/browser/content_browser_client.h content/public/browser/content_browser_client.h
|
||||
index 18767b608ce9..41f5dc26ffdc 100644
|
||||
index 5373ee07b5cd..2558e590ba7c 100644
|
||||
--- content/public/browser/content_browser_client.h
|
||||
+++ content/public/browser/content_browser_client.h
|
||||
@@ -341,6 +341,13 @@ class CONTENT_EXPORT ContentBrowserClient {
|
||||
@@ -354,6 +354,13 @@ class CONTENT_EXPORT ContentBrowserClient {
|
||||
const GURL& current_url,
|
||||
const GURL& new_url);
|
||||
|
||||
@@ -152,10 +152,10 @@ index 34812c083bf5..1ccfaf6e1c45 100644
|
||||
// A weak pointer to the current or pending RenderViewHost. We don't access
|
||||
// this through the host_contents because we want to deal with the pending
|
||||
diff --git extensions/browser/extensions_browser_client.h extensions/browser/extensions_browser_client.h
|
||||
index 267a40121d8e..fc68e632465c 100644
|
||||
index 9e8ebb1a4d59..b42e88b11f6a 100644
|
||||
--- extensions/browser/extensions_browser_client.h
|
||||
+++ extensions/browser/extensions_browser_client.h
|
||||
@@ -53,6 +53,7 @@ class ComponentExtensionResourceManager;
|
||||
@@ -54,6 +54,7 @@ class ComponentExtensionResourceManager;
|
||||
class Extension;
|
||||
class ExtensionCache;
|
||||
class ExtensionError;
|
||||
@@ -163,7 +163,7 @@ index 267a40121d8e..fc68e632465c 100644
|
||||
class ExtensionHostDelegate;
|
||||
class ExtensionPrefsObserver;
|
||||
class ExtensionApiFrameIdMap;
|
||||
@@ -108,6 +109,11 @@ class ExtensionsBrowserClient {
|
||||
@@ -109,6 +110,11 @@ class ExtensionsBrowserClient {
|
||||
virtual content::BrowserContext* GetOriginalContext(
|
||||
content::BrowserContext* context) = 0;
|
||||
|
||||
@@ -175,7 +175,7 @@ index 267a40121d8e..fc68e632465c 100644
|
||||
#if defined(OS_CHROMEOS)
|
||||
// Returns a user id hash from |context| or an empty string if no hash could
|
||||
// be extracted.
|
||||
@@ -173,6 +179,14 @@ class ExtensionsBrowserClient {
|
||||
@@ -191,6 +197,14 @@ class ExtensionsBrowserClient {
|
||||
virtual std::unique_ptr<ExtensionHostDelegate>
|
||||
CreateExtensionHostDelegate() = 0;
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git .gn .gn
|
||||
index 20f642efb056..7f73f53c70ad 100644
|
||||
index 50a8a2fe9f1e..719adff0da9b 100644
|
||||
--- .gn
|
||||
+++ .gn
|
||||
@@ -234,6 +234,8 @@ exec_script_whitelist =
|
||||
@@ -241,6 +241,8 @@ exec_script_whitelist =
|
||||
# in the Chromium repo outside of //build.
|
||||
"//build_overrides/build.gni",
|
||||
|
||||
@@ -12,10 +12,10 @@ index 20f642efb056..7f73f53c70ad 100644
|
||||
# https://crbug.com/474506.
|
||||
"//clank/java/BUILD.gn",
|
||||
diff --git BUILD.gn BUILD.gn
|
||||
index 92a8578280e6..11eb3b16a812 100644
|
||||
index 161519ebfeac..c034f54603e8 100644
|
||||
--- BUILD.gn
|
||||
+++ BUILD.gn
|
||||
@@ -183,6 +183,7 @@ group("gn_all") {
|
||||
@@ -190,6 +190,7 @@ group("gn_all") {
|
||||
|
||||
if (!is_ios && !is_fuchsia) {
|
||||
deps += [
|
||||
@@ -96,7 +96,7 @@ index a1d2ea4b2394..50514a54e64f 100644
|
||||
|
||||
|
||||
diff --git build/vs_toolchain.py build/vs_toolchain.py
|
||||
index 0a54e113f30f..d8ff277fcda6 100755
|
||||
index 5f9541e4556f..c1144b30f237 100755
|
||||
--- build/vs_toolchain.py
|
||||
+++ build/vs_toolchain.py
|
||||
@@ -81,11 +81,18 @@ def SetEnvironmentAndGetRuntimeDllDirs():
|
||||
@@ -119,10 +119,10 @@ index 0a54e113f30f..d8ff277fcda6 100755
|
||||
# directory in order to run binaries locally, but they are needed in order
|
||||
# to create isolates or the mini_installer. Copying them to the output
|
||||
diff --git chrome/chrome_paks.gni chrome/chrome_paks.gni
|
||||
index bd0fc70bb87f..79315464c57b 100644
|
||||
index 94c5f759a0dd..a166b6302eeb 100644
|
||||
--- chrome/chrome_paks.gni
|
||||
+++ chrome/chrome_paks.gni
|
||||
@@ -255,7 +255,7 @@ template("chrome_paks") {
|
||||
@@ -253,7 +253,7 @@ template("chrome_paks") {
|
||||
}
|
||||
|
||||
input_locales = locales
|
||||
@@ -132,15 +132,15 @@ index bd0fc70bb87f..79315464c57b 100644
|
||||
if (is_mac) {
|
||||
output_locales = locales_as_mac_outputs
|
||||
diff --git chrome/installer/mini_installer/BUILD.gn chrome/installer/mini_installer/BUILD.gn
|
||||
index 3f65aa27ca38..3227cb17e460 100644
|
||||
index 3ed598db3989..b23170bc4591 100644
|
||||
--- chrome/installer/mini_installer/BUILD.gn
|
||||
+++ chrome/installer/mini_installer/BUILD.gn
|
||||
@@ -130,7 +130,7 @@ template("generate_mini_installer") {
|
||||
@@ -143,7 +143,7 @@ template("generate_mini_installer") {
|
||||
inputs = [
|
||||
"$chrome_dll_file",
|
||||
"$root_out_dir/chrome.exe",
|
||||
- "$root_out_dir/locales/en-US.pak",
|
||||
+ "$root_out_dir/chrome/locales/en-US.pak",
|
||||
"$root_out_dir/setup.exe",
|
||||
"$root_out_dir/v8_context_snapshot.bin",
|
||||
"//chrome/tools/build/win/makecab.py",
|
||||
release_file,
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git tools/gritsettings/resource_ids tools/gritsettings/resource_ids
|
||||
index fc1c4aa91190..dfa9e7a43799 100644
|
||||
index 499d041b08c0..b036897264f7 100644
|
||||
--- tools/gritsettings/resource_ids
|
||||
+++ tools/gritsettings/resource_ids
|
||||
@@ -393,4 +393,11 @@
|
||||
@@ -396,4 +396,11 @@
|
||||
# Please read the header and find the right section above instead.
|
||||
|
||||
# Resource ids starting at 31000 are reserved for projects built on Chromium.
|
||||
|
@@ -1,29 +1,29 @@
|
||||
diff --git build/config/compiler/BUILD.gn build/config/compiler/BUILD.gn
|
||||
index 2673c6a79889..ca5726966ac0 100644
|
||||
index 9a10137aa405..6dd8033a0b33 100644
|
||||
--- build/config/compiler/BUILD.gn
|
||||
+++ build/config/compiler/BUILD.gn
|
||||
@@ -443,7 +443,7 @@ config("compiler") {
|
||||
# chromeos binutils has been patched with the fix, so always use icf there.
|
||||
# The bug only affects x86 and x64, so we can still use ICF when targeting
|
||||
# other architectures.
|
||||
- if ((!is_android && linux_use_bundled_binutils) || is_chromeos ||
|
||||
+ if ((!is_android && linux_use_bundled_binutils && current_cpu != "x86") || is_chromeos ||
|
||||
!(current_cpu == "x86" || current_cpu == "x64")) {
|
||||
ldflags += [ "-Wl,--icf=all" ]
|
||||
}
|
||||
@@ -137,7 +137,7 @@ declare_args() {
|
||||
is_posix && !using_sanitizer && !(is_android && use_order_profiling) &&
|
||||
((use_lld && !is_nacl) ||
|
||||
(use_gold &&
|
||||
- ((!is_android && linux_use_bundled_binutils) || is_chromeos ||
|
||||
+ ((!is_android && linux_use_bundled_binutils && current_cpu != "x86") || is_chromeos ||
|
||||
!(current_cpu == "x86" || current_cpu == "x64"))))
|
||||
}
|
||||
|
||||
diff --git chrome/browser/ui/libgtkui/gtk_util.cc chrome/browser/ui/libgtkui/gtk_util.cc
|
||||
index fc6ffb9d..f6c22e5 100644
|
||||
index 96f8c0e71472..49c462b37e12 100644
|
||||
--- chrome/browser/ui/libgtkui/gtk_util.cc
|
||||
+++ chrome/browser/ui/libgtkui/gtk_util.cc
|
||||
@@ -56,6 +56,7 @@ void CommonInitFromCommandLine(const base::CommandLine& command_line,
|
||||
}
|
||||
@@ -237,6 +237,7 @@ float GetDeviceScaleFactor() {
|
||||
return linux_ui ? linux_ui->GetDeviceScaleFactor() : 1;
|
||||
}
|
||||
|
||||
+#if GTK_MAJOR_VERSION > 2
|
||||
using GtkSetState = void (*)(GtkWidgetPath*, gint, GtkStateFlags);
|
||||
PROTECTED_MEMORY_SECTION base::ProtectedMemory<GtkSetState>
|
||||
_gtk_widget_path_iter_set_state;
|
||||
@@ -63,6 +64,7 @@ PROTECTED_MEMORY_SECTION base::ProtectedMemory<GtkSetState>
|
||||
@@ -244,6 +245,7 @@ PROTECTED_MEMORY_SECTION base::ProtectedMemory<GtkSetState>
|
||||
using GtkSetObjectName = void (*)(GtkWidgetPath*, gint, const char*);
|
||||
PROTECTED_MEMORY_SECTION base::ProtectedMemory<GtkSetObjectName>
|
||||
_gtk_widget_path_iter_set_object_name;
|
||||
|
@@ -33,7 +33,7 @@ index 27ee7fe8155b..353a61c3badd 100644
|
||||
// if type_ is TYPE_CUSTOM and pump_ is null.
|
||||
MessagePumpFactoryCallback pump_factory_;
|
||||
diff --git base/message_loop/message_pump_win.cc base/message_loop/message_pump_win.cc
|
||||
index 6f48da1c744e..e427941bfd06 100644
|
||||
index 5069b8524924..e88a3c7974f2 100644
|
||||
--- base/message_loop/message_pump_win.cc
|
||||
+++ base/message_loop/message_pump_win.cc
|
||||
@@ -366,20 +366,28 @@ bool MessagePumpForUI::ProcessMessageHelper(const MSG& msg) {
|
||||
|
@@ -1,16 +1,16 @@
|
||||
diff --git net/base/network_delegate.h net/base/network_delegate.h
|
||||
index 22c428f90b16..1e0e6deaa7df 100644
|
||||
index e3b6502ff7ee..a3b4b2d40d5f 100644
|
||||
--- net/base/network_delegate.h
|
||||
+++ net/base/network_delegate.h
|
||||
@@ -16,6 +16,7 @@
|
||||
@@ -17,6 +17,7 @@
|
||||
#include "net/base/completion_callback.h"
|
||||
#include "net/base/net_export.h"
|
||||
#include "net/cookies/canonical_cookie.h"
|
||||
+#include "net/filter/source_stream.h"
|
||||
#include "net/proxy/proxy_retry_info.h"
|
||||
#include "net/proxy_resolution/proxy_retry_info.h"
|
||||
|
||||
class GURL;
|
||||
@@ -124,6 +125,10 @@ class NET_EXPORT NetworkDelegate {
|
||||
@@ -127,6 +128,10 @@ class NET_EXPORT NetworkDelegate {
|
||||
bool CanUseReportingClient(const url::Origin& origin,
|
||||
const GURL& endpoint) const;
|
||||
|
||||
@@ -22,10 +22,10 @@ index 22c428f90b16..1e0e6deaa7df 100644
|
||||
THREAD_CHECKER(thread_checker_);
|
||||
|
||||
diff --git net/url_request/url_request_job.cc net/url_request/url_request_job.cc
|
||||
index 25e971d7e6bc..2d14710ed4fe 100644
|
||||
index 2dad8a230652..71666b08a212 100644
|
||||
--- net/url_request/url_request_job.cc
|
||||
+++ net/url_request/url_request_job.cc
|
||||
@@ -447,6 +447,12 @@ void URLRequestJob::NotifyHeadersComplete() {
|
||||
@@ -450,6 +450,12 @@ void URLRequestJob::NotifyHeadersComplete() {
|
||||
DCHECK(!source_stream_);
|
||||
source_stream_ = SetUpSourceStream();
|
||||
|
||||
|
@@ -55,10 +55,10 @@ index fb6f4847cfe9..aa4c1cdafb9f 100644
|
||||
|
||||
} // namespace net
|
||||
diff --git net/http/transport_security_state.cc net/http/transport_security_state.cc
|
||||
index 6eaa321ef4b8..9926ea6afc40 100644
|
||||
index cd4e9c74a31c..66e3598bb127 100644
|
||||
--- net/http/transport_security_state.cc
|
||||
+++ net/http/transport_security_state.cc
|
||||
@@ -1567,8 +1567,10 @@ void TransportSecurityState::ClearReportCachesForTesting() {
|
||||
@@ -1564,8 +1564,10 @@ void TransportSecurityState::ClearReportCachesForTesting() {
|
||||
sent_expect_ct_reports_cache_.Clear();
|
||||
}
|
||||
|
||||
|
@@ -1,10 +1,10 @@
|
||||
diff --git net/url_request/url_request.h net/url_request/url_request.h
|
||||
index 60fbf78c7886..9597011602ba 100644
|
||||
index c0fc8aeee535..0a16da034f80 100644
|
||||
--- net/url_request/url_request.h
|
||||
+++ net/url_request/url_request.h
|
||||
@@ -693,10 +693,10 @@ class NET_EXPORT URLRequest : public base::SupportsUserData {
|
||||
// called with a response from the server.
|
||||
void SetResponseHeadersCallback(ResponseHeadersCallback callback);
|
||||
@@ -705,10 +705,10 @@ class NET_EXPORT URLRequest : public base::SupportsUserData {
|
||||
void set_socket_tag(const SocketTag& socket_tag);
|
||||
const SocketTag& socket_tag() const { return socket_tag_; }
|
||||
|
||||
- protected:
|
||||
// Allow the URLRequestJob class to control the is_pending() flag.
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git BUILD.gn BUILD.gn
|
||||
index c771b8191..6a5f1f3e4 100644
|
||||
index d7c8640a2..7f508fdae 100644
|
||||
--- BUILD.gn
|
||||
+++ BUILD.gn
|
||||
@@ -230,6 +230,10 @@ jumbo_static_library("pdfium") {
|
||||
@@ -231,6 +231,10 @@ jumbo_static_library("pdfium") {
|
||||
if (pdf_is_complete_lib) {
|
||||
complete_static_lib = true
|
||||
}
|
||||
@@ -14,14 +14,14 @@ index c771b8191..6a5f1f3e4 100644
|
||||
|
||||
jumbo_static_library("test_support") {
|
||||
diff --git fpdfsdk/fpdfview.cpp fpdfsdk/fpdfview.cpp
|
||||
index 97fc02a23..000b4a7d3 100644
|
||||
index e890aa009..cabb73bb6 100644
|
||||
--- fpdfsdk/fpdfview.cpp
|
||||
+++ fpdfsdk/fpdfview.cpp
|
||||
@@ -36,6 +36,7 @@
|
||||
#include "fpdfsdk/cpdfsdk_pageview.h"
|
||||
#include "fpdfsdk/fsdk_define.h"
|
||||
#include "fpdfsdk/fsdk_pauseadapter.h"
|
||||
+#include "fxjs/fxjs_v8.h"
|
||||
+#include "fxjs/cfxjs_engine.h"
|
||||
#include "fxjs/ijs_runtime.h"
|
||||
#include "public/fpdf_edit.h"
|
||||
#include "public/fpdf_ext.h"
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git content/public/common/common_param_traits_macros.h content/public/common/common_param_traits_macros.h
|
||||
index a714130a50d8..2a835d7282b3 100644
|
||||
index 6b1fa1ceb553..d3c6c961ccdf 100644
|
||||
--- content/public/common/common_param_traits_macros.h
|
||||
+++ content/public/common/common_param_traits_macros.h
|
||||
@@ -187,6 +187,7 @@ IPC_STRUCT_TRAITS_BEGIN(content::WebPreferences)
|
||||
@@ -183,6 +183,7 @@ IPC_STRUCT_TRAITS_BEGIN(content::WebPreferences)
|
||||
IPC_STRUCT_TRAITS_MEMBER(main_frame_resizes_are_orientation_changes)
|
||||
IPC_STRUCT_TRAITS_MEMBER(initialize_at_minimum_page_scale)
|
||||
IPC_STRUCT_TRAITS_MEMBER(smart_insert_delete_enabled)
|
||||
@@ -11,10 +11,10 @@ index a714130a50d8..2a835d7282b3 100644
|
||||
IPC_STRUCT_TRAITS_MEMBER(navigate_on_drag_drop)
|
||||
IPC_STRUCT_TRAITS_MEMBER(spatial_navigation_enabled)
|
||||
diff --git content/public/common/web_preferences.cc content/public/common/web_preferences.cc
|
||||
index 06069a576dfd..912155ebec7c 100644
|
||||
index e147056305cb..ee7d1a7d8c87 100644
|
||||
--- content/public/common/web_preferences.cc
|
||||
+++ content/public/common/web_preferences.cc
|
||||
@@ -178,6 +178,7 @@ WebPreferences::WebPreferences()
|
||||
@@ -166,6 +166,7 @@ WebPreferences::WebPreferences()
|
||||
spatial_navigation_enabled(false),
|
||||
use_solid_color_scrollbars(false),
|
||||
navigate_on_drag_drop(true),
|
||||
@@ -23,10 +23,10 @@ index 06069a576dfd..912155ebec7c 100644
|
||||
record_whole_document(false),
|
||||
save_previous_document_resources(SavePreviousDocumentResources::NEVER),
|
||||
diff --git content/public/common/web_preferences.h content/public/common/web_preferences.h
|
||||
index 49be57cd2aad..417be7a55184 100644
|
||||
index 43606a755fa2..967190fc8f83 100644
|
||||
--- content/public/common/web_preferences.h
|
||||
+++ content/public/common/web_preferences.h
|
||||
@@ -198,6 +198,7 @@ struct CONTENT_EXPORT WebPreferences {
|
||||
@@ -186,6 +186,7 @@ struct CONTENT_EXPORT WebPreferences {
|
||||
bool spatial_navigation_enabled;
|
||||
bool use_solid_color_scrollbars;
|
||||
bool navigate_on_drag_drop;
|
||||
@@ -35,10 +35,10 @@ index 49be57cd2aad..417be7a55184 100644
|
||||
bool record_whole_document;
|
||||
SavePreviousDocumentResources save_previous_document_resources;
|
||||
diff --git content/renderer/render_view_impl.cc content/renderer/render_view_impl.cc
|
||||
index 1d136aa56ff4..2151ad629dd9 100644
|
||||
index 6e57733e6657..18cb21550b0b 100644
|
||||
--- content/renderer/render_view_impl.cc
|
||||
+++ content/renderer/render_view_impl.cc
|
||||
@@ -1261,6 +1261,7 @@ void RenderViewImpl::ApplyWebPreferencesInternal(
|
||||
@@ -1235,6 +1235,7 @@ void RenderViewImpl::ApplyWebPreferencesInternal(
|
||||
blink::WebView* web_view,
|
||||
CompositorDependencies* compositor_deps) {
|
||||
ApplyWebPreferences(prefs, web_view);
|
||||
|
@@ -1,10 +1,10 @@
|
||||
diff --git chrome/browser/ui/BUILD.gn chrome/browser/ui/BUILD.gn
|
||||
index 1a43eba4852b..eccb01ca818e 100644
|
||||
index c50380806706..011b63531a33 100644
|
||||
--- chrome/browser/ui/BUILD.gn
|
||||
+++ chrome/browser/ui/BUILD.gn
|
||||
@@ -344,6 +344,7 @@ split_static_library("ui") {
|
||||
@@ -919,6 +919,7 @@ split_static_library("ui") {
|
||||
"//base:i18n",
|
||||
"//base/allocator:features",
|
||||
"//base/allocator:buildflags",
|
||||
"//cc/paint",
|
||||
+ "//cef/libcef/features",
|
||||
"//chrome:extra_resources",
|
||||
@@ -81,56 +81,70 @@ index 45644030eb24..c894209e1530 100644
|
||||
}
|
||||
|
||||
} // namespace settings
|
||||
diff --git chrome/utility/printing_handler.cc chrome/utility/printing_handler.cc
|
||||
index 1eb818639134..4525da919180 100644
|
||||
--- chrome/utility/printing_handler.cc
|
||||
+++ chrome/utility/printing_handler.cc
|
||||
@@ -23,6 +23,7 @@ namespace printing {
|
||||
diff --git chrome/common/chrome_utility_printing_messages.h chrome/common/chrome_utility_printing_messages.h
|
||||
index 6dfe3b430d7d..82e3ab03bdc4 100644
|
||||
--- chrome/common/chrome_utility_printing_messages.h
|
||||
+++ chrome/common/chrome_utility_printing_messages.h
|
||||
@@ -16,7 +16,7 @@
|
||||
|
||||
namespace {
|
||||
#define IPC_MESSAGE_START ChromeUtilityPrintingMsgStart
|
||||
|
||||
+#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
bool Send(IPC::Message* message) {
|
||||
return content::UtilityThread::Get()->Send(message);
|
||||
}
|
||||
@@ -30,6 +31,7 @@ bool Send(IPC::Message* message) {
|
||||
void ReleaseProcess() {
|
||||
content::UtilityThread::Get()->ReleaseProcess();
|
||||
}
|
||||
+#endif // BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
-#if defined(OS_WIN) && BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
+#if defined(OS_WIN)
|
||||
// Preview and Cloud Print messages.
|
||||
IPC_STRUCT_TRAITS_BEGIN(printing::PrinterCapsAndDefaults)
|
||||
IPC_STRUCT_TRAITS_MEMBER(printer_capabilities)
|
||||
@@ -94,6 +94,6 @@ IPC_MESSAGE_CONTROL1(ChromeUtilityHostMsg_GetPrinterCapsAndDefaults_Failed,
|
||||
IPC_MESSAGE_CONTROL1(
|
||||
ChromeUtilityHostMsg_GetPrinterSemanticCapsAndDefaults_Failed,
|
||||
std::string /* printer name */)
|
||||
-#endif // defined(OS_WIN) && BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
+#endif // defined(OS_WIN)
|
||||
|
||||
} // namespace
|
||||
#endif // CHROME_COMMON_CHROME_UTILITY_PRINTING_MESSAGES_H_
|
||||
diff --git chrome/utility/printing_handler.h chrome/utility/printing_handler.h
|
||||
index b56deaf18589..3d931b55686f 100644
|
||||
--- chrome/utility/printing_handler.h
|
||||
+++ chrome/utility/printing_handler.h
|
||||
@@ -11,7 +11,7 @@
|
||||
#include "build/build_config.h"
|
||||
#include "printing/features/features.h"
|
||||
|
||||
-#if !defined(OS_WIN) || !BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
+#if !defined(OS_WIN)
|
||||
#error "Windows printing and print preview must be enabled"
|
||||
#endif
|
||||
|
||||
diff --git components/printing/common/print_messages.cc components/printing/common/print_messages.cc
|
||||
index ef1e25b11afe..a12e21450a59 100644
|
||||
index 6df98550d22d..3192faf033f8 100644
|
||||
--- components/printing/common/print_messages.cc
|
||||
+++ components/printing/common/print_messages.cc
|
||||
@@ -129,7 +129,6 @@ void PrintMsg_PrintPages_Params::Reset() {
|
||||
pages = std::vector<int>();
|
||||
}
|
||||
@@ -148,7 +148,6 @@ PrintMsg_PrintFrame_Params::PrintMsg_PrintFrame_Params() {}
|
||||
|
||||
PrintMsg_PrintFrame_Params::~PrintMsg_PrintFrame_Params() {}
|
||||
|
||||
-#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
PrintHostMsg_RequestPrintPreview_Params::
|
||||
PrintHostMsg_RequestPrintPreview_Params()
|
||||
: is_modifiable(false),
|
||||
@@ -151,4 +150,3 @@ PrintHostMsg_SetOptionsFromDocument_Params::
|
||||
@@ -170,4 +169,3 @@ PrintHostMsg_SetOptionsFromDocument_Params::
|
||||
PrintHostMsg_SetOptionsFromDocument_Params::
|
||||
~PrintHostMsg_SetOptionsFromDocument_Params() {
|
||||
}
|
||||
-#endif // BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
diff --git components/printing/common/print_messages.h components/printing/common/print_messages.h
|
||||
index 6d02771d018d..cb8608f5b523 100644
|
||||
index 22469f97d1f9..fd303fd1e764 100644
|
||||
--- components/printing/common/print_messages.h
|
||||
+++ components/printing/common/print_messages.h
|
||||
@@ -79,7 +79,6 @@ struct PrintMsg_PrintPages_Params {
|
||||
std::vector<int> pages;
|
||||
@@ -85,7 +85,6 @@ struct PrintMsg_PrintFrame_Params {
|
||||
int document_cookie;
|
||||
};
|
||||
|
||||
-#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
struct PrintHostMsg_RequestPrintPreview_Params {
|
||||
PrintHostMsg_RequestPrintPreview_Params();
|
||||
~PrintHostMsg_RequestPrintPreview_Params();
|
||||
@@ -98,7 +97,6 @@ struct PrintHostMsg_SetOptionsFromDocument_Params {
|
||||
@@ -104,7 +103,6 @@ struct PrintHostMsg_SetOptionsFromDocument_Params {
|
||||
printing::DuplexMode duplex;
|
||||
printing::PageRanges page_ranges;
|
||||
};
|
||||
@@ -138,7 +152,7 @@ index 6d02771d018d..cb8608f5b523 100644
|
||||
|
||||
#endif // INTERNAL_COMPONENTS_PRINTING_COMMON_PRINT_MESSAGES_H_
|
||||
|
||||
@@ -189,7 +187,6 @@ IPC_STRUCT_TRAITS_BEGIN(printing::PageRange)
|
||||
@@ -198,7 +196,6 @@ IPC_STRUCT_TRAITS_BEGIN(printing::PageRange)
|
||||
IPC_STRUCT_TRAITS_MEMBER(to)
|
||||
IPC_STRUCT_TRAITS_END()
|
||||
|
||||
@@ -146,7 +160,7 @@ index 6d02771d018d..cb8608f5b523 100644
|
||||
IPC_STRUCT_TRAITS_BEGIN(PrintHostMsg_RequestPrintPreview_Params)
|
||||
IPC_STRUCT_TRAITS_MEMBER(is_modifiable)
|
||||
IPC_STRUCT_TRAITS_MEMBER(webnode_only)
|
||||
@@ -210,7 +207,6 @@ IPC_STRUCT_TRAITS_BEGIN(PrintHostMsg_SetOptionsFromDocument_Params)
|
||||
@@ -219,7 +216,6 @@ IPC_STRUCT_TRAITS_BEGIN(PrintHostMsg_SetOptionsFromDocument_Params)
|
||||
// Specifies page range to be printed.
|
||||
IPC_STRUCT_TRAITS_MEMBER(page_ranges)
|
||||
IPC_STRUCT_TRAITS_END()
|
||||
@@ -154,23 +168,23 @@ index 6d02771d018d..cb8608f5b523 100644
|
||||
|
||||
IPC_STRUCT_TRAITS_BEGIN(printing::PageSizeMargins)
|
||||
IPC_STRUCT_TRAITS_MEMBER(content_width)
|
||||
@@ -230,7 +226,6 @@ IPC_STRUCT_TRAITS_BEGIN(PrintMsg_PrintPages_Params)
|
||||
IPC_STRUCT_TRAITS_MEMBER(pages)
|
||||
IPC_STRUCT_TRAITS_END()
|
||||
@@ -264,7 +260,6 @@ IPC_STRUCT_BEGIN(PrintHostMsg_DidPrintContent_Params)
|
||||
IPC_STRUCT_MEMBER(printing::ContentToProxyIdMap, subframe_content_info)
|
||||
IPC_STRUCT_END()
|
||||
|
||||
-#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
// Parameters to describe a rendered document.
|
||||
IPC_STRUCT_BEGIN(PrintHostMsg_DidPreviewDocument_Params)
|
||||
// A shared memory handle to metafile data.
|
||||
@@ -281,7 +276,6 @@ IPC_STRUCT_BEGIN(PrintHostMsg_DidGetPreviewPageCount_Params)
|
||||
// Indicates whether the existing preview data needs to be cleared or not.
|
||||
IPC_STRUCT_MEMBER(bool, clear_preview_data)
|
||||
// Document's content including metafile data and subframe info.
|
||||
@@ -309,7 +304,6 @@ IPC_STRUCT_BEGIN(PrintHostMsg_DidGetPreviewPageCount_Params)
|
||||
// The id of the preview request.
|
||||
IPC_STRUCT_MEMBER(int, preview_request_id)
|
||||
IPC_STRUCT_END()
|
||||
-#endif // BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
|
||||
// Parameters to describe a rendered page.
|
||||
IPC_STRUCT_BEGIN(PrintHostMsg_DidPrintDocument_Params)
|
||||
@@ -321,10 +315,8 @@ IPC_STRUCT_END()
|
||||
@@ -345,10 +339,8 @@ IPC_STRUCT_END()
|
||||
|
||||
// Messages sent from the browser to the renderer.
|
||||
|
||||
@@ -181,7 +195,7 @@ index 6d02771d018d..cb8608f5b523 100644
|
||||
|
||||
// Tells the RenderFrame to initiate printing or print preview for a particular
|
||||
// node, depending on which mode the RenderFrame is in.
|
||||
@@ -346,13 +338,13 @@ IPC_MESSAGE_ROUTED1(PrintMsg_PrintingDone,
|
||||
@@ -373,13 +365,13 @@ IPC_MESSAGE_ROUTED1(PrintMsg_PrintingDone,
|
||||
// Tells the RenderFrame whether printing is enabled or not.
|
||||
IPC_MESSAGE_ROUTED1(PrintMsg_SetPrintingEnabled, bool /* enabled */)
|
||||
|
||||
@@ -196,7 +210,7 @@ index 6d02771d018d..cb8608f5b523 100644
|
||||
// Tells the RenderFrame that print preview dialog was closed.
|
||||
IPC_MESSAGE_ROUTED0(PrintMsg_ClosePrintPreviewDialog)
|
||||
#endif
|
||||
@@ -412,7 +404,6 @@ IPC_MESSAGE_CONTROL3(PrintHostMsg_TempFileForPrintingWritten,
|
||||
@@ -445,7 +437,6 @@ IPC_MESSAGE_CONTROL3(PrintHostMsg_TempFileForPrintingWritten,
|
||||
int /* page count */)
|
||||
#endif // defined(OS_ANDROID)
|
||||
|
||||
@@ -204,7 +218,7 @@ index 6d02771d018d..cb8608f5b523 100644
|
||||
// Asks the browser to do print preview.
|
||||
IPC_MESSAGE_ROUTED1(PrintHostMsg_RequestPrintPreview,
|
||||
PrintHostMsg_RequestPrintPreview_Params /* params */)
|
||||
@@ -446,7 +437,6 @@ IPC_SYNC_MESSAGE_ROUTED2_1(PrintHostMsg_CheckForCancel,
|
||||
@@ -479,7 +470,6 @@ IPC_SYNC_MESSAGE_ROUTED2_1(PrintHostMsg_CheckForCancel,
|
||||
// The memory handle in this message is already valid in the browser process.
|
||||
IPC_MESSAGE_ROUTED1(PrintHostMsg_MetafileReadyForPrinting,
|
||||
PrintHostMsg_DidPreviewDocument_Params /* params */)
|
||||
@@ -212,7 +226,7 @@ index 6d02771d018d..cb8608f5b523 100644
|
||||
|
||||
// This is sent when there are invalid printer settings.
|
||||
IPC_MESSAGE_ROUTED0(PrintHostMsg_ShowInvalidPrinterSettingsError)
|
||||
@@ -455,7 +445,6 @@ IPC_MESSAGE_ROUTED0(PrintHostMsg_ShowInvalidPrinterSettingsError)
|
||||
@@ -488,7 +478,6 @@ IPC_MESSAGE_ROUTED0(PrintHostMsg_ShowInvalidPrinterSettingsError)
|
||||
IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintingFailed,
|
||||
int /* document cookie */)
|
||||
|
||||
@@ -220,7 +234,7 @@ index 6d02771d018d..cb8608f5b523 100644
|
||||
// Tell the browser print preview failed.
|
||||
IPC_MESSAGE_ROUTED1(PrintHostMsg_PrintPreviewFailed,
|
||||
int /* document cookie */)
|
||||
@@ -482,6 +471,5 @@ IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview,
|
||||
@@ -515,6 +504,5 @@ IPC_MESSAGE_ROUTED1(PrintHostMsg_ShowScriptedPrintPreview,
|
||||
// Notify the browser to set print presets based on source PDF document.
|
||||
IPC_MESSAGE_ROUTED1(PrintHostMsg_SetOptionsFromDocument,
|
||||
PrintHostMsg_SetOptionsFromDocument_Params /* params */)
|
||||
@@ -228,10 +242,10 @@ index 6d02771d018d..cb8608f5b523 100644
|
||||
|
||||
#endif // COMPONENTS_PRINTING_COMMON_PRINT_MESSAGES_H_
|
||||
diff --git components/printing/renderer/print_render_frame_helper.cc components/printing/renderer/print_render_frame_helper.cc
|
||||
index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
index 2d81ba90d69c..0f70f15f2deb 100644
|
||||
--- components/printing/renderer/print_render_frame_helper.cc
|
||||
+++ components/printing/renderer/print_render_frame_helper.cc
|
||||
@@ -322,7 +322,6 @@ bool PrintingNodeOrPdfFrame(const blink::WebLocalFrame* frame,
|
||||
@@ -326,7 +326,6 @@ bool PrintingNodeOrPdfFrame(const blink::WebLocalFrame* frame,
|
||||
return plugin && plugin->SupportsPaginatedPrint();
|
||||
}
|
||||
|
||||
@@ -239,7 +253,7 @@ index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
// Returns true if the current destination printer is PRINT_TO_PDF.
|
||||
bool IsPrintToPdfRequested(const base::DictionaryValue& job_settings) {
|
||||
bool print_to_pdf = false;
|
||||
@@ -344,7 +343,6 @@ bool PrintingFrameHasPageSizeStyle(blink::WebLocalFrame* frame,
|
||||
@@ -348,7 +347,6 @@ bool PrintingFrameHasPageSizeStyle(blink::WebLocalFrame* frame,
|
||||
}
|
||||
return frame_has_custom_page_size_style;
|
||||
}
|
||||
@@ -247,7 +261,7 @@ index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
|
||||
#if BUILDFLAG(ENABLE_PRINTING)
|
||||
// Disable scaling when either:
|
||||
@@ -401,7 +399,6 @@ MarginType GetMarginsForPdf(blink::WebLocalFrame* frame,
|
||||
@@ -405,7 +403,6 @@ MarginType GetMarginsForPdf(blink::WebLocalFrame* frame,
|
||||
}
|
||||
#endif
|
||||
|
||||
@@ -255,7 +269,7 @@ index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
bool FitToPageEnabled(const base::DictionaryValue& job_settings) {
|
||||
bool fit_to_paper_size = false;
|
||||
if (!job_settings.GetBoolean(kSettingFitToPageEnabled, &fit_to_paper_size)) {
|
||||
@@ -443,7 +440,6 @@ blink::WebPrintScalingOption GetPrintScalingOption(
|
||||
@@ -447,7 +444,6 @@ blink::WebPrintScalingOption GetPrintScalingOption(
|
||||
}
|
||||
return blink::kWebPrintScalingOptionFitToPrintableArea;
|
||||
}
|
||||
@@ -263,7 +277,7 @@ index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
|
||||
// Helper function to scale and round an integer value with a double valued
|
||||
// scaling.
|
||||
@@ -952,6 +948,7 @@ PrintRenderFrameHelper::PrintRenderFrameHelper(
|
||||
@@ -951,6 +947,7 @@ PrintRenderFrameHelper::PrintRenderFrameHelper(
|
||||
notify_browser_of_print_failure_(true),
|
||||
delegate_(std::move(delegate)),
|
||||
print_node_in_progress_(false),
|
||||
@@ -271,7 +285,7 @@ index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
is_loading_(false),
|
||||
is_scripted_preview_delayed_(false),
|
||||
ipc_nesting_level_(0),
|
||||
@@ -1013,10 +1010,8 @@ void PrintRenderFrameHelper::ScriptedPrint(bool user_initiated) {
|
||||
@@ -1012,10 +1009,8 @@ void PrintRenderFrameHelper::ScriptedPrint(bool user_initiated) {
|
||||
return;
|
||||
|
||||
if (g_is_preview_enabled) {
|
||||
@@ -282,7 +296,7 @@ index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
} else {
|
||||
#if BUILDFLAG(ENABLE_BASIC_PRINTING)
|
||||
auto weak_this = weak_ptr_factory_.GetWeakPtr();
|
||||
@@ -1048,10 +1043,10 @@ bool PrintRenderFrameHelper::OnMessageReceived(const IPC::Message& message) {
|
||||
@@ -1047,10 +1042,10 @@ bool PrintRenderFrameHelper::OnMessageReceived(const IPC::Message& message) {
|
||||
IPC_MESSAGE_HANDLER(PrintMsg_PrintPages, OnPrintPages)
|
||||
IPC_MESSAGE_HANDLER(PrintMsg_PrintForSystemDialog, OnPrintForSystemDialog)
|
||||
#endif // BUILDFLAG(ENABLE_BASIC_PRINTING)
|
||||
@@ -302,25 +316,23 @@ index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
void PrintRenderFrameHelper::OnPrintPreview(
|
||||
const base::DictionaryValue& settings) {
|
||||
if (ipc_nesting_level_ > 1)
|
||||
@@ -1326,7 +1320,7 @@ bool PrintRenderFrameHelper::CreatePreviewDocument() {
|
||||
@@ -1319,7 +1313,6 @@ bool PrintRenderFrameHelper::CreatePreviewDocument() {
|
||||
return true;
|
||||
}
|
||||
|
||||
-#if !defined(OS_MACOSX) && BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
+#if !defined(OS_MACOSX)
|
||||
-#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
bool PrintRenderFrameHelper::RenderPreviewPage(
|
||||
int page_number,
|
||||
const PrintMsg_Print_Params& print_params) {
|
||||
@@ -1356,7 +1350,7 @@ bool PrintRenderFrameHelper::RenderPreviewPage(
|
||||
}
|
||||
return PreviewPageRendered(page_number, draft_metafile.get());
|
||||
@@ -1347,7 +1340,6 @@ bool PrintRenderFrameHelper::RenderPreviewPage(
|
||||
print_params.printed_doc_type);
|
||||
return PreviewPageRendered(page_number, std::move(metafile));
|
||||
}
|
||||
-#endif // !defined(OS_MACOSX) && BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
+#endif // !defined(OS_MACOSX)
|
||||
-#endif // BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
|
||||
bool PrintRenderFrameHelper::FinalizePrintReadyDocument() {
|
||||
DCHECK(!is_print_ready_metafile_sent_);
|
||||
@@ -1385,7 +1379,6 @@ bool PrintRenderFrameHelper::FinalizePrintReadyDocument() {
|
||||
@@ -1375,7 +1367,6 @@ bool PrintRenderFrameHelper::FinalizePrintReadyDocument() {
|
||||
Send(new PrintHostMsg_MetafileReadyForPrinting(routing_id(), preview_params));
|
||||
return true;
|
||||
}
|
||||
@@ -328,7 +340,7 @@ index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
|
||||
void PrintRenderFrameHelper::OnPrintingDone(bool success) {
|
||||
if (ipc_nesting_level_ > 1)
|
||||
@@ -1400,7 +1393,6 @@ void PrintRenderFrameHelper::OnSetPrintingEnabled(bool enabled) {
|
||||
@@ -1390,7 +1381,6 @@ void PrintRenderFrameHelper::OnSetPrintingEnabled(bool enabled) {
|
||||
is_printing_enabled_ = enabled;
|
||||
}
|
||||
|
||||
@@ -336,7 +348,7 @@ index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
void PrintRenderFrameHelper::OnInitiatePrintPreview(bool has_selection) {
|
||||
if (ipc_nesting_level_ > 1)
|
||||
return;
|
||||
@@ -1411,7 +1403,9 @@ void PrintRenderFrameHelper::OnInitiatePrintPreview(bool has_selection) {
|
||||
@@ -1401,7 +1391,9 @@ void PrintRenderFrameHelper::OnInitiatePrintPreview(bool has_selection) {
|
||||
// that instead.
|
||||
auto plugin = delegate_->GetPdfElement(frame);
|
||||
if (!plugin.IsNull()) {
|
||||
@@ -346,7 +358,7 @@ index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
return;
|
||||
}
|
||||
print_preview_context_.InitWithFrame(frame);
|
||||
@@ -1420,10 +1414,11 @@ void PrintRenderFrameHelper::OnInitiatePrintPreview(bool has_selection) {
|
||||
@@ -1410,10 +1402,11 @@ void PrintRenderFrameHelper::OnInitiatePrintPreview(bool has_selection) {
|
||||
: PRINT_PREVIEW_USER_INITIATED_ENTIRE_FRAME);
|
||||
}
|
||||
|
||||
@@ -357,9 +369,9 @@ index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
-#endif
|
||||
+#endif // BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
|
||||
bool PrintRenderFrameHelper::IsPrintingEnabled() const {
|
||||
return is_printing_enabled_;
|
||||
@@ -1445,11 +1440,9 @@ void PrintRenderFrameHelper::PrintNode(const blink::WebNode& node) {
|
||||
void PrintRenderFrameHelper::OnPrintFrameContent(
|
||||
const PrintMsg_PrintFrame_Params& params) {
|
||||
@@ -1497,11 +1490,9 @@ void PrintRenderFrameHelper::PrintNode(const blink::WebNode& node) {
|
||||
|
||||
print_node_in_progress_ = true;
|
||||
|
||||
@@ -372,7 +384,7 @@ index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
} else {
|
||||
#if BUILDFLAG(ENABLE_BASIC_PRINTING)
|
||||
// Make a copy of the node, in case RenderView::OnContextMenuClosed() resets
|
||||
@@ -1539,7 +1532,6 @@ void PrintRenderFrameHelper::DidFinishPrinting(PrintingResult result) {
|
||||
@@ -1595,7 +1586,6 @@ void PrintRenderFrameHelper::DidFinishPrinting(PrintingResult result) {
|
||||
}
|
||||
break;
|
||||
|
||||
@@ -380,7 +392,7 @@ index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
case FAIL_PREVIEW:
|
||||
if (!is_print_ready_metafile_sent_) {
|
||||
if (notify_browser_of_print_failure_) {
|
||||
@@ -1556,7 +1548,6 @@ void PrintRenderFrameHelper::DidFinishPrinting(PrintingResult result) {
|
||||
@@ -1612,7 +1602,6 @@ void PrintRenderFrameHelper::DidFinishPrinting(PrintingResult result) {
|
||||
cookie));
|
||||
print_preview_context_.Failed(false);
|
||||
break;
|
||||
@@ -388,7 +400,7 @@ index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
}
|
||||
prep_frame_view_.reset();
|
||||
print_pages_params_.reset();
|
||||
@@ -1727,7 +1718,6 @@ bool PrintRenderFrameHelper::CalculateNumberOfPages(blink::WebLocalFrame* frame,
|
||||
@@ -1782,7 +1771,6 @@ bool PrintRenderFrameHelper::CalculateNumberOfPages(blink::WebLocalFrame* frame,
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -396,7 +408,7 @@ index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
bool PrintRenderFrameHelper::SetOptionsFromPdfDocument(
|
||||
PrintHostMsg_SetOptionsFromDocument_Params* options) {
|
||||
blink::WebLocalFrame* source_frame = print_preview_context_.source_frame();
|
||||
@@ -1821,7 +1811,6 @@ bool PrintRenderFrameHelper::UpdatePrintSettings(
|
||||
@@ -1876,7 +1864,6 @@ bool PrintRenderFrameHelper::UpdatePrintSettings(
|
||||
print_preview_context_.set_error(PREVIEW_ERROR_INVALID_PRINTER_SETTINGS);
|
||||
return false;
|
||||
}
|
||||
@@ -404,7 +416,7 @@ index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
|
||||
#if BUILDFLAG(ENABLE_BASIC_PRINTING)
|
||||
void PrintRenderFrameHelper::GetPrintSettingsFromUser(
|
||||
@@ -1977,7 +1966,6 @@ bool PrintRenderFrameHelper::CopyMetafileDataToReadOnlySharedMem(
|
||||
@@ -2034,7 +2021,6 @@ bool PrintRenderFrameHelper::CopyMetafileDataToReadOnlySharedMem(
|
||||
return true;
|
||||
}
|
||||
|
||||
@@ -412,7 +424,7 @@ index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
void PrintRenderFrameHelper::ShowScriptedPrintPreview() {
|
||||
if (is_scripted_preview_delayed_) {
|
||||
is_scripted_preview_delayed_ = false;
|
||||
@@ -2112,7 +2100,6 @@ bool PrintRenderFrameHelper::PreviewPageRendered(int page_number,
|
||||
@@ -2157,7 +2143,6 @@ bool PrintRenderFrameHelper::PreviewPageRendered(
|
||||
Send(new PrintHostMsg_DidPreviewPage(routing_id(), preview_page_params));
|
||||
return true;
|
||||
}
|
||||
@@ -421,10 +433,10 @@ index 86c3b7a291e3..7a645cea6ebe 100644
|
||||
PrintRenderFrameHelper::PrintPreviewContext::PrintPreviewContext()
|
||||
: total_page_count_(0),
|
||||
diff --git components/printing/renderer/print_render_frame_helper.h components/printing/renderer/print_render_frame_helper.h
|
||||
index b087b9efe6ca..338710326b17 100644
|
||||
index 64a6dd6a1912..8c87d7565eca 100644
|
||||
--- components/printing/renderer/print_render_frame_helper.h
|
||||
+++ components/printing/renderer/print_render_frame_helper.h
|
||||
@@ -147,10 +147,8 @@ class PrintRenderFrameHelper
|
||||
@@ -145,10 +145,8 @@ class PrintRenderFrameHelper
|
||||
OK,
|
||||
FAIL_PRINT_INIT,
|
||||
FAIL_PRINT,
|
||||
@@ -434,7 +446,7 @@ index b087b9efe6ca..338710326b17 100644
|
||||
-#endif
|
||||
};
|
||||
|
||||
enum PrintPreviewErrorBuckets {
|
||||
// These values are persisted to logs. Entries should not be renumbered and
|
||||
@@ -186,9 +184,9 @@ class PrintRenderFrameHelper
|
||||
void OnPrintPages();
|
||||
void OnPrintForSystemDialog();
|
||||
@@ -445,8 +457,8 @@ index b087b9efe6ca..338710326b17 100644
|
||||
+#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
void OnClosePrintPreviewDialog();
|
||||
#endif // BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
void OnPrintingDone(bool success);
|
||||
@@ -203,7 +201,6 @@ class PrintRenderFrameHelper
|
||||
void OnPrintFrameContent(const PrintMsg_PrintFrame_Params& params);
|
||||
@@ -204,7 +202,6 @@ class PrintRenderFrameHelper
|
||||
// Update |ignore_css_margins_| based on settings.
|
||||
void UpdateFrameMarginsCssInfo(const base::DictionaryValue& settings);
|
||||
|
||||
@@ -454,7 +466,7 @@ index b087b9efe6ca..338710326b17 100644
|
||||
// Prepare frame for creating preview document.
|
||||
void PrepareFrameForPreviewDocument();
|
||||
|
||||
@@ -220,7 +217,6 @@ class PrintRenderFrameHelper
|
||||
@@ -221,7 +218,6 @@ class PrintRenderFrameHelper
|
||||
|
||||
// Finalize the print ready preview document.
|
||||
bool FinalizePrintReadyDocument();
|
||||
@@ -462,7 +474,7 @@ index b087b9efe6ca..338710326b17 100644
|
||||
|
||||
// Enable/Disable printing.
|
||||
void OnSetPrintingEnabled(bool enabled);
|
||||
@@ -250,7 +246,6 @@ class PrintRenderFrameHelper
|
||||
@@ -251,7 +247,6 @@ class PrintRenderFrameHelper
|
||||
const blink::WebNode& node,
|
||||
int* number_of_pages);
|
||||
|
||||
@@ -470,7 +482,7 @@ index b087b9efe6ca..338710326b17 100644
|
||||
// Set options for print preset from source PDF document.
|
||||
bool SetOptionsFromPdfDocument(
|
||||
PrintHostMsg_SetOptionsFromDocument_Params* options);
|
||||
@@ -261,7 +256,6 @@ class PrintRenderFrameHelper
|
||||
@@ -262,7 +257,6 @@ class PrintRenderFrameHelper
|
||||
bool UpdatePrintSettings(blink::WebLocalFrame* frame,
|
||||
const blink::WebNode& node,
|
||||
const base::DictionaryValue& passed_job_settings);
|
||||
@@ -478,7 +490,7 @@ index b087b9efe6ca..338710326b17 100644
|
||||
|
||||
#if BUILDFLAG(ENABLE_BASIC_PRINTING)
|
||||
// Get final print settings from the user.
|
||||
@@ -347,7 +341,6 @@ class PrintRenderFrameHelper
|
||||
@@ -348,7 +342,6 @@ class PrintRenderFrameHelper
|
||||
bool IsScriptInitiatedPrintAllowed(blink::WebLocalFrame* frame,
|
||||
bool user_initiated);
|
||||
|
||||
@@ -486,15 +498,15 @@ index b087b9efe6ca..338710326b17 100644
|
||||
// Shows scripted print preview when options from plugin are available.
|
||||
void ShowScriptedPrintPreview();
|
||||
|
||||
@@ -365,7 +358,6 @@ class PrintRenderFrameHelper
|
||||
// |metafile| is the rendered page. Otherwise |metafile| is NULL.
|
||||
@@ -367,7 +360,6 @@ class PrintRenderFrameHelper
|
||||
// Returns true if print preview should continue, false on failure.
|
||||
bool PreviewPageRendered(int page_number, PdfMetafileSkia* metafile);
|
||||
bool PreviewPageRendered(int page_number,
|
||||
std::unique_ptr<PdfMetafileSkia> metafile);
|
||||
-#endif // BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
|
||||
void SetPrintPagesParams(const PrintMsg_PrintPages_Params& settings);
|
||||
|
||||
@@ -523,6 +515,7 @@ class PrintRenderFrameHelper
|
||||
@@ -521,6 +513,7 @@ class PrintRenderFrameHelper
|
||||
ScriptingThrottler scripting_throttler_;
|
||||
|
||||
bool print_node_in_progress_;
|
||||
@@ -502,23 +514,16 @@ index b087b9efe6ca..338710326b17 100644
|
||||
PrintPreviewContext print_preview_context_;
|
||||
bool is_loading_;
|
||||
bool is_scripted_preview_delayed_;
|
||||
diff --git components/printing/renderer/print_render_frame_helper_mac.mm components/printing/renderer/print_render_frame_helper_mac.mm
|
||||
index 8cc4806de501..ba3d0dc6e621 100644
|
||||
--- components/printing/renderer/print_render_frame_helper_mac.mm
|
||||
+++ components/printing/renderer/print_render_frame_helper_mac.mm
|
||||
@@ -18,7 +18,6 @@
|
||||
diff --git components/pwg_encoder/BUILD.gn components/pwg_encoder/BUILD.gn
|
||||
index 452c53bff69f..abb4dc0e6219 100644
|
||||
--- components/pwg_encoder/BUILD.gn
|
||||
+++ components/pwg_encoder/BUILD.gn
|
||||
@@ -4,8 +4,6 @@
|
||||
|
||||
namespace printing {
|
||||
import("//printing/features/features.gni")
|
||||
|
||||
-#if BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
bool PrintRenderFrameHelper::RenderPreviewPage(
|
||||
int page_number,
|
||||
const PrintMsg_Print_Params& print_params) {
|
||||
@@ -56,7 +55,6 @@ bool PrintRenderFrameHelper::RenderPreviewPage(
|
||||
}
|
||||
return PreviewPageRendered(page_number, draft_metafile.get());
|
||||
}
|
||||
-#endif // BUILDFLAG(ENABLE_PRINT_PREVIEW)
|
||||
|
||||
void PrintRenderFrameHelper::PrintPageInternal(
|
||||
const PrintMsg_Print_Params& params,
|
||||
-assert(enable_print_preview)
|
||||
-
|
||||
static_library("pwg_encoder") {
|
||||
sources = [
|
||||
"bitmap_image.cc",
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git chrome/browser/printing/print_job_worker.cc chrome/browser/printing/print_job_worker.cc
|
||||
index 4f093cb61d69..60bb7a4f40ea 100644
|
||||
index ba99093fc98e..5e1da4621361 100644
|
||||
--- chrome/browser/printing/print_job_worker.cc
|
||||
+++ chrome/browser/printing/print_job_worker.cc
|
||||
@@ -140,6 +140,7 @@ PrintJobWorker::PrintJobWorker(int render_process_id,
|
||||
@@ -142,6 +142,7 @@ PrintJobWorker::PrintJobWorker(int render_process_id,
|
||||
weak_factory_(this) {
|
||||
// The object is created in the IO thread.
|
||||
DCHECK(owner_->RunsTasksInCurrentSequence());
|
||||
@@ -11,10 +11,10 @@ index 4f093cb61d69..60bb7a4f40ea 100644
|
||||
|
||||
PrintJobWorker::~PrintJobWorker() {
|
||||
diff --git printing/printing_context.h printing/printing_context.h
|
||||
index 96934fb0d0c8..39d0019a9826 100644
|
||||
index 885937908414..03f0f0837f80 100644
|
||||
--- printing/printing_context.h
|
||||
+++ printing/printing_context.h
|
||||
@@ -127,6 +127,13 @@ class PRINTING_EXPORT PrintingContext {
|
||||
@@ -133,6 +133,13 @@ class PRINTING_EXPORT PrintingContext {
|
||||
|
||||
int job_id() const { return job_id_; }
|
||||
|
||||
@@ -28,7 +28,7 @@ index 96934fb0d0c8..39d0019a9826 100644
|
||||
protected:
|
||||
explicit PrintingContext(Delegate* delegate);
|
||||
|
||||
@@ -151,6 +158,10 @@ class PRINTING_EXPORT PrintingContext {
|
||||
@@ -157,6 +164,10 @@ class PRINTING_EXPORT PrintingContext {
|
||||
// The job id for the current job. The value is 0 if no jobs are active.
|
||||
int job_id_;
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git content/browser/renderer_host/render_widget_host_view_aura.cc content/browser/renderer_host/render_widget_host_view_aura.cc
|
||||
index 5bebf776d70d..7e7eba1be689 100644
|
||||
index 087bc630062a..bd6ae8b47a1b 100644
|
||||
--- content/browser/renderer_host/render_widget_host_view_aura.cc
|
||||
+++ content/browser/renderer_host/render_widget_host_view_aura.cc
|
||||
@@ -434,13 +434,6 @@ RenderWidgetHostViewAura::RenderWidgetHostViewAura(
|
||||
@@ -433,13 +433,6 @@ RenderWidgetHostViewAura::RenderWidgetHostViewAura(
|
||||
selection_controller_client_.reset(
|
||||
new TouchSelectionControllerClientAura(this));
|
||||
CreateSelectionController();
|
||||
@@ -16,7 +16,7 @@ index 5bebf776d70d..7e7eba1be689 100644
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -780,8 +773,10 @@ void RenderWidgetHostViewAura::UpdateBackgroundColorFromRenderer(
|
||||
@@ -789,8 +782,10 @@ void RenderWidgetHostViewAura::UpdateBackgroundColorFromRenderer(
|
||||
background_color_ = color;
|
||||
|
||||
bool opaque = SkColorGetA(color) == SK_AlphaOPAQUE;
|
||||
@@ -29,9 +29,9 @@ index 5bebf776d70d..7e7eba1be689 100644
|
||||
}
|
||||
|
||||
bool RenderWidgetHostViewAura::IsMouseLocked() {
|
||||
@@ -1937,6 +1932,15 @@ void RenderWidgetHostViewAura::CreateAuraWindow(aura::client::WindowType type) {
|
||||
window_->Init(ui::LAYER_SOLID_COLOR);
|
||||
window_->layer()->SetColor(background_color_);
|
||||
@@ -1922,6 +1917,15 @@ void RenderWidgetHostViewAura::CreateAuraWindow(aura::client::WindowType type) {
|
||||
if (frame_sink_id_.is_valid())
|
||||
window_->SetEmbedFrameSinkId(frame_sink_id_);
|
||||
|
||||
+ // Do this after |window_| is created to avoid crashes on Win10.
|
||||
+ // See https://crbug.com/761389.
|
||||
@@ -42,6 +42,6 @@ index 5bebf776d70d..7e7eba1be689 100644
|
||||
+ ignore_result(rvh->GetWebkitPreferences());
|
||||
+ }
|
||||
+
|
||||
if (!IsUsingMus())
|
||||
if (!features::IsMusEnabled())
|
||||
return;
|
||||
|
||||
|
@@ -1,5 +1,5 @@
|
||||
diff --git chrome/browser/spellchecker/spellcheck_factory.cc chrome/browser/spellchecker/spellcheck_factory.cc
|
||||
index f02ff11f8500..640ada6c2ce1 100644
|
||||
index 20054d12bc55..106c18216e57 100644
|
||||
--- chrome/browser/spellchecker/spellcheck_factory.cc
|
||||
+++ chrome/browser/spellchecker/spellcheck_factory.cc
|
||||
@@ -18,6 +18,13 @@
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git services/service_manager/embedder/main.cc services/service_manager/embedder/main.cc
|
||||
index 08ea94a11772..873726c6ea19 100644
|
||||
index ed36168629af..20be6bed9f79 100644
|
||||
--- services/service_manager/embedder/main.cc
|
||||
+++ services/service_manager/embedder/main.cc
|
||||
@@ -304,13 +304,30 @@ int RunService(MainDelegate* delegate) {
|
||||
@@ -301,13 +301,30 @@ int RunService(MainDelegate* delegate) {
|
||||
return exit_code;
|
||||
}
|
||||
|
||||
@@ -34,7 +34,7 @@ index 08ea94a11772..873726c6ea19 100644
|
||||
MainDelegate* delegate = params.delegate;
|
||||
DCHECK(delegate);
|
||||
|
||||
@@ -378,30 +395,14 @@ int Main(const MainParams& params) {
|
||||
@@ -375,30 +392,14 @@ int Main(const MainParams& params) {
|
||||
MainDelegate::InitializeParams init_params;
|
||||
|
||||
#if defined(OS_MACOSX)
|
||||
@@ -69,7 +69,7 @@ index 08ea94a11772..873726c6ea19 100644
|
||||
mojo_config.max_message_num_bytes = kMaximumMojoMessageSize;
|
||||
delegate->OverrideMojoConfiguration(&mojo_config);
|
||||
mojo::edk::Init(mojo_config);
|
||||
@@ -436,6 +437,16 @@ int Main(const MainParams& params) {
|
||||
@@ -433,6 +434,16 @@ int Main(const MainParams& params) {
|
||||
trace_config, base::trace_event::TraceLog::RECORDING_MODE);
|
||||
}
|
||||
|
||||
@@ -86,7 +86,7 @@ index 08ea94a11772..873726c6ea19 100644
|
||||
switch (process_type) {
|
||||
case ProcessType::kDefault:
|
||||
NOTREACHED();
|
||||
@@ -457,6 +468,8 @@ int Main(const MainParams& params) {
|
||||
@@ -454,6 +465,8 @@ int Main(const MainParams& params) {
|
||||
break;
|
||||
}
|
||||
|
||||
@@ -95,7 +95,7 @@ index 08ea94a11772..873726c6ea19 100644
|
||||
if (tracker) {
|
||||
if (exit_code == 0) {
|
||||
tracker->SetProcessPhaseIfEnabled(
|
||||
@@ -468,13 +481,38 @@ int Main(const MainParams& params) {
|
||||
@@ -465,13 +478,38 @@ int Main(const MainParams& params) {
|
||||
}
|
||||
}
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git content/browser/appcache/appcache_internals_ui.cc content/browser/appcache/appcache_internals_ui.cc
|
||||
index 71bf90c54ae5..d3308da307d7 100644
|
||||
index b5f06abaeb8a..dd0fac00e45e 100644
|
||||
--- content/browser/appcache/appcache_internals_ui.cc
|
||||
+++ content/browser/appcache/appcache_internals_ui.cc
|
||||
@@ -372,8 +372,8 @@ void AppCacheInternalsUI::CreateProxyForPartition(
|
||||
@@ -371,8 +371,8 @@ void AppCacheInternalsUI::CreateProxyForPartition(
|
||||
StoragePartition* storage_partition) {
|
||||
scoped_refptr<Proxy> proxy =
|
||||
new Proxy(weak_ptr_factory_.GetWeakPtr(), storage_partition->GetPath());
|
||||
@@ -28,10 +28,10 @@ index be53f5115d3d..92f09f04f3a1 100644
|
||||
origin, std::move(request)));
|
||||
}
|
||||
diff --git content/browser/blob_storage/chrome_blob_storage_context.cc content/browser/blob_storage/chrome_blob_storage_context.cc
|
||||
index 0478c2f4dccf..4faa6c1d4b46 100644
|
||||
index 05e3cc192262..3775eab5323b 100644
|
||||
--- content/browser/blob_storage/chrome_blob_storage_context.cc
|
||||
+++ content/browser/blob_storage/chrome_blob_storage_context.cc
|
||||
@@ -76,6 +76,11 @@ class BlobHandleImpl : public BlobHandle {
|
||||
@@ -85,6 +85,11 @@ class BlobHandleImpl : public BlobHandle {
|
||||
|
||||
ChromeBlobStorageContext::ChromeBlobStorageContext() {}
|
||||
|
||||
@@ -73,10 +73,10 @@ index e5c7291dcc8f..0eec8a11db35 100644
|
||||
partition->GetBluetoothAllowedDevicesMap();
|
||||
return allowed_devices_map->GetOrCreateAllowedDevices(GetOrigin());
|
||||
diff --git content/browser/browser_context.cc content/browser/browser_context.cc
|
||||
index 125078b9cb44..b24609a807ba 100644
|
||||
index 0cf6cde723e6..ae04e57bfcbb 100644
|
||||
--- content/browser/browser_context.cc
|
||||
+++ content/browser/browser_context.cc
|
||||
@@ -127,11 +127,18 @@ StoragePartition* GetStoragePartitionFromConfig(
|
||||
@@ -132,11 +132,18 @@ StoragePartition* GetStoragePartitionFromConfig(
|
||||
StoragePartitionImplMap* partition_map =
|
||||
GetStoragePartitionMap(browser_context);
|
||||
|
||||
@@ -98,7 +98,7 @@ index 125078b9cb44..b24609a807ba 100644
|
||||
}
|
||||
|
||||
void SaveSessionStateOnIOThread(
|
||||
@@ -553,6 +560,11 @@ ServiceManagerConnection* BrowserContext::GetServiceManagerConnectionFor(
|
||||
@@ -579,6 +586,11 @@ ServiceManagerConnection* BrowserContext::GetServiceManagerConnectionFor(
|
||||
BrowserContext::BrowserContext()
|
||||
: media_device_id_salt_(CreateRandomMediaDeviceIDSalt()) {}
|
||||
|
||||
@@ -111,24 +111,46 @@ index 125078b9cb44..b24609a807ba 100644
|
||||
CHECK(GetUserData(kMojoWasInitialized))
|
||||
<< "Attempting to destroy a BrowserContext that never called "
|
||||
diff --git content/browser/devtools/protocol/service_worker_handler.cc content/browser/devtools/protocol/service_worker_handler.cc
|
||||
index 64dff1f030bb..244f62ec40dc 100644
|
||||
index 5501f6ad645d..7ecacac8c92d 100644
|
||||
--- content/browser/devtools/protocol/service_worker_handler.cc
|
||||
+++ content/browser/devtools/protocol/service_worker_handler.cc
|
||||
@@ -337,8 +337,7 @@ Response ServiceWorkerHandler::DispatchSyncEvent(
|
||||
if (!base::StringToInt64(registration_id, &id))
|
||||
return CreateInvalidVersionIdErrorResponse();
|
||||
@@ -170,8 +170,7 @@ void ServiceWorkerHandler::SetRenderer(int process_host_id,
|
||||
return;
|
||||
}
|
||||
|
||||
- StoragePartitionImpl* partition =
|
||||
- static_cast<StoragePartitionImpl*>(process_->GetStoragePartition());
|
||||
+ StoragePartition* partition = process_->GetStoragePartition();
|
||||
BackgroundSyncContext* sync_context = partition->GetBackgroundSyncContext();
|
||||
- storage_partition_ =
|
||||
- static_cast<StoragePartitionImpl*>(process_host->GetStoragePartition());
|
||||
+ storage_partition_ = process_host->GetStoragePartition();
|
||||
DCHECK(storage_partition_);
|
||||
context_ = static_cast<ServiceWorkerContextWrapper*>(
|
||||
storage_partition_->GetServiceWorkerContext());
|
||||
diff --git content/browser/devtools/protocol/service_worker_handler.h content/browser/devtools/protocol/service_worker_handler.h
|
||||
index ec9ab86d0ca6..0fe5219f1e84 100644
|
||||
--- content/browser/devtools/protocol/service_worker_handler.h
|
||||
+++ content/browser/devtools/protocol/service_worker_handler.h
|
||||
@@ -24,7 +24,7 @@ class BrowserContext;
|
||||
class RenderFrameHostImpl;
|
||||
class ServiceWorkerContextWatcher;
|
||||
class ServiceWorkerContextWrapper;
|
||||
-class StoragePartitionImpl;
|
||||
+class StoragePartition;
|
||||
|
||||
namespace protocol {
|
||||
|
||||
@@ -74,7 +74,7 @@ class ServiceWorkerHandler : public DevToolsDomainHandler,
|
||||
bool enabled_;
|
||||
scoped_refptr<ServiceWorkerContextWatcher> context_watcher_;
|
||||
BrowserContext* browser_context_;
|
||||
- StoragePartitionImpl* storage_partition_;
|
||||
+ StoragePartition* storage_partition_;
|
||||
|
||||
base::WeakPtrFactory<ServiceWorkerHandler> weak_factory_;
|
||||
|
||||
BrowserThread::PostTask(BrowserThread::IO, FROM_HERE,
|
||||
diff --git content/browser/download/download_manager_impl.cc content/browser/download/download_manager_impl.cc
|
||||
index 11eb1d3b732a..52962a868999 100644
|
||||
index 02470e87915b..38caa4e8a936 100644
|
||||
--- content/browser/download/download_manager_impl.cc
|
||||
+++ content/browser/download/download_manager_impl.cc
|
||||
@@ -73,9 +73,9 @@
|
||||
@@ -78,9 +78,9 @@
|
||||
namespace content {
|
||||
namespace {
|
||||
|
||||
@@ -141,7 +163,7 @@ index 11eb1d3b732a..52962a868999 100644
|
||||
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
||||
|
||||
SiteInstance* site_instance = nullptr;
|
||||
@@ -85,8 +85,7 @@ StoragePartitionImpl* GetStoragePartition(BrowserContext* context,
|
||||
@@ -90,8 +90,7 @@ StoragePartitionImpl* GetStoragePartition(BrowserContext* context,
|
||||
if (render_frame_host_)
|
||||
site_instance = render_frame_host_->GetSiteInstance();
|
||||
}
|
||||
@@ -151,8 +173,8 @@ index 11eb1d3b732a..52962a868999 100644
|
||||
}
|
||||
|
||||
bool CanRequestURLFromRenderer(int render_process_id, GURL url) {
|
||||
@@ -1069,7 +1068,7 @@ void DownloadManagerImpl::BeginDownloadInternal(
|
||||
if (base::FeatureList::IsEnabled(features::kNetworkService)) {
|
||||
@@ -1161,7 +1160,7 @@ void DownloadManagerImpl::BeginDownloadInternal(
|
||||
if (base::FeatureList::IsEnabled(network::features::kNetworkService)) {
|
||||
std::unique_ptr<network::ResourceRequest> request =
|
||||
CreateResourceRequest(params.get());
|
||||
- StoragePartitionImpl* storage_partition =
|
||||
@@ -160,22 +182,36 @@ index 11eb1d3b732a..52962a868999 100644
|
||||
GetStoragePartition(browser_context_, params->render_process_host_id(),
|
||||
params->render_frame_host_routing_id());
|
||||
|
||||
@@ -1090,7 +1089,8 @@ void DownloadManagerImpl::BeginDownloadInternal(
|
||||
@@ -1182,7 +1181,8 @@ void DownloadManagerImpl::BeginDownloadInternal(
|
||||
BrowserThread::IO, FROM_HERE,
|
||||
base::BindOnce(
|
||||
&BeginResourceDownload, std::move(params), std::move(request),
|
||||
- storage_partition->url_loader_factory_getter(),
|
||||
+ base::WrapRefCounted(
|
||||
+ storage_partition->url_loader_factory_getter()),
|
||||
base::WrapRefCounted(storage_partition->GetFileSystemContext()), id,
|
||||
weak_factory_.GetWeakPtr(), site_url, tab_url, tab_referrer_url),
|
||||
base::BindOnce(&BeginResourceDownload, std::move(params),
|
||||
std::move(request), std::move(blob_data_handle),
|
||||
- storage_partition->url_loader_factory_getter(), id,
|
||||
+ base::WrapRefCounted(
|
||||
+ storage_partition->url_loader_factory_getter()), id,
|
||||
weak_factory_.GetWeakPtr(), site_url, tab_url,
|
||||
tab_referrer_url),
|
||||
base::BindOnce(&DownloadManagerImpl::AddUrlDownloadHandler,
|
||||
diff --git content/browser/download/parallel_download_job.cc content/browser/download/parallel_download_job.cc
|
||||
index de25ae93f74d..73f490f783c9 100644
|
||||
--- content/browser/download/parallel_download_job.cc
|
||||
+++ content/browser/download/parallel_download_job.cc
|
||||
@@ -304,8 +304,7 @@ void ParallelDownloadJob::CreateRequest(int64_t offset, int64_t length) {
|
||||
|
||||
// Send the request.
|
||||
worker->SendRequest(std::move(download_params),
|
||||
- static_cast<StoragePartitionImpl*>(storage_partition)
|
||||
- ->url_loader_factory_getter());
|
||||
+ storage_partition->url_loader_factory_getter());
|
||||
DCHECK(workers_.find(offset) == workers_.end());
|
||||
workers_[offset] = std::move(worker);
|
||||
}
|
||||
diff --git content/browser/loader/navigation_url_loader_network_service.cc content/browser/loader/navigation_url_loader_network_service.cc
|
||||
index d9297fa8365e..38a3fb629a7a 100644
|
||||
index 8e4c4a42b0a0..f78f3d3817ae 100644
|
||||
--- content/browser/loader/navigation_url_loader_network_service.cc
|
||||
+++ content/browser/loader/navigation_url_loader_network_service.cc
|
||||
@@ -868,11 +868,12 @@ NavigationURLLoaderNetworkService::NavigationURLLoaderNetworkService(
|
||||
.PassInterface();
|
||||
@@ -1020,11 +1020,12 @@ NavigationURLLoaderNetworkService::NavigationURLLoaderNetworkService(
|
||||
}
|
||||
}
|
||||
|
||||
- auto* partition = static_cast<StoragePartitionImpl*>(storage_partition);
|
||||
@@ -187,13 +223,29 @@ index d9297fa8365e..38a3fb629a7a 100644
|
||||
+ base::WrapRefCounted(partition->url_loader_factory_getter()),
|
||||
+ request_info->common_params.url,
|
||||
request_info->begin_params->initiator_origin,
|
||||
request_info->begin_params->suggested_filename,
|
||||
weak_factory_.GetWeakPtr());
|
||||
request_info->common_params.suggested_filename,
|
||||
std::move(proxied_factory_request), std::move(proxied_factory_info),
|
||||
diff --git content/browser/payments/payment_app_installer.cc content/browser/payments/payment_app_installer.cc
|
||||
index d01fb931d358..962d10d44141 100644
|
||||
--- content/browser/payments/payment_app_installer.cc
|
||||
+++ content/browser/payments/payment_app_installer.cc
|
||||
@@ -125,9 +125,9 @@ class SelfDeleteInstaller
|
||||
void SetPaymentAppIntoDatabase() {
|
||||
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
||||
|
||||
- StoragePartitionImpl* partition = static_cast<StoragePartitionImpl*>(
|
||||
+ StoragePartition* partition =
|
||||
BrowserContext::GetDefaultStoragePartition(
|
||||
- web_contents()->GetBrowserContext()));
|
||||
+ web_contents()->GetBrowserContext());
|
||||
scoped_refptr<PaymentAppContextImpl> payment_app_context =
|
||||
partition->GetPaymentAppContext();
|
||||
|
||||
diff --git content/browser/payments/payment_app_provider_impl.cc content/browser/payments/payment_app_provider_impl.cc
|
||||
index b9d2670514c0..004939aa055a 100644
|
||||
index d899d32fd383..7e62c70fc70a 100644
|
||||
--- content/browser/payments/payment_app_provider_impl.cc
|
||||
+++ content/browser/payments/payment_app_provider_impl.cc
|
||||
@@ -328,10 +328,11 @@ void StartServiceWorkerForDispatch(BrowserContext* browser_context,
|
||||
@@ -329,10 +329,11 @@ void StartServiceWorkerForDispatch(BrowserContext* browser_context,
|
||||
ServiceWorkerStartCallback callback) {
|
||||
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
||||
|
||||
@@ -208,7 +260,7 @@ index b9d2670514c0..004939aa055a 100644
|
||||
|
||||
BrowserThread::PostTask(
|
||||
BrowserThread::IO, FROM_HERE,
|
||||
@@ -357,8 +358,8 @@ void PaymentAppProviderImpl::GetAllPaymentApps(
|
||||
@@ -373,8 +374,8 @@ void PaymentAppProviderImpl::GetAllPaymentApps(
|
||||
GetAllPaymentAppsCallback callback) {
|
||||
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
||||
|
||||
@@ -220,10 +272,10 @@ index b9d2670514c0..004939aa055a 100644
|
||||
partition->GetPaymentAppContext();
|
||||
|
||||
diff --git content/browser/renderer_host/render_process_host_impl.cc content/browser/renderer_host/render_process_host_impl.cc
|
||||
index 22c72f3ac929..c12815670521 100644
|
||||
index 8c34d8e7af5e..55c0060a6c81 100644
|
||||
--- content/browser/renderer_host/render_process_host_impl.cc
|
||||
+++ content/browser/renderer_host/render_process_host_impl.cc
|
||||
@@ -497,9 +497,8 @@ class SpareRenderProcessHostManager : public RenderProcessHostObserver {
|
||||
@@ -500,9 +500,8 @@ class SpareRenderProcessHostManager : public RenderProcessHostObserver {
|
||||
SpareRenderProcessHostManager() {}
|
||||
|
||||
void WarmupSpareRenderProcessHost(BrowserContext* browser_context) {
|
||||
@@ -235,7 +287,7 @@ index 22c72f3ac929..c12815670521 100644
|
||||
|
||||
if (spare_render_process_host_ &&
|
||||
matching_browser_context_ == browser_context &&
|
||||
@@ -638,11 +637,10 @@ class DefaultSubframeProcessHostHolder : public base::SupportsUserData::Data,
|
||||
@@ -641,11 +640,10 @@ class DefaultSubframeProcessHostHolder : public base::SupportsUserData::Data,
|
||||
// Gets the correct render process to use for this SiteInstance.
|
||||
RenderProcessHost* GetProcessHost(SiteInstance* site_instance,
|
||||
bool is_for_guests_only) {
|
||||
@@ -251,7 +303,7 @@ index 22c72f3ac929..c12815670521 100644
|
||||
|
||||
// Is this the default storage partition? If it isn't, then just give it its
|
||||
// own non-shared process.
|
||||
@@ -1237,7 +1235,7 @@ void RenderProcessHost::SetMaxRendererProcessCount(size_t count) {
|
||||
@@ -1240,7 +1238,7 @@ void RenderProcessHost::SetMaxRendererProcessCount(size_t count) {
|
||||
// static
|
||||
RenderProcessHost* RenderProcessHostImpl::CreateRenderProcessHost(
|
||||
BrowserContext* browser_context,
|
||||
@@ -260,7 +312,7 @@ index 22c72f3ac929..c12815670521 100644
|
||||
SiteInstance* site_instance,
|
||||
bool is_for_guests_only) {
|
||||
if (g_render_process_host_factory_) {
|
||||
@@ -1246,8 +1244,8 @@ RenderProcessHost* RenderProcessHostImpl::CreateRenderProcessHost(
|
||||
@@ -1249,8 +1247,8 @@ RenderProcessHost* RenderProcessHostImpl::CreateRenderProcessHost(
|
||||
}
|
||||
|
||||
if (!storage_partition_impl) {
|
||||
@@ -271,7 +323,7 @@ index 22c72f3ac929..c12815670521 100644
|
||||
}
|
||||
// If we've made a StoragePartition for guests (e.g., for the <webview> tag),
|
||||
// stash the Site URL on it. This way, when we start a service worker inside
|
||||
@@ -1269,7 +1267,7 @@ RenderProcessHost* RenderProcessHostImpl::CreateRenderProcessHost(
|
||||
@@ -1272,7 +1270,7 @@ RenderProcessHost* RenderProcessHostImpl::CreateRenderProcessHost(
|
||||
// static
|
||||
RenderProcessHost* RenderProcessHostImpl::CreateOrUseSpareRenderProcessHost(
|
||||
BrowserContext* browser_context,
|
||||
@@ -280,7 +332,7 @@ index 22c72f3ac929..c12815670521 100644
|
||||
SiteInstance* site_instance,
|
||||
bool is_for_guests_only) {
|
||||
RenderProcessHost* render_process_host =
|
||||
@@ -1289,7 +1287,7 @@ RenderProcessHost* RenderProcessHostImpl::CreateOrUseSpareRenderProcessHost(
|
||||
@@ -1292,7 +1290,7 @@ RenderProcessHost* RenderProcessHostImpl::CreateOrUseSpareRenderProcessHost(
|
||||
|
||||
RenderProcessHostImpl::RenderProcessHostImpl(
|
||||
BrowserContext* browser_context,
|
||||
@@ -289,7 +341,7 @@ index 22c72f3ac929..c12815670521 100644
|
||||
bool is_for_guests_only)
|
||||
: fast_shutdown_started_(false),
|
||||
deleting_soon_(false),
|
||||
@@ -1322,7 +1320,8 @@ RenderProcessHostImpl::RenderProcessHostImpl(
|
||||
@@ -1325,7 +1323,8 @@ RenderProcessHostImpl::RenderProcessHostImpl(
|
||||
indexed_db_factory_(new IndexedDBDispatcherHost(
|
||||
id_,
|
||||
storage_partition_impl_->GetURLRequestContext(),
|
||||
@@ -299,7 +351,7 @@ index 22c72f3ac929..c12815670521 100644
|
||||
ChromeBlobStorageContext::GetFor(browser_context_))),
|
||||
channel_connected_(false),
|
||||
sent_render_process_ready_(false),
|
||||
@@ -1356,7 +1355,8 @@ RenderProcessHostImpl::RenderProcessHostImpl(
|
||||
@@ -1359,7 +1358,8 @@ RenderProcessHostImpl::RenderProcessHostImpl(
|
||||
}
|
||||
|
||||
push_messaging_manager_.reset(new PushMessagingManager(
|
||||
@@ -309,7 +361,7 @@ index 22c72f3ac929..c12815670521 100644
|
||||
|
||||
AddObserver(indexed_db_factory_.get());
|
||||
|
||||
@@ -1671,6 +1671,20 @@ void RenderProcessHostImpl::ResetChannelProxy() {
|
||||
@@ -1680,6 +1680,20 @@ void RenderProcessHostImpl::ResetChannelProxy() {
|
||||
|
||||
void RenderProcessHostImpl::CreateMessageFilters() {
|
||||
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
||||
@@ -330,7 +382,7 @@ index 22c72f3ac929..c12815670521 100644
|
||||
AddFilter(new ResourceSchedulerFilter(GetID()));
|
||||
MediaInternals* media_internals = MediaInternals::GetInstance();
|
||||
// Add BrowserPluginMessageFilter to ensure it gets the first stab at messages
|
||||
@@ -1685,8 +1699,8 @@ void RenderProcessHostImpl::CreateMessageFilters() {
|
||||
@@ -1694,8 +1708,8 @@ void RenderProcessHostImpl::CreateMessageFilters() {
|
||||
new RenderMessageFilter(
|
||||
GetID(), GetBrowserContext(), request_context.get(),
|
||||
widget_helper_.get(), media_internals,
|
||||
@@ -341,7 +393,7 @@ index 22c72f3ac929..c12815670521 100644
|
||||
AddFilter(render_message_filter.get());
|
||||
|
||||
render_frame_message_filter_ = new RenderFrameMessageFilter(
|
||||
@@ -1715,10 +1729,10 @@ void RenderProcessHostImpl::CreateMessageFilters() {
|
||||
@@ -1724,10 +1738,10 @@ void RenderProcessHostImpl::CreateMessageFilters() {
|
||||
ChromeBlobStorageContext::GetFor(browser_context);
|
||||
|
||||
resource_message_filter_ = new ResourceMessageFilter(
|
||||
@@ -349,12 +401,12 @@ index 22c72f3ac929..c12815670521 100644
|
||||
+ GetID(), app_cache_service,
|
||||
blob_storage_context.get(),
|
||||
storage_partition_impl_->GetFileSystemContext(),
|
||||
- storage_partition_impl_->GetServiceWorkerContext(), get_contexts_callback,
|
||||
+ service_worker_context, get_contexts_callback,
|
||||
- storage_partition_impl_->GetServiceWorkerContext(),
|
||||
+ service_worker_context,
|
||||
storage_partition_impl_->GetPrefetchURLLoaderService(),
|
||||
get_contexts_callback,
|
||||
BrowserThread::GetTaskRunnerForThread(BrowserThread::IO));
|
||||
|
||||
AddFilter(resource_message_filter_.get());
|
||||
@@ -1743,8 +1757,7 @@ void RenderProcessHostImpl::CreateMessageFilters() {
|
||||
@@ -1754,8 +1768,7 @@ void RenderProcessHostImpl::CreateMessageFilters() {
|
||||
}
|
||||
AddFilter(
|
||||
new MidiHost(GetID(), BrowserMainLoop::GetInstance()->midi_service()));
|
||||
@@ -364,7 +416,7 @@ index 22c72f3ac929..c12815670521 100644
|
||||
|
||||
#if BUILDFLAG(ENABLE_WEBRTC)
|
||||
peer_connection_tracker_host_ = new PeerConnectionTrackerHost(GetID());
|
||||
@@ -1767,13 +1780,12 @@ void RenderProcessHostImpl::CreateMessageFilters() {
|
||||
@@ -1778,13 +1791,12 @@ void RenderProcessHostImpl::CreateMessageFilters() {
|
||||
|
||||
scoped_refptr<CacheStorageDispatcherHost> cache_storage_filter =
|
||||
new CacheStorageDispatcherHost();
|
||||
@@ -380,7 +432,7 @@ index 22c72f3ac929..c12815670521 100644
|
||||
AddFilter(service_worker_filter.get());
|
||||
|
||||
#if BUILDFLAG(ENABLE_WEBRTC)
|
||||
@@ -1785,11 +1797,8 @@ void RenderProcessHostImpl::CreateMessageFilters() {
|
||||
@@ -1796,11 +1808,8 @@ void RenderProcessHostImpl::CreateMessageFilters() {
|
||||
AddFilter(new TraceMessageFilter(GetID()));
|
||||
AddFilter(new ResolveProxyMsgHelper(request_context.get()));
|
||||
|
||||
@@ -393,7 +445,7 @@ index 22c72f3ac929..c12815670521 100644
|
||||
resource_context, service_worker_context, browser_context);
|
||||
AddFilter(notification_message_filter_.get());
|
||||
|
||||
@@ -1931,7 +1940,8 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
|
||||
@@ -1934,7 +1943,8 @@ void RenderProcessHostImpl::RegisterMojoInterfaces() {
|
||||
|
||||
registry->AddInterface(base::BindRepeating(
|
||||
&AppCacheDispatcherHost::Create,
|
||||
@@ -404,7 +456,7 @@ index 22c72f3ac929..c12815670521 100644
|
||||
|
||||
AddUIThreadInterface(registry.get(), base::Bind(&FieldTrialRecorder::Create));
|
||||
diff --git content/browser/renderer_host/render_process_host_impl.h content/browser/renderer_host/render_process_host_impl.h
|
||||
index f81189990b1f..39afa6c9ecfd 100644
|
||||
index 51c2ff46b9ad..5e830df5d433 100644
|
||||
--- content/browser/renderer_host/render_process_host_impl.h
|
||||
+++ content/browser/renderer_host/render_process_host_impl.h
|
||||
@@ -83,7 +83,6 @@ class ResourceMessageFilter;
|
||||
@@ -414,8 +466,8 @@ index f81189990b1f..39afa6c9ecfd 100644
|
||||
-class StoragePartitionImpl;
|
||||
|
||||
#if BUILDFLAG(ENABLE_WEBRTC)
|
||||
class MediaStreamDispatcherHost;
|
||||
@@ -127,7 +126,7 @@ class CONTENT_EXPORT RenderProcessHostImpl
|
||||
class P2PSocketDispatcherHost;
|
||||
@@ -126,7 +125,7 @@ class CONTENT_EXPORT RenderProcessHostImpl
|
||||
// legal).
|
||||
static RenderProcessHost* CreateOrUseSpareRenderProcessHost(
|
||||
BrowserContext* browser_context,
|
||||
@@ -424,7 +476,7 @@ index f81189990b1f..39afa6c9ecfd 100644
|
||||
SiteInstance* site_instance,
|
||||
bool is_for_guests_only);
|
||||
|
||||
@@ -139,7 +138,7 @@ class CONTENT_EXPORT RenderProcessHostImpl
|
||||
@@ -138,7 +137,7 @@ class CONTENT_EXPORT RenderProcessHostImpl
|
||||
// null.
|
||||
static RenderProcessHost* CreateRenderProcessHost(
|
||||
BrowserContext* browser_context,
|
||||
@@ -433,7 +485,7 @@ index f81189990b1f..39afa6c9ecfd 100644
|
||||
SiteInstance* site_instance,
|
||||
bool is_for_guests_only);
|
||||
|
||||
@@ -420,7 +419,7 @@ class CONTENT_EXPORT RenderProcessHostImpl
|
||||
@@ -419,7 +418,7 @@ class CONTENT_EXPORT RenderProcessHostImpl
|
||||
// Use CreateRenderProcessHost() instead of calling this constructor
|
||||
// directly.
|
||||
RenderProcessHostImpl(BrowserContext* browser_context,
|
||||
@@ -442,7 +494,7 @@ index f81189990b1f..39afa6c9ecfd 100644
|
||||
bool is_for_guests_only);
|
||||
|
||||
// Initializes a new IPC::ChannelProxy in |channel_|, which will be connected
|
||||
@@ -656,10 +655,10 @@ class CONTENT_EXPORT RenderProcessHostImpl
|
||||
@@ -655,10 +654,10 @@ class CONTENT_EXPORT RenderProcessHostImpl
|
||||
// called.
|
||||
int instance_id_ = 1;
|
||||
|
||||
@@ -456,10 +508,10 @@ index f81189990b1f..39afa6c9ecfd 100644
|
||||
// The observers watching our lifetime.
|
||||
base::ObserverList<RenderProcessHostObserver> observers_;
|
||||
diff --git content/browser/renderer_interface_binders.cc content/browser/renderer_interface_binders.cc
|
||||
index 01ba96322f69..6dde251b3d1b 100644
|
||||
index 9b1c71bdb19c..891969b30d79 100644
|
||||
--- content/browser/renderer_interface_binders.cc
|
||||
+++ content/browser/renderer_interface_binders.cc
|
||||
@@ -133,7 +133,7 @@ void RendererInterfaceBinders::InitializeParameterizedBinderRegistry() {
|
||||
@@ -134,7 +134,7 @@ void RendererInterfaceBinders::InitializeParameterizedBinderRegistry() {
|
||||
parameterized_binder_registry_.AddInterface(
|
||||
base::Bind([](payments::mojom::PaymentManagerRequest request,
|
||||
RenderProcessHost* host, const url::Origin& origin) {
|
||||
@@ -468,7 +520,7 @@ index 01ba96322f69..6dde251b3d1b 100644
|
||||
->GetPaymentAppContext()
|
||||
->CreatePaymentManager(std::move(request));
|
||||
}));
|
||||
@@ -147,7 +147,7 @@ void RendererInterfaceBinders::InitializeParameterizedBinderRegistry() {
|
||||
@@ -148,7 +148,7 @@ void RendererInterfaceBinders::InitializeParameterizedBinderRegistry() {
|
||||
parameterized_binder_registry_.AddInterface(base::BindRepeating(
|
||||
[](blink::mojom::LockManagerRequest request, RenderProcessHost* host,
|
||||
const url::Origin& origin) {
|
||||
@@ -477,7 +529,7 @@ index 01ba96322f69..6dde251b3d1b 100644
|
||||
->GetLockManager()
|
||||
->CreateService(std::move(request), origin);
|
||||
}));
|
||||
@@ -156,9 +156,10 @@ void RendererInterfaceBinders::InitializeParameterizedBinderRegistry() {
|
||||
@@ -157,9 +157,10 @@ void RendererInterfaceBinders::InitializeParameterizedBinderRegistry() {
|
||||
parameterized_binder_registry_.AddInterface(
|
||||
base::Bind([](blink::mojom::NotificationServiceRequest request,
|
||||
RenderProcessHost* host, const url::Origin& origin) {
|
||||
@@ -492,28 +544,25 @@ index 01ba96322f69..6dde251b3d1b 100644
|
||||
parameterized_binder_registry_.AddInterface(
|
||||
base::BindRepeating(&BackgroundFetchServiceImpl::Create));
|
||||
diff --git content/browser/shared_worker/shared_worker_connector_impl.cc content/browser/shared_worker/shared_worker_connector_impl.cc
|
||||
index 1e95910e7168..45adb88b1e96 100644
|
||||
index 11b579bdeca4..8dcbe5ff390e 100644
|
||||
--- content/browser/shared_worker/shared_worker_connector_impl.cc
|
||||
+++ content/browser/shared_worker/shared_worker_connector_impl.cc
|
||||
@@ -34,10 +34,9 @@ void SharedWorkerConnectorImpl::Connect(
|
||||
mojom::SharedWorkerClientPtr client,
|
||||
blink::mojom::SharedWorkerCreationContextType creation_context_type,
|
||||
mojo::ScopedMessagePipeHandle message_port) {
|
||||
- SharedWorkerServiceImpl* service =
|
||||
- static_cast<StoragePartitionImpl*>(
|
||||
- RenderProcessHost::FromID(process_id_)->GetStoragePartition())
|
||||
@@ -41,8 +41,8 @@ void SharedWorkerConnectorImpl::Connect(
|
||||
return;
|
||||
}
|
||||
SharedWorkerServiceImpl* service =
|
||||
- static_cast<StoragePartitionImpl*>(host->GetStoragePartition())
|
||||
- ->GetSharedWorkerService();
|
||||
+ SharedWorkerServiceImpl* service = static_cast<SharedWorkerServiceImpl*>(
|
||||
+ RenderProcessHost::FromID(process_id_)->GetStoragePartition()
|
||||
+ static_cast<SharedWorkerServiceImpl*>(host->GetStoragePartition()
|
||||
+ ->GetSharedWorkerService());
|
||||
service->ConnectToWorker(process_id_, frame_id_, std::move(info),
|
||||
std::move(client), creation_context_type,
|
||||
blink::MessagePortChannel(std::move(message_port)));
|
||||
diff --git content/browser/storage_partition_impl.h content/browser/storage_partition_impl.h
|
||||
index 4fb38a200f04..182f14ead806 100644
|
||||
index 580d2e0d78d9..0309f5c1df48 100644
|
||||
--- content/browser/storage_partition_impl.h
|
||||
+++ content/browser/storage_partition_impl.h
|
||||
@@ -87,7 +87,7 @@ class CONTENT_EXPORT StoragePartitionImpl
|
||||
@@ -99,7 +99,7 @@ class CONTENT_EXPORT StoragePartitionImpl
|
||||
storage::FileSystemContext* GetFileSystemContext() override;
|
||||
storage::DatabaseTracker* GetDatabaseTracker() override;
|
||||
DOMStorageContextWrapper* GetDOMStorageContext() override;
|
||||
@@ -522,9 +571,9 @@ index 4fb38a200f04..182f14ead806 100644
|
||||
IndexedDBContextImpl* GetIndexedDBContext() override;
|
||||
CacheStorageContextImpl* GetCacheStorageContext() override;
|
||||
ServiceWorkerContextWrapper* GetServiceWorkerContext() override;
|
||||
@@ -124,13 +124,13 @@ class CONTENT_EXPORT StoragePartitionImpl
|
||||
void ClearBluetoothAllowedDevicesMapForTesting() override;
|
||||
@@ -137,14 +137,14 @@ class CONTENT_EXPORT StoragePartitionImpl
|
||||
void FlushNetworkInterfaceForTesting() override;
|
||||
void WaitForDeletionTasksForTesting() override;
|
||||
|
||||
- BackgroundFetchContext* GetBackgroundFetchContext();
|
||||
- BackgroundSyncContext* GetBackgroundSyncContext();
|
||||
@@ -533,6 +582,7 @@ index 4fb38a200f04..182f14ead806 100644
|
||||
- BluetoothAllowedDevicesMap* GetBluetoothAllowedDevicesMap();
|
||||
- BlobURLLoaderFactory* GetBlobURLLoaderFactory();
|
||||
- BlobRegistryWrapper* GetBlobRegistry();
|
||||
- PrefetchURLLoaderService* GetPrefetchURLLoaderService();
|
||||
+ BackgroundFetchContext* GetBackgroundFetchContext() override;
|
||||
+ BackgroundSyncContext* GetBackgroundSyncContext() override;
|
||||
+ PaymentAppContextImpl* GetPaymentAppContext() override;
|
||||
@@ -540,12 +590,13 @@ index 4fb38a200f04..182f14ead806 100644
|
||||
+ BluetoothAllowedDevicesMap* GetBluetoothAllowedDevicesMap() override;
|
||||
+ BlobURLLoaderFactory* GetBlobURLLoaderFactory() override;
|
||||
+ BlobRegistryWrapper* GetBlobRegistry() override;
|
||||
+ PrefetchURLLoaderService* GetPrefetchURLLoaderService() override;
|
||||
|
||||
// mojom::StoragePartitionService interface.
|
||||
void OpenLocalStorage(
|
||||
@@ -141,18 +141,18 @@ class CONTENT_EXPORT StoragePartitionImpl
|
||||
const url::Origin& origin,
|
||||
mojo::InterfaceRequest<mojom::LevelDBWrapper> request) override;
|
||||
void OpenLocalStorage(const url::Origin& origin,
|
||||
@@ -153,18 +153,18 @@ class CONTENT_EXPORT StoragePartitionImpl
|
||||
const std::string& namespace_id,
|
||||
mojom::SessionStorageNamespaceRequest request) override;
|
||||
|
||||
- scoped_refptr<URLLoaderFactoryGetter> url_loader_factory_getter() {
|
||||
- return url_loader_factory_getter_;
|
||||
@@ -566,7 +617,7 @@ index 4fb38a200f04..182f14ead806 100644
|
||||
|
||||
auto& bindings_for_testing() { return bindings_; }
|
||||
|
||||
@@ -163,10 +163,11 @@ class CONTENT_EXPORT StoragePartitionImpl
|
||||
@@ -175,10 +175,11 @@ class CONTENT_EXPORT StoragePartitionImpl
|
||||
// one must use the "chrome-guest://blahblah" site URL to ensure that the
|
||||
// service worker stays in this StoragePartition. This is an empty GURL if
|
||||
// this StoragePartition is not for guests.
|
||||
@@ -609,7 +660,7 @@ index 075ae3e7431e..57fb5fd2c4a8 100644
|
||||
|
||||
void InitializeOnIOThread();
|
||||
diff --git content/browser/webui/web_ui_url_loader_factory.cc content/browser/webui/web_ui_url_loader_factory.cc
|
||||
index 53845bd346ed..e2c023cd688e 100644
|
||||
index 32457c8510f9..27f3012f76f5 100644
|
||||
--- content/browser/webui/web_ui_url_loader_factory.cc
|
||||
+++ content/browser/webui/web_ui_url_loader_factory.cc
|
||||
@@ -20,13 +20,13 @@
|
||||
@@ -627,7 +678,7 @@ index 53845bd346ed..e2c023cd688e 100644
|
||||
#include "content/public/browser/web_contents.h"
|
||||
#include "content/public/browser/web_contents_observer.h"
|
||||
#include "content/public/common/url_constants.h"
|
||||
@@ -302,9 +302,8 @@ class WebUIURLLoaderFactory : public network::mojom::URLLoaderFactory,
|
||||
@@ -296,9 +296,8 @@ class WebUIURLLoaderFactory : public network::mojom::URLLoaderFactory,
|
||||
const std::string& scheme() const { return scheme_; }
|
||||
|
||||
private:
|
||||
@@ -640,10 +691,10 @@ index 53845bd346ed..e2c023cd688e 100644
|
||||
|
||||
RenderFrameHost* render_frame_host_;
|
||||
diff --git content/public/browser/browser_context.h content/public/browser/browser_context.h
|
||||
index f75be61ccdef..84f1063fb081 100644
|
||||
index 9edd7b1d9123..c61b034c68cc 100644
|
||||
--- content/public/browser/browser_context.h
|
||||
+++ content/public/browser/browser_context.h
|
||||
@@ -200,6 +200,8 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
|
||||
@@ -207,6 +207,8 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
|
||||
|
||||
BrowserContext();
|
||||
|
||||
@@ -652,7 +703,7 @@ index f75be61ccdef..84f1063fb081 100644
|
||||
~BrowserContext() override;
|
||||
|
||||
// Shuts down the storage partitions associated to this browser context.
|
||||
@@ -288,6 +290,14 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
|
||||
@@ -295,6 +297,14 @@ class CONTENT_EXPORT BrowserContext : public base::SupportsUserData {
|
||||
const base::FilePath& partition_path,
|
||||
bool in_memory) = 0;
|
||||
|
||||
@@ -668,18 +719,18 @@ index f75be61ccdef..84f1063fb081 100644
|
||||
std::map<std::string, service_manager::EmbeddedServiceInfo>;
|
||||
|
||||
diff --git content/public/browser/storage_partition.h content/public/browser/storage_partition.h
|
||||
index 9bf0a872f380..73ede1ccdedf 100644
|
||||
index 55c298e02b57..b277e50ab372 100644
|
||||
--- content/public/browser/storage_partition.h
|
||||
+++ content/public/browser/storage_partition.h
|
||||
@@ -13,6 +13,7 @@
|
||||
#include "base/files/file_path.h"
|
||||
@@ -14,6 +14,7 @@
|
||||
#include "base/time/time.h"
|
||||
#include "content/common/content_export.h"
|
||||
#include "content/public/common/shared_url_loader_factory.h"
|
||||
+#include "mojo/public/cpp/bindings/binding_set.h"
|
||||
#include "net/cookies/cookie_store.h"
|
||||
|
||||
class GURL;
|
||||
@@ -49,13 +50,22 @@ class DatabaseTracker;
|
||||
@@ -49,13 +50,23 @@ class DatabaseTracker;
|
||||
namespace content {
|
||||
|
||||
class AppCacheService;
|
||||
@@ -696,13 +747,14 @@ index 9bf0a872f380..73ede1ccdedf 100644
|
||||
+class LockManager;
|
||||
+class PaymentAppContextImpl;
|
||||
class PlatformNotificationContext;
|
||||
+class PrefetchURLLoaderService;
|
||||
class ServiceWorkerContext;
|
||||
class SharedWorkerService;
|
||||
+class URLLoaderFactoryGetter;
|
||||
|
||||
#if !defined(OS_ANDROID)
|
||||
class HostZoomLevelContext;
|
||||
@@ -63,6 +73,10 @@ class HostZoomMap;
|
||||
@@ -63,6 +74,10 @@ class HostZoomMap;
|
||||
class ZoomLevelDelegate;
|
||||
#endif // !defined(OS_ANDROID)
|
||||
|
||||
@@ -713,7 +765,7 @@ index 9bf0a872f380..73ede1ccdedf 100644
|
||||
// Defines what persistent state a child process can access.
|
||||
//
|
||||
// The StoragePartition defines the view each child process has of the
|
||||
@@ -88,6 +102,7 @@ class CONTENT_EXPORT StoragePartition {
|
||||
@@ -90,6 +105,7 @@ class CONTENT_EXPORT StoragePartition {
|
||||
virtual storage::FileSystemContext* GetFileSystemContext() = 0;
|
||||
virtual storage::DatabaseTracker* GetDatabaseTracker() = 0;
|
||||
virtual DOMStorageContext* GetDOMStorageContext() = 0;
|
||||
@@ -721,9 +773,9 @@ index 9bf0a872f380..73ede1ccdedf 100644
|
||||
virtual IndexedDBContext* GetIndexedDBContext() = 0;
|
||||
virtual ServiceWorkerContext* GetServiceWorkerContext() = 0;
|
||||
virtual SharedWorkerService* GetSharedWorkerService() = 0;
|
||||
@@ -204,6 +219,25 @@ class CONTENT_EXPORT StoragePartition {
|
||||
// use only.
|
||||
virtual void FlushNetworkInterfaceForTesting() = 0;
|
||||
@@ -209,6 +225,26 @@ class CONTENT_EXPORT StoragePartition {
|
||||
// Wait until all deletions tasks are finished. For test use only.
|
||||
virtual void WaitForDeletionTasksForTesting() = 0;
|
||||
|
||||
+ virtual BackgroundFetchContext* GetBackgroundFetchContext() = 0;
|
||||
+ virtual BackgroundSyncContext* GetBackgroundSyncContext() = 0;
|
||||
@@ -732,6 +784,7 @@ index 9bf0a872f380..73ede1ccdedf 100644
|
||||
+ virtual BluetoothAllowedDevicesMap* GetBluetoothAllowedDevicesMap() = 0;
|
||||
+ virtual BlobURLLoaderFactory* GetBlobURLLoaderFactory() = 0;
|
||||
+ virtual BlobRegistryWrapper* GetBlobRegistry() = 0;
|
||||
+ virtual PrefetchURLLoaderService* GetPrefetchURLLoaderService() = 0;
|
||||
+
|
||||
+ virtual URLLoaderFactoryGetter* url_loader_factory_getter() = 0;
|
||||
+ virtual BrowserContext* browser_context() const = 0;
|
||||
@@ -748,10 +801,10 @@ index 9bf0a872f380..73ede1ccdedf 100644
|
||||
virtual ~StoragePartition() {}
|
||||
};
|
||||
diff --git storage/browser/database/database_tracker.cc storage/browser/database/database_tracker.cc
|
||||
index e1e508e205be..10432c7d833e 100644
|
||||
index f6986c4babc4..1a467451e351 100644
|
||||
--- storage/browser/database/database_tracker.cc
|
||||
+++ storage/browser/database/database_tracker.cc
|
||||
@@ -491,7 +491,7 @@ bool DatabaseTracker::LazyInit() {
|
||||
@@ -492,7 +492,7 @@ bool DatabaseTracker::LazyInit() {
|
||||
meta_table_.reset(new sql::MetaTable());
|
||||
|
||||
is_initialized_ =
|
||||
|
@@ -1,5 +1,5 @@
|
||||
diff --git ui/base/models/menu_model.h ui/base/models/menu_model.h
|
||||
index 0755f2752f1d..0322b8c638e7 100644
|
||||
index 605dc1b17e43..24c385a53289 100644
|
||||
--- ui/base/models/menu_model.h
|
||||
+++ ui/base/models/menu_model.h
|
||||
@@ -15,6 +15,7 @@
|
||||
@@ -7,10 +7,10 @@ index 0755f2752f1d..0322b8c638e7 100644
|
||||
class FontList;
|
||||
class Image;
|
||||
+class Point;
|
||||
struct VectorIcon;
|
||||
}
|
||||
|
||||
namespace ui {
|
||||
@@ -115,6 +116,27 @@ class UI_BASE_EXPORT MenuModel {
|
||||
@@ -120,6 +121,27 @@ class UI_BASE_EXPORT MenuModel {
|
||||
// |event_flags| is a bit mask of ui::EventFlags.
|
||||
virtual void ActivatedAt(int index, int event_flags);
|
||||
|
||||
@@ -39,10 +39,10 @@ index 0755f2752f1d..0322b8c638e7 100644
|
||||
virtual void MenuWillShow() {}
|
||||
|
||||
diff --git ui/gfx/render_text.cc ui/gfx/render_text.cc
|
||||
index b5f58764ecb9..37359d823c57 100644
|
||||
index 3d706df56ee6..f10d816a3f05 100644
|
||||
--- ui/gfx/render_text.cc
|
||||
+++ ui/gfx/render_text.cc
|
||||
@@ -513,6 +513,14 @@ void RenderText::SetElideBehavior(ElideBehavior elide_behavior) {
|
||||
@@ -518,6 +518,14 @@ void RenderText::SetElideBehavior(ElideBehavior elide_behavior) {
|
||||
}
|
||||
}
|
||||
|
||||
@@ -78,10 +78,10 @@ index b5f58764ecb9..37359d823c57 100644
|
||||
}
|
||||
|
||||
diff --git ui/gfx/render_text.h ui/gfx/render_text.h
|
||||
index 0b8b82a2bc80..f0eba4248c56 100644
|
||||
index 47fa4c605ce1..f5587fac6b5d 100644
|
||||
--- ui/gfx/render_text.h
|
||||
+++ ui/gfx/render_text.h
|
||||
@@ -293,6 +293,10 @@ class GFX_EXPORT RenderText {
|
||||
@@ -295,6 +295,10 @@ class GFX_EXPORT RenderText {
|
||||
void SetElideBehavior(ElideBehavior elide_behavior);
|
||||
ElideBehavior elide_behavior() const { return elide_behavior_; }
|
||||
|
||||
@@ -92,7 +92,7 @@ index 0b8b82a2bc80..f0eba4248c56 100644
|
||||
const Rect& display_rect() const { return display_rect_; }
|
||||
void SetDisplayRect(const Rect& r);
|
||||
|
||||
@@ -850,6 +854,8 @@ class GFX_EXPORT RenderText {
|
||||
@@ -858,6 +862,8 @@ class GFX_EXPORT RenderText {
|
||||
// Extra spacing placed between glyphs; used for obscured text styling.
|
||||
int glyph_spacing_ = 0;
|
||||
|
||||
@@ -102,7 +102,7 @@ index 0b8b82a2bc80..f0eba4248c56 100644
|
||||
};
|
||||
|
||||
diff --git ui/views/animation/ink_drop_host_view.h ui/views/animation/ink_drop_host_view.h
|
||||
index 8ac475fa752c..ec58c2b28441 100644
|
||||
index 34ea050d06a8..7bdd050802a0 100644
|
||||
--- ui/views/animation/ink_drop_host_view.h
|
||||
+++ ui/views/animation/ink_drop_host_view.h
|
||||
@@ -67,6 +67,8 @@ class VIEWS_EXPORT InkDropHostView : public View, public InkDropHost {
|
||||
@@ -115,7 +115,7 @@ index 8ac475fa752c..ec58c2b28441 100644
|
||||
static constexpr int kInkDropSmallCornerRadius = 2;
|
||||
static constexpr int kInkDropLargeCornerRadius = 4;
|
||||
diff --git ui/views/controls/button/label_button.cc ui/views/controls/button/label_button.cc
|
||||
index 6fc12bbc6f9b..a82c282a7c31 100644
|
||||
index 7cf98686b710..9c18255901bb 100644
|
||||
--- ui/views/controls/button/label_button.cc
|
||||
+++ ui/views/controls/button/label_button.cc
|
||||
@@ -188,6 +188,7 @@ gfx::Size LabelButton::CalculatePreferredSize() const {
|
||||
@@ -126,7 +126,7 @@ index 6fc12bbc6f9b..a82c282a7c31 100644
|
||||
|
||||
if (style_ == STYLE_BUTTON) {
|
||||
// Some text appears wider when rendered normally than when rendered bold.
|
||||
@@ -398,6 +399,12 @@ std::unique_ptr<views::InkDropHighlight> LabelButton::CreateInkDropHighlight()
|
||||
@@ -406,6 +407,12 @@ std::unique_ptr<views::InkDropHighlight> LabelButton::CreateInkDropHighlight()
|
||||
gfx::RectF(image()->GetMirroredBounds()).CenterPoint());
|
||||
}
|
||||
|
||||
@@ -154,7 +154,7 @@ index b2323dae3d9e..4b9546ca1a61 100644
|
||||
ImageView* image() const { return image_; }
|
||||
Label* label() const;
|
||||
diff --git ui/views/controls/button/menu_button.cc ui/views/controls/button/menu_button.cc
|
||||
index 536fd0159e28..4c6402a29596 100644
|
||||
index b6996aab742c..ef7ac692a21d 100644
|
||||
--- ui/views/controls/button/menu_button.cc
|
||||
+++ ui/views/controls/button/menu_button.cc
|
||||
@@ -178,7 +178,7 @@ bool MenuButton::IsTriggerableEventType(const ui::Event& event) {
|
||||
@@ -166,7 +166,7 @@ index 536fd0159e28..4c6402a29596 100644
|
||||
kMenuMarkerPaddingRight,
|
||||
0);
|
||||
}
|
||||
@@ -311,7 +311,7 @@ gfx::Rect MenuButton::GetChildAreaBounds() {
|
||||
@@ -310,7 +310,7 @@ gfx::Rect MenuButton::GetChildAreaBounds() {
|
||||
gfx::Size s = size();
|
||||
|
||||
if (show_menu_marker_) {
|
||||
@@ -175,7 +175,7 @@ index 536fd0159e28..4c6402a29596 100644
|
||||
kMenuMarkerPaddingRight);
|
||||
}
|
||||
|
||||
@@ -408,4 +408,10 @@ int MenuButton::GetMaximumScreenXCoordinate() {
|
||||
@@ -407,4 +407,10 @@ int MenuButton::GetMaximumScreenXCoordinate() {
|
||||
return monitor_bounds.right() - 1;
|
||||
}
|
||||
|
||||
@@ -211,18 +211,10 @@ index 8fb11e1cf9cb..bd2951bd948b 100644
|
||||
// The time is used for simulating menu behavior for the menu button; that
|
||||
// is, if the menu is shown and the button is pressed, we need to close the
|
||||
diff --git ui/views/controls/label.cc ui/views/controls/label.cc
|
||||
index 5fb2a8667c81..f725a0209267 100644
|
||||
index 6b6d5f02b8ab..0dc4d1f0f389 100644
|
||||
--- ui/views/controls/label.cc
|
||||
+++ ui/views/controls/label.cc
|
||||
@@ -25,6 +25,7 @@
|
||||
#include "ui/gfx/color_utils.h"
|
||||
#include "ui/gfx/geometry/insets.h"
|
||||
#include "ui/gfx/text_elider.h"
|
||||
+#include "ui/gfx/text_utils.h"
|
||||
#include "ui/native_theme/native_theme.h"
|
||||
#include "ui/strings/grit/ui_strings.h"
|
||||
#include "ui/views/background.h"
|
||||
@@ -41,6 +42,20 @@ namespace {
|
||||
@@ -42,6 +42,20 @@ namespace {
|
||||
gfx::Insets NonBorderInsets(const Label& label) {
|
||||
return label.GetInsets() - label.View::GetInsets();
|
||||
}
|
||||
@@ -243,14 +235,13 @@ index 5fb2a8667c81..f725a0209267 100644
|
||||
} // namespace
|
||||
|
||||
const char Label::kViewClassName[] = "Label";
|
||||
@@ -223,6 +238,15 @@ void Label::SetElideBehavior(gfx::ElideBehavior elide_behavior) {
|
||||
@@ -203,6 +217,14 @@ void Label::SetElideBehavior(gfx::ElideBehavior elide_behavior) {
|
||||
ResetLayout();
|
||||
}
|
||||
|
||||
+void Label::SetDrawStringsFlags(int flags) {
|
||||
+ if (draw_strings_flags_ == flags)
|
||||
+ return;
|
||||
+ is_first_paint_text_ = true;
|
||||
+ draw_strings_flags_ = flags;
|
||||
+ full_text_->SetDrawStringsFlags(draw_strings_flags_);
|
||||
+ ResetLayout();
|
||||
@@ -259,7 +250,7 @@ index 5fb2a8667c81..f725a0209267 100644
|
||||
void Label::SetTooltipText(const base::string16& tooltip_text) {
|
||||
DCHECK(handles_tooltips_);
|
||||
tooltip_text_ = tooltip_text;
|
||||
@@ -447,7 +471,19 @@ std::unique_ptr<gfx::RenderText> Label::CreateRenderText() const {
|
||||
@@ -431,7 +453,19 @@ std::unique_ptr<gfx::RenderText> Label::CreateRenderText() const {
|
||||
render_text->SetFontList(font_list());
|
||||
render_text->set_shadows(shadows());
|
||||
render_text->SetCursorEnabled(false);
|
||||
@@ -281,10 +272,10 @@ index 5fb2a8667c81..f725a0209267 100644
|
||||
render_text->SetMaxLines(multi_line() ? max_lines() : 0);
|
||||
render_text->SetWordWrapBehavior(full_text_->word_wrap_behavior());
|
||||
diff --git ui/views/controls/label.h ui/views/controls/label.h
|
||||
index 1cee72792720..c212350b706f 100644
|
||||
index 635025a82505..58899c5ec0aa 100644
|
||||
--- ui/views/controls/label.h
|
||||
+++ ui/views/controls/label.h
|
||||
@@ -151,6 +151,10 @@ class VIEWS_EXPORT Label : public View,
|
||||
@@ -153,6 +153,10 @@ class VIEWS_EXPORT Label : public View,
|
||||
void SetElideBehavior(gfx::ElideBehavior elide_behavior);
|
||||
gfx::ElideBehavior elide_behavior() const { return elide_behavior_; }
|
||||
|
||||
@@ -295,16 +286,16 @@ index 1cee72792720..c212350b706f 100644
|
||||
// Sets the tooltip text. Default behavior for a label (single-line) is to
|
||||
// show the full text if it is wider than its bounds. Calling this overrides
|
||||
// the default behavior and lets you set a custom tooltip. To revert to
|
||||
@@ -365,6 +369,7 @@ class VIEWS_EXPORT Label : public View,
|
||||
@@ -367,6 +371,7 @@ class VIEWS_EXPORT Label : public View,
|
||||
bool collapse_when_hidden_;
|
||||
int fixed_width_;
|
||||
int max_width_;
|
||||
+ int draw_strings_flags_ = 0;
|
||||
|
||||
// TODO(ckocagil): Remove is_first_paint_text_ before crbug.com/441028 is
|
||||
// closed.
|
||||
std::unique_ptr<SelectionController> selection_controller_;
|
||||
|
||||
diff --git ui/views/controls/menu/menu_controller.cc ui/views/controls/menu/menu_controller.cc
|
||||
index 9389f25f034d..60f546b55951 100644
|
||||
index 4feb2cd4b2e7..c7590702bf95 100644
|
||||
--- ui/views/controls/menu/menu_controller.cc
|
||||
+++ ui/views/controls/menu/menu_controller.cc
|
||||
@@ -2261,8 +2261,13 @@ MenuItemView* MenuController::FindNextSelectableMenuItem(
|
||||
@@ -382,10 +373,10 @@ index 4dea63f9f286..ef50b710c5af 100644
|
||||
virtual int GetMaxWidthForMenu(MenuItemView* menu);
|
||||
|
||||
diff --git ui/views/controls/menu/menu_item_view.cc ui/views/controls/menu/menu_item_view.cc
|
||||
index d90a8ec45fcf..0a7b0a9d2ea5 100644
|
||||
index 4cf7d61f7efe..d6f00c797979 100644
|
||||
--- ui/views/controls/menu/menu_item_view.cc
|
||||
+++ ui/views/controls/menu/menu_item_view.cc
|
||||
@@ -811,7 +811,12 @@ void MenuItemView::PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) {
|
||||
@@ -823,7 +823,12 @@ void MenuItemView::PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) {
|
||||
// only need the background when we want it to look different, as when we're
|
||||
// selected.
|
||||
ui::NativeTheme* native_theme = GetNativeTheme();
|
||||
@@ -399,7 +390,7 @@ index d90a8ec45fcf..0a7b0a9d2ea5 100644
|
||||
gfx::Rect item_bounds(0, 0, width(), height());
|
||||
AdjustBoundsForRTLUI(&item_bounds);
|
||||
|
||||
@@ -900,6 +905,13 @@ void MenuItemView::PaintMinorText(gfx::Canvas* canvas, SkColor color) {
|
||||
@@ -933,6 +938,13 @@ void MenuItemView::PaintMinorIconAndText(gfx::Canvas* canvas, SkColor color) {
|
||||
SkColor MenuItemView::GetTextColor(bool minor,
|
||||
bool render_selection,
|
||||
bool emphasized) const {
|
||||
@@ -414,7 +405,7 @@ index d90a8ec45fcf..0a7b0a9d2ea5 100644
|
||||
minor ? ui::NativeTheme::kColorId_MenuItemSubtitleColor
|
||||
: ui::NativeTheme::kColorId_EnabledMenuItemForegroundColor;
|
||||
diff --git ui/views/controls/menu/menu_model_adapter.cc ui/views/controls/menu/menu_model_adapter.cc
|
||||
index 06a9d3cfda9b..c602a13efd6a 100644
|
||||
index 2a540157090f..23aa93f96d76 100644
|
||||
--- ui/views/controls/menu/menu_model_adapter.cc
|
||||
+++ ui/views/controls/menu/menu_model_adapter.cc
|
||||
@@ -245,6 +245,77 @@ void MenuModelAdapter::SelectionChanged(MenuItemView* menu) {
|
||||
@@ -521,7 +512,7 @@ index 0ac493c3c6a0..741769e90eb0 100644
|
||||
void WillHideMenu(MenuItemView* menu) override;
|
||||
void OnMenuClosed(MenuItemView* menu) override;
|
||||
diff --git ui/views/controls/menu/menu_scroll_view_container.cc ui/views/controls/menu/menu_scroll_view_container.cc
|
||||
index fc9e3426f7c6..d0513a05eff1 100644
|
||||
index 01069fe8680b..928ee7cb4d90 100644
|
||||
--- ui/views/controls/menu/menu_scroll_view_container.cc
|
||||
+++ ui/views/controls/menu/menu_scroll_view_container.cc
|
||||
@@ -184,6 +184,11 @@ MenuScrollViewContainer::MenuScrollViewContainer(SubmenuView* content_view)
|
||||
@@ -552,18 +543,18 @@ index 875ac82283b3..44424b2ce138 100644
|
||||
// Move the cursor because EnterNotify/LeaveNotify are generated with the
|
||||
// current mouse position as a result of XGrabPointer()
|
||||
diff --git ui/views/view.h ui/views/view.h
|
||||
index f3075731dd61..5cb0d7211560 100644
|
||||
index 8b874876b89f..1fe8a762b6c8 100644
|
||||
--- ui/views/view.h
|
||||
+++ ui/views/view.h
|
||||
@@ -18,6 +18,7 @@
|
||||
@@ -19,6 +19,7 @@
|
||||
#include "base/i18n/rtl.h"
|
||||
#include "base/logging.h"
|
||||
#include "base/macros.h"
|
||||
+#include "base/supports_user_data.h"
|
||||
#include "build/build_config.h"
|
||||
#include "ui/accessibility/ax_enums.h"
|
||||
#include "ui/accessibility/ax_enums.mojom.h"
|
||||
#include "ui/base/accelerators/accelerator.h"
|
||||
@@ -118,7 +119,8 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
|
||||
@@ -119,7 +120,8 @@ class VIEWS_EXPORT View : public ui::LayerDelegate,
|
||||
public ui::AcceleratorTarget,
|
||||
public ui::EventTarget,
|
||||
public ui::EventHandler,
|
||||
|
@@ -1,9 +1,9 @@
|
||||
diff --git content/browser/renderer_host/render_widget_host_view_base.cc content/browser/renderer_host/render_widget_host_view_base.cc
|
||||
index 6dc8047e8a51..dfe15c9500d5 100644
|
||||
index 151c87cd72e3..593a79904382 100644
|
||||
--- content/browser/renderer_host/render_widget_host_view_base.cc
|
||||
+++ content/browser/renderer_host/render_widget_host_view_base.cc
|
||||
@@ -326,6 +326,14 @@ void RenderWidgetHostViewBase::GetScreenInfo(ScreenInfo* screen_info) {
|
||||
host->delegate()->GetScreenInfo(screen_info);
|
||||
@@ -312,6 +312,14 @@ float RenderWidgetHostViewBase::GetDeviceScaleFactor() const {
|
||||
return screen_info.device_scale_factor;
|
||||
}
|
||||
|
||||
+void RenderWidgetHostViewBase::SetHasExternalParent(bool val) {
|
||||
@@ -18,10 +18,10 @@ index 6dc8047e8a51..dfe15c9500d5 100644
|
||||
return renderer_frame_number_;
|
||||
}
|
||||
diff --git content/browser/renderer_host/render_widget_host_view_base.h content/browser/renderer_host/render_widget_host_view_base.h
|
||||
index 1115afb8a798..905572d2b8f1 100644
|
||||
index 06f2793aa2d7..06244d674026 100644
|
||||
--- content/browser/renderer_host/render_widget_host_view_base.h
|
||||
+++ content/browser/renderer_host/render_widget_host_view_base.h
|
||||
@@ -83,6 +83,7 @@ class BrowserAccessibilityManager;
|
||||
@@ -79,6 +79,7 @@ class BrowserAccessibilityManager;
|
||||
class CursorManager;
|
||||
class RenderWidgetHostImpl;
|
||||
class RenderWidgetHostViewBaseObserver;
|
||||
@@ -29,7 +29,7 @@ index 1115afb8a798..905572d2b8f1 100644
|
||||
class SyntheticGestureTarget;
|
||||
class TextInputManager;
|
||||
class TouchSelectionControllerClientManager;
|
||||
@@ -99,6 +100,9 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView,
|
||||
@@ -98,6 +99,9 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView,
|
||||
float current_device_scale_factor() const {
|
||||
return current_device_scale_factor_;
|
||||
}
|
||||
@@ -39,16 +39,16 @@ index 1115afb8a798..905572d2b8f1 100644
|
||||
|
||||
// Returns the focused RenderWidgetHost inside this |view|'s RWH.
|
||||
RenderWidgetHostImpl* GetFocusedWidget() const;
|
||||
@@ -129,6 +133,8 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView,
|
||||
void FocusedNodeTouched(const gfx::Point& location_dips_screen,
|
||||
@@ -122,6 +126,8 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView,
|
||||
bool editable) override;
|
||||
void GetScreenInfo(ScreenInfo* screen_info) override;
|
||||
void GetScreenInfo(ScreenInfo* screen_info) const override;
|
||||
float GetDeviceScaleFactor() const final;
|
||||
+ void SetHasExternalParent(bool val) override;
|
||||
+ bool HasExternalParent() const override;
|
||||
TouchSelectionControllerClientManager*
|
||||
GetTouchSelectionControllerClientManager() override;
|
||||
|
||||
@@ -409,6 +415,12 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView,
|
||||
@@ -412,6 +418,12 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView,
|
||||
// helps to position the full screen widget on the correct monitor.
|
||||
virtual void InitAsFullscreen(RenderWidgetHostView* reference_host_view) = 0;
|
||||
|
||||
@@ -61,7 +61,7 @@ index 1115afb8a798..905572d2b8f1 100644
|
||||
// Sets the cursor for this view to the one associated with the specified
|
||||
// cursor_type.
|
||||
virtual void UpdateCursor(const WebCursor& cursor) = 0;
|
||||
@@ -554,6 +566,10 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView,
|
||||
@@ -559,6 +571,10 @@ class CONTENT_EXPORT RenderWidgetHostViewBase : public RenderWidgetHostView,
|
||||
|
||||
WebContentsAccessibility* web_contents_accessibility_;
|
||||
|
||||
@@ -73,7 +73,7 @@ index 1115afb8a798..905572d2b8f1 100644
|
||||
#if defined(USE_AURA)
|
||||
void OnDidScheduleEmbed(int routing_id,
|
||||
diff --git content/browser/renderer_host/render_widget_host_view_event_handler.cc content/browser/renderer_host/render_widget_host_view_event_handler.cc
|
||||
index 5a751783f1af..7e71a7227e5f 100644
|
||||
index 8318ed172a75..0d6023427bf4 100644
|
||||
--- content/browser/renderer_host/render_widget_host_view_event_handler.cc
|
||||
+++ content/browser/renderer_host/render_widget_host_view_event_handler.cc
|
||||
@@ -28,6 +28,10 @@
|
||||
@@ -103,12 +103,12 @@ index 5a751783f1af..7e71a7227e5f 100644
|
||||
// TODO(wjmaclean): can host_ ever be null?
|
||||
if (host_ && set_focus_on_mouse_down_or_key_event_) {
|
||||
diff --git content/public/browser/render_widget_host_view.h content/public/browser/render_widget_host_view.h
|
||||
index 70e4636903f2..3ada5a504fdb 100644
|
||||
index e967efe6ad9b..3c49ea9ac980 100644
|
||||
--- content/public/browser/render_widget_host_view.h
|
||||
+++ content/public/browser/render_widget_host_view.h
|
||||
@@ -251,6 +251,14 @@ class CONTENT_EXPORT RenderWidgetHostView {
|
||||
// This method returns the ScreenInfo used by the view to render.
|
||||
virtual void GetScreenInfo(ScreenInfo* screen_info) = 0;
|
||||
@@ -213,6 +213,14 @@ class CONTENT_EXPORT RenderWidgetHostView {
|
||||
// This must always return the same device scale factor as GetScreenInfo.
|
||||
virtual float GetDeviceScaleFactor() const = 0;
|
||||
|
||||
+ // Set whether the widget has a external parent view/window outside of the
|
||||
+ // Chromium-controlled view/window hierarchy.
|
||||
@@ -135,10 +135,10 @@ index f772f64d656e..7d13f9f81b6c 100644
|
||||
return host ? host->GetAcceleratedWidget() : NULL;
|
||||
}
|
||||
diff --git ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
||||
index 1bf5a5e2ca59..f29f473ceca2 100644
|
||||
index 19f103c0385e..737125f8f601 100644
|
||||
--- ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
||||
+++ ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc
|
||||
@@ -84,6 +84,7 @@ DesktopWindowTreeHostWin::DesktopWindowTreeHostWin(
|
||||
@@ -86,6 +86,7 @@ DesktopWindowTreeHostWin::DesktopWindowTreeHostWin(
|
||||
should_animate_window_close_(false),
|
||||
pending_close_(false),
|
||||
has_non_client_view_(false),
|
||||
@@ -146,7 +146,7 @@ index 1bf5a5e2ca59..f29f473ceca2 100644
|
||||
tooltip_(NULL) {
|
||||
}
|
||||
|
||||
@@ -122,8 +123,12 @@ void DesktopWindowTreeHostWin::Init(aura::Window* content_window,
|
||||
@@ -124,8 +125,12 @@ void DesktopWindowTreeHostWin::Init(aura::Window* content_window,
|
||||
native_widget_delegate_);
|
||||
|
||||
HWND parent_hwnd = NULL;
|
||||
@@ -160,7 +160,7 @@ index 1bf5a5e2ca59..f29f473ceca2 100644
|
||||
|
||||
remove_standard_frame_ = params.remove_standard_frame;
|
||||
has_non_client_view_ = Widget::RequiresNonClientView(params.type);
|
||||
@@ -834,11 +839,15 @@ void DesktopWindowTreeHostWin::HandleFrameChanged() {
|
||||
@@ -849,11 +854,15 @@ void DesktopWindowTreeHostWin::HandleFrameChanged() {
|
||||
}
|
||||
|
||||
void DesktopWindowTreeHostWin::HandleNativeFocus(HWND last_focused_window) {
|
||||
@@ -179,10 +179,10 @@ index 1bf5a5e2ca59..f29f473ceca2 100644
|
||||
|
||||
bool DesktopWindowTreeHostWin::HandleMouseEvent(const ui::MouseEvent& event) {
|
||||
diff --git ui/views/widget/desktop_aura/desktop_window_tree_host_win.h ui/views/widget/desktop_aura/desktop_window_tree_host_win.h
|
||||
index db66147f0e9c..2b9bdfa2ec53 100644
|
||||
index 732f492c102f..a7007468c3b7 100644
|
||||
--- ui/views/widget/desktop_aura/desktop_window_tree_host_win.h
|
||||
+++ ui/views/widget/desktop_aura/desktop_window_tree_host_win.h
|
||||
@@ -271,6 +271,10 @@ class VIEWS_EXPORT DesktopWindowTreeHostWin
|
||||
@@ -277,6 +277,10 @@ class VIEWS_EXPORT DesktopWindowTreeHostWin
|
||||
// True if the window should have the frame removed.
|
||||
bool remove_standard_frame_;
|
||||
|
||||
@@ -194,10 +194,10 @@ index db66147f0e9c..2b9bdfa2ec53 100644
|
||||
// a reference.
|
||||
corewm::TooltipWin* tooltip_;
|
||||
diff --git ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
|
||||
index deaf9cbc13cc..57f8c4f44a29 100644
|
||||
index f8550833ee6f..117a47a7aacd 100644
|
||||
--- ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
|
||||
+++ ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc
|
||||
@@ -143,6 +143,7 @@ DesktopWindowTreeHostX11::DesktopWindowTreeHostX11(
|
||||
@@ -145,6 +145,7 @@ DesktopWindowTreeHostX11::DesktopWindowTreeHostX11(
|
||||
use_native_frame_(false),
|
||||
should_maximize_after_map_(false),
|
||||
use_argb_visual_(false),
|
||||
@@ -205,7 +205,7 @@ index deaf9cbc13cc..57f8c4f44a29 100644
|
||||
drag_drop_client_(NULL),
|
||||
native_widget_delegate_(native_widget_delegate),
|
||||
desktop_native_widget_aura_(desktop_native_widget_aura),
|
||||
@@ -156,6 +157,7 @@ DesktopWindowTreeHostX11::DesktopWindowTreeHostX11(
|
||||
@@ -158,6 +159,7 @@ DesktopWindowTreeHostX11::DesktopWindowTreeHostX11(
|
||||
has_window_focus_(false),
|
||||
has_pointer_focus_(false),
|
||||
modal_dialog_counter_(0),
|
||||
@@ -213,7 +213,7 @@ index deaf9cbc13cc..57f8c4f44a29 100644
|
||||
close_widget_factory_(this),
|
||||
weak_factory_(this) {}
|
||||
|
||||
@@ -191,6 +193,8 @@ std::vector<aura::Window*> DesktopWindowTreeHostX11::GetAllOpenWindows() {
|
||||
@@ -193,6 +195,8 @@ std::vector<aura::Window*> DesktopWindowTreeHostX11::GetAllOpenWindows() {
|
||||
}
|
||||
|
||||
gfx::Rect DesktopWindowTreeHostX11::GetX11RootWindowBounds() const {
|
||||
@@ -222,7 +222,7 @@ index deaf9cbc13cc..57f8c4f44a29 100644
|
||||
return bounds_in_pixels_;
|
||||
}
|
||||
|
||||
@@ -502,7 +506,8 @@ void DesktopWindowTreeHostX11::CloseNow() {
|
||||
@@ -505,7 +509,8 @@ void DesktopWindowTreeHostX11::CloseNow() {
|
||||
// Actually free our native resources.
|
||||
if (ui::PlatformEventSource::GetInstance())
|
||||
ui::PlatformEventSource::GetInstance()->RemovePlatformEventDispatcher(this);
|
||||
@@ -232,7 +232,7 @@ index deaf9cbc13cc..57f8c4f44a29 100644
|
||||
xwindow_ = x11::None;
|
||||
|
||||
desktop_native_widget_aura_->OnHostClosed();
|
||||
@@ -643,6 +648,8 @@ void DesktopWindowTreeHostX11::GetWindowPlacement(
|
||||
@@ -646,6 +651,8 @@ void DesktopWindowTreeHostX11::GetWindowPlacement(
|
||||
}
|
||||
|
||||
gfx::Rect DesktopWindowTreeHostX11::GetWindowBoundsInScreen() const {
|
||||
@@ -241,7 +241,7 @@ index deaf9cbc13cc..57f8c4f44a29 100644
|
||||
return ToDIPRect(bounds_in_pixels_);
|
||||
}
|
||||
|
||||
@@ -1250,6 +1257,8 @@ void DesktopWindowTreeHostX11::SetBoundsInPixels(
|
||||
@@ -1253,6 +1260,8 @@ void DesktopWindowTreeHostX11::SetBoundsInPixels(
|
||||
}
|
||||
|
||||
gfx::Point DesktopWindowTreeHostX11::GetLocationOnScreenInPixels() const {
|
||||
@@ -250,7 +250,7 @@ index deaf9cbc13cc..57f8c4f44a29 100644
|
||||
return bounds_in_pixels_.origin();
|
||||
}
|
||||
|
||||
@@ -1344,7 +1353,6 @@ void DesktopWindowTreeHostX11::InitX11Window(
|
||||
@@ -1364,7 +1373,6 @@ void DesktopWindowTreeHostX11::InitX11Window(
|
||||
::Atom window_type;
|
||||
switch (params.type) {
|
||||
case Widget::InitParams::TYPE_MENU:
|
||||
@@ -258,7 +258,7 @@ index deaf9cbc13cc..57f8c4f44a29 100644
|
||||
window_type = gfx::GetAtom("_NET_WM_WINDOW_TYPE_MENU");
|
||||
break;
|
||||
case Widget::InitParams::TYPE_TOOLTIP:
|
||||
@@ -1400,9 +1408,15 @@ void DesktopWindowTreeHostX11::InitX11Window(
|
||||
@@ -1420,9 +1428,15 @@ void DesktopWindowTreeHostX11::InitX11Window(
|
||||
attribute_mask |= CWBorderPixel;
|
||||
swa.border_pixel = 0;
|
||||
|
||||
@@ -275,7 +275,7 @@ index deaf9cbc13cc..57f8c4f44a29 100644
|
||||
bounds_in_pixels_.y(), bounds_in_pixels_.width(),
|
||||
bounds_in_pixels_.height(),
|
||||
0, // border width
|
||||
@@ -2006,6 +2020,10 @@ uint32_t DesktopWindowTreeHostX11::DispatchEvent(
|
||||
@@ -2020,6 +2034,10 @@ uint32_t DesktopWindowTreeHostX11::DispatchEvent(
|
||||
}
|
||||
break;
|
||||
}
|
||||
@@ -283,14 +283,14 @@ index deaf9cbc13cc..57f8c4f44a29 100644
|
||||
+ xwindow_destroyed_ = true;
|
||||
+ CloseNow();
|
||||
+ break;
|
||||
case FocusIn:
|
||||
case FocusOut:
|
||||
OnFocusEvent(xev->type == FocusIn, event->xfocus.mode,
|
||||
case x11::FocusIn:
|
||||
case x11::FocusOut:
|
||||
OnFocusEvent(xev->type == x11::FocusIn, event->xfocus.mode,
|
||||
diff --git ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
|
||||
index 674951e1c90e..bc74be16e94d 100644
|
||||
index 021a1d9ad2b1..7f8ccfb73acd 100644
|
||||
--- ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
|
||||
+++ ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h
|
||||
@@ -85,6 +85,12 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11
|
||||
@@ -86,6 +86,12 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11
|
||||
// Disables event listening to make |dialog| modal.
|
||||
std::unique_ptr<base::Closure> DisableEventListening();
|
||||
|
||||
@@ -303,7 +303,7 @@ index 674951e1c90e..bc74be16e94d 100644
|
||||
protected:
|
||||
// Overridden from DesktopWindowTreeHost:
|
||||
void Init(aura::Window* content_window,
|
||||
@@ -303,6 +309,9 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11
|
||||
@@ -302,6 +308,9 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11
|
||||
// The bounds of |xwindow_|.
|
||||
gfx::Rect bounds_in_pixels_;
|
||||
|
||||
@@ -313,7 +313,7 @@ index 674951e1c90e..bc74be16e94d 100644
|
||||
// Whenever the bounds are set, we keep the previous set of bounds around so
|
||||
// we can have a better chance of getting the real
|
||||
// |restored_bounds_in_pixels_|. Window managers tend to send a Configure
|
||||
@@ -342,6 +351,10 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11
|
||||
@@ -341,6 +350,10 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11
|
||||
// Whether we used an ARGB visual for our window.
|
||||
bool use_argb_visual_;
|
||||
|
||||
@@ -324,7 +324,7 @@ index 674951e1c90e..bc74be16e94d 100644
|
||||
DesktopDragDropClientAuraX11* drag_drop_client_;
|
||||
|
||||
std::unique_ptr<ui::EventHandler> x11_non_client_event_filter_;
|
||||
@@ -429,6 +442,9 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11
|
||||
@@ -431,6 +444,9 @@ class VIEWS_EXPORT DesktopWindowTreeHostX11
|
||||
|
||||
uint32_t modal_dialog_counter_;
|
||||
|
||||
@@ -335,7 +335,7 @@ index 674951e1c90e..bc74be16e94d 100644
|
||||
base::WeakPtrFactory<DesktopWindowTreeHostX11> weak_factory_;
|
||||
|
||||
diff --git ui/views/widget/widget.cc ui/views/widget/widget.cc
|
||||
index d685bf4f40e3..2e22ba96827e 100644
|
||||
index 926519dfa332..e06be5a1b0eb 100644
|
||||
--- ui/views/widget/widget.cc
|
||||
+++ ui/views/widget/widget.cc
|
||||
@@ -130,6 +130,7 @@ Widget::InitParams::InitParams(Type type)
|
||||
@@ -369,7 +369,7 @@ index d685bf4f40e3..2e22ba96827e 100644
|
||||
}
|
||||
// This must come after SetContentsView() or it might not be able to find
|
||||
// the correct NativeTheme (on Linux). See http://crbug.com/384492
|
||||
@@ -1096,10 +1102,16 @@ void Widget::OnNativeWidgetDestroyed() {
|
||||
@@ -1098,10 +1104,16 @@ void Widget::OnNativeWidgetDestroyed() {
|
||||
}
|
||||
|
||||
gfx::Size Widget::GetMinimumSize() const {
|
||||
@@ -387,10 +387,10 @@ index d685bf4f40e3..2e22ba96827e 100644
|
||||
}
|
||||
|
||||
diff --git ui/views/widget/widget.h ui/views/widget/widget.h
|
||||
index 242c9496b29a..05a21aeb9035 100644
|
||||
index 6c0c60807a2b..87ed97b90ab5 100644
|
||||
--- ui/views/widget/widget.h
|
||||
+++ ui/views/widget/widget.h
|
||||
@@ -254,6 +254,7 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
|
||||
@@ -252,6 +252,7 @@ class VIEWS_EXPORT Widget : public internal::NativeWidgetDelegate,
|
||||
// Whether the widget should be maximized or minimized.
|
||||
ui::WindowShowState show_state;
|
||||
gfx::NativeView parent;
|
||||
@@ -399,10 +399,10 @@ index 242c9496b29a..05a21aeb9035 100644
|
||||
// the NativeWidget may specify a default size. If the parent is specified,
|
||||
// |bounds| is in the parent's coordinate system. If the parent is not
|
||||
diff --git ui/views/widget/widget_delegate.h ui/views/widget/widget_delegate.h
|
||||
index bd4d8a7a1de2..998cfa05ea51 100644
|
||||
index 8ae821974838..c73b20dcb9b0 100644
|
||||
--- ui/views/widget/widget_delegate.h
|
||||
+++ ui/views/widget/widget_delegate.h
|
||||
@@ -187,6 +187,10 @@ class VIEWS_EXPORT WidgetDelegate {
|
||||
@@ -183,6 +183,10 @@ class VIEWS_EXPORT WidgetDelegate {
|
||||
// be cycled through with keyboard focus.
|
||||
virtual void GetAccessiblePanes(std::vector<View*>* panes) {}
|
||||
|
||||
@@ -414,7 +414,7 @@ index bd4d8a7a1de2..998cfa05ea51 100644
|
||||
virtual ~WidgetDelegate() {}
|
||||
|
||||
diff --git ui/views/widget/widget_hwnd_utils.cc ui/views/widget/widget_hwnd_utils.cc
|
||||
index 163e4b54b033..58f594db5019 100644
|
||||
index c7296fed234d..244d0034a1c4 100644
|
||||
--- ui/views/widget/widget_hwnd_utils.cc
|
||||
+++ ui/views/widget/widget_hwnd_utils.cc
|
||||
@@ -73,7 +73,7 @@ void CalculateWindowStylesFromInitParams(
|
||||
@@ -427,10 +427,10 @@ index 163e4b54b033..58f594db5019 100644
|
||||
if (native_widget_delegate->IsDialogBox()) {
|
||||
*style |= DS_MODALFRAME;
|
||||
diff --git ui/views/win/hwnd_message_handler.cc ui/views/win/hwnd_message_handler.cc
|
||||
index 5906900d721c..9dd0514b8cec 100644
|
||||
index c8fb7eecb9c8..49c0bc6c5f60 100644
|
||||
--- ui/views/win/hwnd_message_handler.cc
|
||||
+++ ui/views/win/hwnd_message_handler.cc
|
||||
@@ -2665,8 +2665,12 @@ LRESULT HWNDMessageHandler::HandleMouseEventInternal(UINT message,
|
||||
@@ -2687,8 +2687,12 @@ LRESULT HWNDMessageHandler::HandleMouseEventInternal(UINT message,
|
||||
active_mouse_tracking_flags_ = 0;
|
||||
} else if (event.type() == ui::ET_MOUSEWHEEL) {
|
||||
// Reroute the mouse wheel to the window under the pointer if applicable.
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git content/browser/web_contents/web_contents_impl.cc content/browser/web_contents/web_contents_impl.cc
|
||||
index 3484edd85788..42d731e0882e 100644
|
||||
index ca66c499f1e8..9208b43f669a 100644
|
||||
--- content/browser/web_contents/web_contents_impl.cc
|
||||
+++ content/browser/web_contents/web_contents_impl.cc
|
||||
@@ -1759,21 +1759,30 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params) {
|
||||
@@ -1733,21 +1733,30 @@ void WebContentsImpl::Init(const WebContents::CreateParams& params) {
|
||||
std::string unique_name;
|
||||
frame_tree_.root()->SetFrameName(params.main_frame_name, unique_name);
|
||||
|
||||
@@ -45,7 +45,7 @@ index 3484edd85788..42d731e0882e 100644
|
||||
CHECK(render_view_host_delegate_view_);
|
||||
CHECK(view_.get());
|
||||
|
||||
@@ -2325,6 +2334,15 @@ void WebContentsImpl::CreateNewWindow(
|
||||
@@ -2298,6 +2307,15 @@ void WebContentsImpl::CreateNewWindow(
|
||||
create_params.renderer_initiated_creation =
|
||||
main_frame_route_id != MSG_ROUTING_NONE;
|
||||
|
||||
@@ -61,7 +61,7 @@ index 3484edd85788..42d731e0882e 100644
|
||||
WebContentsImpl* new_contents = nullptr;
|
||||
if (!is_guest) {
|
||||
create_params.context = view_->GetNativeView();
|
||||
@@ -2354,7 +2372,7 @@ void WebContentsImpl::CreateNewWindow(
|
||||
@@ -2327,7 +2345,7 @@ void WebContentsImpl::CreateNewWindow(
|
||||
// TODO(brettw): It seems bogus that we have to call this function on the
|
||||
// newly created object and give it one of its own member variables.
|
||||
new_view->CreateViewForWidget(
|
||||
@@ -70,7 +70,7 @@ index 3484edd85788..42d731e0882e 100644
|
||||
}
|
||||
// Save the created window associated with the route so we can show it
|
||||
// later.
|
||||
@@ -5531,7 +5549,7 @@ InterstitialPageImpl* WebContentsImpl::GetInterstitialForRenderManager() {
|
||||
@@ -5573,7 +5591,7 @@ InterstitialPageImpl* WebContentsImpl::GetInterstitialForRenderManager() {
|
||||
void WebContentsImpl::CreateRenderWidgetHostViewForRenderManager(
|
||||
RenderViewHost* render_view_host) {
|
||||
RenderWidgetHostViewBase* rwh_view =
|
||||
@@ -95,10 +95,10 @@ index 53d56abb35a3..d7b955f42ca5 100644
|
||||
WebContents::CreateParams::CreateParams(const CreateParams& other) = default;
|
||||
|
||||
diff --git content/public/browser/web_contents.h content/public/browser/web_contents.h
|
||||
index 6e628faf106c..3855673d976b 100644
|
||||
index 2dfd24904480..c254945f1621 100644
|
||||
--- content/public/browser/web_contents.h
|
||||
+++ content/public/browser/web_contents.h
|
||||
@@ -68,9 +68,11 @@ class BrowserPluginGuestDelegate;
|
||||
@@ -69,9 +69,11 @@ class BrowserPluginGuestDelegate;
|
||||
class InterstitialPage;
|
||||
class RenderFrameHost;
|
||||
class RenderViewHost;
|
||||
@@ -110,7 +110,7 @@ index 6e628faf106c..3855673d976b 100644
|
||||
struct CustomContextMenuContext;
|
||||
struct DropData;
|
||||
struct Manifest;
|
||||
@@ -173,6 +175,10 @@ class WebContents : public PageNavigator,
|
||||
@@ -174,6 +176,10 @@ class WebContents : public PageNavigator,
|
||||
|
||||
// Sandboxing flags set on the new WebContents.
|
||||
blink::WebSandboxFlags starting_sandbox_flags;
|
||||
@@ -122,13 +122,13 @@ index 6e628faf106c..3855673d976b 100644
|
||||
|
||||
// Creates a new WebContents.
|
||||
diff --git content/public/browser/web_contents_delegate.h content/public/browser/web_contents_delegate.h
|
||||
index 0ad2e1d835a2..5e3f49cda5fa 100644
|
||||
index 6f0c02b02dc7..705795a4a5f5 100644
|
||||
--- content/public/browser/web_contents_delegate.h
|
||||
+++ content/public/browser/web_contents_delegate.h
|
||||
@@ -44,11 +44,13 @@ namespace content {
|
||||
class ColorChooser;
|
||||
@@ -45,11 +45,13 @@ class ColorChooser;
|
||||
class JavaScriptDialogManager;
|
||||
class RenderFrameHost;
|
||||
class RenderProcessHost;
|
||||
+class RenderViewHostDelegateView;
|
||||
class RenderWidgetHost;
|
||||
class SessionStorageNamespace;
|
||||
@@ -139,7 +139,7 @@ index 0ad2e1d835a2..5e3f49cda5fa 100644
|
||||
struct ContextMenuParams;
|
||||
struct DropData;
|
||||
struct FileChooserParams;
|
||||
@@ -307,6 +309,14 @@ class CONTENT_EXPORT WebContentsDelegate {
|
||||
@@ -312,6 +314,14 @@ class CONTENT_EXPORT WebContentsDelegate {
|
||||
const std::string& partition_id,
|
||||
SessionStorageNamespace* session_storage_namespace);
|
||||
|
||||
|
@@ -17,30 +17,31 @@ index 8088169f0434..47cf612db044 100644
|
||||
.Top()
|
||||
.GetSecurityContext()
|
||||
diff --git third_party/WebKit/Source/core/exported/WebDevToolsAgentImpl.cpp third_party/WebKit/Source/core/exported/WebDevToolsAgentImpl.cpp
|
||||
index 0fa2449c7f1c..8adf2d575e66 100644
|
||||
index 647da1f97f5c..4ef9014aecd9 100644
|
||||
--- third_party/WebKit/Source/core/exported/WebDevToolsAgentImpl.cpp
|
||||
+++ third_party/WebKit/Source/core/exported/WebDevToolsAgentImpl.cpp
|
||||
@@ -329,6 +329,7 @@ WebDevToolsAgentImpl::Session::Session(
|
||||
host_ptr_.Bind(std::move(host_ptr_info));
|
||||
host_ptr_.set_connection_error_handler(WTF::Bind(
|
||||
@@ -322,6 +322,8 @@ WebDevToolsAgentImpl::Session::Session(
|
||||
&WebDevToolsAgentImpl::Session::Detach, WrapWeakPersistent(this)));
|
||||
|
||||
InitializeInspectorSession(reattach_state);
|
||||
+
|
||||
+ Platform::Current()->DevToolsAgentAttached();
|
||||
}
|
||||
|
||||
void WebDevToolsAgentImpl::Session::Trace(blink::Visitor* visitor) {
|
||||
@@ -347,6 +348,7 @@ void WebDevToolsAgentImpl::Session::Detach() {
|
||||
WebDevToolsAgentImpl::Session::~Session() {
|
||||
@@ -347,6 +349,7 @@ void WebDevToolsAgentImpl::Session::Detach() {
|
||||
io_session_->DeleteSoon();
|
||||
io_session_ = nullptr;
|
||||
inspector_session_->Dispose();
|
||||
+ Platform::Current()->DevToolsAgentDetached();
|
||||
}
|
||||
|
||||
void WebDevToolsAgentImpl::Session::DispatchProtocolMessage(
|
||||
void WebDevToolsAgentImpl::Session::SendProtocolResponse(int session_id,
|
||||
diff --git third_party/WebKit/Source/core/frame/LocalFrame.cpp third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
||||
index b76797e978da..a784ce63c21d 100644
|
||||
index d300bba78132..48ca90b83fd6 100644
|
||||
--- third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
||||
+++ third_party/WebKit/Source/core/frame/LocalFrame.cpp
|
||||
@@ -1084,7 +1084,7 @@ FrameResourceCoordinator* LocalFrame::GetFrameResourceCoordinator() {
|
||||
@@ -1132,7 +1132,7 @@ FrameResourceCoordinator* LocalFrame::GetFrameResourceCoordinator() {
|
||||
PluginData* LocalFrame::GetPluginData() const {
|
||||
if (!Loader().AllowPlugins(kNotAboutToInstantiatePlugin))
|
||||
return nullptr;
|
||||
@@ -50,7 +51,7 @@ index b76797e978da..a784ce63c21d 100644
|
||||
}
|
||||
|
||||
diff --git third_party/WebKit/Source/core/page/Page.cpp third_party/WebKit/Source/core/page/Page.cpp
|
||||
index b864a731dc65..7fc8a6c023f1 100644
|
||||
index 2cedf7285afd..f3690511ceda 100644
|
||||
--- third_party/WebKit/Source/core/page/Page.cpp
|
||||
+++ third_party/WebKit/Source/core/page/Page.cpp
|
||||
@@ -148,7 +148,8 @@ Page::Page(PageClients& page_clients)
|
||||
@@ -188,10 +189,10 @@ index bdd586bd9621..13efebb33a49 100644
|
||||
|
||||
bool SupportsMimeType(const String& mime_type) const;
|
||||
diff --git third_party/WebKit/public/platform/Platform.h third_party/WebKit/public/platform/Platform.h
|
||||
index cc2a721a6ea3..2a843527f9d7 100644
|
||||
index d6ce9d31e241..93d4c32b656a 100644
|
||||
--- third_party/WebKit/public/platform/Platform.h
|
||||
+++ third_party/WebKit/public/platform/Platform.h
|
||||
@@ -376,6 +376,7 @@ class BLINK_PLATFORM_EXPORT Platform {
|
||||
@@ -383,6 +383,7 @@ class BLINK_PLATFORM_EXPORT Platform {
|
||||
// satisfy this call. mainFrameOrigin is used by the browser process to
|
||||
// filter plugins from the plugin list based on content settings.
|
||||
virtual void GetPluginList(bool refresh,
|
||||
@@ -199,7 +200,7 @@ index cc2a721a6ea3..2a843527f9d7 100644
|
||||
const WebSecurityOrigin& main_frame_origin,
|
||||
WebPluginListBuilder*) {}
|
||||
|
||||
@@ -748,6 +749,11 @@ class BLINK_PLATFORM_EXPORT Platform {
|
||||
@@ -746,6 +747,11 @@ class BLINK_PLATFORM_EXPORT Platform {
|
||||
// runs during Chromium's build step).
|
||||
virtual bool IsTakingV8ContextSnapshot() { return false; }
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git third_party/WebKit/Source/core/input/PointerEventManager.cpp third_party/WebKit/Source/core/input/PointerEventManager.cpp
|
||||
index 6e0a75cf93c3..403b019db4ee 100644
|
||||
index ce07c49a4777..ed1ef44ac2de 100644
|
||||
--- third_party/WebKit/Source/core/input/PointerEventManager.cpp
|
||||
+++ third_party/WebKit/Source/core/input/PointerEventManager.cpp
|
||||
@@ -269,7 +269,7 @@ void PointerEventManager::HandlePointerInterruption(
|
||||
@@ -270,7 +270,7 @@ void PointerEventManager::HandlePointerInterruption(
|
||||
for (auto pointer_event : canceled_pointer_events) {
|
||||
// If we are sending a pointercancel we have sent the pointerevent to some
|
||||
// target before.
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git third_party/WebKit/Source/core/exported/WebViewImpl.cpp third_party/WebKit/Source/core/exported/WebViewImpl.cpp
|
||||
index d0c5134a2ad6..1434134d4212 100644
|
||||
index 494a9bc0f294..a766c5d047b0 100644
|
||||
--- third_party/WebKit/Source/core/exported/WebViewImpl.cpp
|
||||
+++ third_party/WebKit/Source/core/exported/WebViewImpl.cpp
|
||||
@@ -258,8 +258,13 @@ void WebView::SetUseExternalPopupMenus(bool use_external_popup_menus) {
|
||||
@@ -253,8 +253,13 @@ void WebView::SetUseExternalPopupMenus(bool use_external_popup_menus) {
|
||||
g_should_use_external_popup_menus = use_external_popup_menus;
|
||||
}
|
||||
|
||||
@@ -18,7 +18,7 @@ index d0c5134a2ad6..1434134d4212 100644
|
||||
}
|
||||
|
||||
namespace {
|
||||
@@ -350,6 +355,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client,
|
||||
@@ -345,6 +350,7 @@ WebViewImpl::WebViewImpl(WebViewClient* client,
|
||||
enable_fake_page_scale_animation_for_testing_(false),
|
||||
fake_page_scale_animation_page_scale_factor_(0),
|
||||
fake_page_scale_animation_use_anchor_(false),
|
||||
@@ -27,11 +27,11 @@ index d0c5134a2ad6..1434134d4212 100644
|
||||
suppress_next_keypress_event_(false),
|
||||
ime_accept_events_(true),
|
||||
diff --git third_party/WebKit/Source/core/exported/WebViewImpl.h third_party/WebKit/Source/core/exported/WebViewImpl.h
|
||||
index 79a702679fec..babc626a91bf 100644
|
||||
index 4e820e7746b7..52c6eaaf2f89 100644
|
||||
--- third_party/WebKit/Source/core/exported/WebViewImpl.h
|
||||
+++ third_party/WebKit/Source/core/exported/WebViewImpl.h
|
||||
@@ -107,7 +107,8 @@ class CORE_EXPORT WebViewImpl final
|
||||
static const WebInputEvent* CurrentInputEvent();
|
||||
@@ -106,7 +106,8 @@ class CORE_EXPORT WebViewImpl final
|
||||
static HashSet<WebViewImpl*>& AllInstances();
|
||||
// Returns true if popup menus should be rendered by the browser, false if
|
||||
// they should be rendered by WebKit (which is the default).
|
||||
- static bool UseExternalPopupMenus();
|
||||
@@ -49,7 +49,7 @@ index 79a702679fec..babc626a91bf 100644
|
||||
void SetBaseBackgroundColorOverride(WebColor);
|
||||
void ClearBaseBackgroundColorOverride();
|
||||
void SetBackgroundColorOverride(WebColor);
|
||||
@@ -608,6 +609,8 @@ class CORE_EXPORT WebViewImpl final
|
||||
@@ -602,6 +603,8 @@ class CORE_EXPORT WebViewImpl final
|
||||
float fake_page_scale_animation_page_scale_factor_;
|
||||
bool fake_page_scale_animation_use_anchor_;
|
||||
|
||||
@@ -59,10 +59,10 @@ index 79a702679fec..babc626a91bf 100644
|
||||
TransformationMatrix device_emulation_transform_;
|
||||
|
||||
diff --git third_party/WebKit/Source/core/page/ChromeClientImpl.cpp third_party/WebKit/Source/core/page/ChromeClientImpl.cpp
|
||||
index 98618289cfab..ec154753a350 100644
|
||||
index fd6ddf8f6c82..c953adec0b27 100644
|
||||
--- third_party/WebKit/Source/core/page/ChromeClientImpl.cpp
|
||||
+++ third_party/WebKit/Source/core/page/ChromeClientImpl.cpp
|
||||
@@ -774,7 +774,7 @@ PopupMenu* ChromeClientImpl::OpenPopupMenu(LocalFrame& frame,
|
||||
@@ -779,7 +779,7 @@ PopupMenu* ChromeClientImpl::OpenPopupMenu(LocalFrame& frame,
|
||||
return nullptr;
|
||||
|
||||
NotifyPopupOpeningObservers();
|
||||
@@ -72,10 +72,10 @@ index 98618289cfab..ec154753a350 100644
|
||||
|
||||
DCHECK(RuntimeEnabledFeatures::PagePopupEnabled());
|
||||
diff --git third_party/WebKit/public/web/WebView.h third_party/WebKit/public/web/WebView.h
|
||||
index 8f30d3c30bac..062ae5e643bb 100644
|
||||
index 8fc376c9973c..4f2ee40e800c 100644
|
||||
--- third_party/WebKit/public/web/WebView.h
|
||||
+++ third_party/WebKit/public/web/WebView.h
|
||||
@@ -360,6 +360,7 @@ class WebView : protected WebWidget {
|
||||
@@ -361,6 +361,7 @@ class WebView : protected WebWidget {
|
||||
|
||||
// Sets whether select popup menus should be rendered by the browser.
|
||||
BLINK_EXPORT static void SetUseExternalPopupMenus(bool);
|
||||
@@ -83,7 +83,7 @@ index 8f30d3c30bac..062ae5e643bb 100644
|
||||
|
||||
// Hides any popup (suggestions, selects...) that might be showing.
|
||||
virtual void HidePopups() = 0;
|
||||
@@ -390,6 +391,8 @@ class WebView : protected WebWidget {
|
||||
@@ -391,6 +392,8 @@ class WebView : protected WebWidget {
|
||||
unsigned inactive_background_color,
|
||||
unsigned inactive_foreground_color) = 0;
|
||||
|
||||
|
@@ -14,10 +14,10 @@ index e3a222a90f33..24298a7423f1 100644
|
||||
Profile* profile = ProfileManager::GetPrimaryUserProfile();
|
||||
if (!profile ||
|
||||
diff --git chrome/browser/ui/webui/net_internals/net_internals_ui.cc chrome/browser/ui/webui/net_internals/net_internals_ui.cc
|
||||
index 158173bac8eb..26af7ef2e14b 100644
|
||||
index 302df0f9a2cf..f6714b63a9f2 100644
|
||||
--- chrome/browser/ui/webui/net_internals/net_internals_ui.cc
|
||||
+++ chrome/browser/ui/webui/net_internals/net_internals_ui.cc
|
||||
@@ -552,41 +552,31 @@ void NetInternalsMessageHandler::OnClearBrowserCache(
|
||||
@@ -553,41 +553,31 @@ void NetInternalsMessageHandler::OnClearBrowserCache(
|
||||
void NetInternalsMessageHandler::OnGetPrerenderInfo(
|
||||
const base::ListValue* list) {
|
||||
DCHECK_CURRENTLY_ON(BrowserThread::UI);
|
||||
@@ -64,7 +64,7 @@ index 158173bac8eb..26af7ef2e14b 100644
|
||||
}
|
||||
|
||||
////////////////////////////////////////////////////////////////////////////////
|
||||
@@ -666,9 +656,17 @@ void NetInternalsMessageHandler::IOThreadImpl::OnRendererReady(
|
||||
@@ -667,9 +657,17 @@ void NetInternalsMessageHandler::IOThreadImpl::OnRendererReady(
|
||||
|
||||
PrePopulateEventList();
|
||||
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git chrome/app/generated_resources.grd chrome/app/generated_resources.grd
|
||||
index 094021d39f7e..43182c57d589 100644
|
||||
index 6cd05c6fcd2a..eedc0295d8b8 100644
|
||||
--- chrome/app/generated_resources.grd
|
||||
+++ chrome/app/generated_resources.grd
|
||||
@@ -4921,7 +4921,7 @@ Keep your key file in a safe place. You will need it to create new versions of y
|
||||
@@ -4830,7 +4830,7 @@ Keep your key file in a safe place. You will need it to create new versions of y
|
||||
</message>
|
||||
</if>
|
||||
<message name="IDS_PLUGIN_BLOCKED_BY_POLICY" desc="The placeholder text for a plugin blocked by enterprise policy.">
|
||||
|
@@ -1,8 +1,8 @@
|
||||
diff --git services/service_manager/sandbox/win/sandbox_win.cc services/service_manager/sandbox/win/sandbox_win.cc
|
||||
index 132a3e4dfd6c..568c0ef70065 100644
|
||||
index 6c7356eacc42..4804ce497e1b 100644
|
||||
--- services/service_manager/sandbox/win/sandbox_win.cc
|
||||
+++ services/service_manager/sandbox/win/sandbox_win.cc
|
||||
@@ -758,8 +758,11 @@ sandbox::ResultCode SandboxWin::StartSandboxedProcess(
|
||||
@@ -865,8 +865,11 @@ sandbox::ResultCode SandboxWin::StartSandboxedProcess(
|
||||
#endif
|
||||
|
||||
// Post-startup mitigations.
|
||||
|
28
patch/patches/win_strcat_817738.patch
Normal file
28
patch/patches/win_strcat_817738.patch
Normal file
@@ -0,0 +1,28 @@
|
||||
diff --git base/strings/strcat.h base/strings/strcat.h
|
||||
index b249d49..44c6211 100644
|
||||
--- base/strings/strcat.h
|
||||
+++ base/strings/strcat.h
|
||||
@@ -11,6 +11,12 @@
|
||||
#include "base/compiler_specific.h"
|
||||
#include "base/containers/span.h"
|
||||
#include "base/strings/string_piece.h"
|
||||
+#include "build/build_config.h"
|
||||
+
|
||||
+#if defined(OS_WIN)
|
||||
+// To resolve a conflict with Win32 API StrCat macro.
|
||||
+#include "base/win/windows_types.h"
|
||||
+#endif
|
||||
|
||||
namespace base {
|
||||
|
||||
diff --git base/win/windows_types.h base/win/windows_types.h
|
||||
index 8060f03..2a86195 100644
|
||||
--- base/win/windows_types.h
|
||||
+++ base/win/windows_types.h
|
||||
@@ -248,5 +248,6 @@
|
||||
#define SendMessageCallback SendMessageCallbackW
|
||||
#define SetCurrentDirectory SetCurrentDirectoryW
|
||||
#define StartService StartServiceW
|
||||
+#define StrCat StrCatW
|
||||
|
||||
#endif // BASE_WIN_WINDOWS_TYPES_H
|
Reference in New Issue
Block a user