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

Unified Diff: chrome/browser/ui/cocoa/drag_util.mm

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
Index: chrome/browser/ui/cocoa/drag_util.mm
diff --git a/chrome/browser/ui/cocoa/drag_util.mm b/chrome/browser/ui/cocoa/drag_util.mm
index c85af8b776db5129a016b5ae02712ac15bb8969d..4a3e00eaac9900e710418ed2cb3cb3c34bf21450 100644
--- a/chrome/browser/ui/cocoa/drag_util.mm
+++ b/chrome/browser/ui/cocoa/drag_util.mm
@@ -22,6 +22,7 @@
#include "ui/gfx/scoped_ns_graphics_context_save_gstate_mac.h"
#include "ui/resources/grit/ui_resources.h"
#include "url/gurl.h"
+#include "url/origin.h"
#include "url/url_constants.h"
using content::PluginService;
@@ -51,9 +52,8 @@ BOOL IsSupportedFileURL(Profile* profile, const GURL& url) {
return PluginService::GetInstance()->GetPluginInfo(
-1, // process ID
MSG_ROUTING_NONE, // routing ID
- profile->GetResourceContext(),
- url, GURL(), mime_type, allow_wildcard,
- NULL, &plugin, NULL);
+ profile->GetResourceContext(), url, url::Origin(), mime_type,
+ allow_wildcard, NULL, &plugin, NULL);
}
// Draws string |title| within box |frame|, positioning it at the origin.

Powered by Google App Engine
This is Rietveld 408576698