Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1200)

Unified Diff: chrome/browser/printing/print_preview_dialog_controller_browsertest.cc

Issue 2378573005: [HBD] Blanket BLOCK on all non-HTTP(s) and non-FILE URLs for Flash. (Closed)
Patch Set: fix dat merge Created 4 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/plugins/plugin_utils.cc ('k') | chrome/browser/ui/cocoa/drag_util.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/printing/print_preview_dialog_controller_browsertest.cc
diff --git a/chrome/browser/printing/print_preview_dialog_controller_browsertest.cc b/chrome/browser/printing/print_preview_dialog_controller_browsertest.cc
index 27a7d5b38d92e4d376b4fd7aa1dc85f8c6de6419..e7dd7eab8b83bc00d264ab2cf3754f6e87c3fe75 100644
--- a/chrome/browser/printing/print_preview_dialog_controller_browsertest.cc
+++ b/chrome/browser/printing/print_preview_dialog_controller_browsertest.cc
@@ -38,6 +38,7 @@
#include "ipc/ipc_message_macros.h"
#include "ui/base/l10n/l10n_util.h"
#include "url/gurl.h"
+#include "url/origin.h"
using content::WebContents;
using content::WebContentsObserver;
@@ -150,12 +151,8 @@ void CheckPdfPluginForRenderFrame(content::RenderFrameHost* frame) {
ChromePluginServiceFilter* filter = ChromePluginServiceFilter::GetInstance();
EXPECT_TRUE(filter->IsPluginAvailable(
- frame->GetProcess()->GetID(),
- frame->GetRoutingID(),
- nullptr,
- GURL(kDummyPrintUrl),
- GURL(),
- &pdf_plugin_info));
+ frame->GetProcess()->GetID(), frame->GetRoutingID(), nullptr,
+ GURL(kDummyPrintUrl), url::Origin(), &pdf_plugin_info));
}
} // namespace
@@ -309,10 +306,8 @@ IN_PROC_BROWSER_TEST_F(PrintPreviewDialogControllerBrowserTest,
EXPECT_FALSE(filter->IsPluginAvailable(
initiator()->GetRenderProcessHost()->GetID(),
initiator()->GetMainFrame()->GetRoutingID(),
- browser()->profile()->GetResourceContext(),
- GURL("http://google.com"),
- GURL(),
- &dummy_pdf_plugin_info));
+ browser()->profile()->GetResourceContext(), GURL(),
+ url::Origin(GURL("http://google.com")), &dummy_pdf_plugin_info));
PrintPreview();
« no previous file with comments | « chrome/browser/plugins/plugin_utils.cc ('k') | chrome/browser/ui/cocoa/drag_util.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698