summaryrefslogtreecommitdiffstats
path: root/extensions/browser/guest_view/extension_options/extension_options_guest.cc
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/browser/guest_view/extension_options/extension_options_guest.cc')
-rw-r--r--extensions/browser/guest_view/extension_options/extension_options_guest.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/extensions/browser/guest_view/extension_options/extension_options_guest.cc b/extensions/browser/guest_view/extension_options/extension_options_guest.cc
index 9f3c07a..a3d8c7c 100644
--- a/extensions/browser/guest_view/extension_options/extension_options_guest.cc
+++ b/extensions/browser/guest_view/extension_options/extension_options_guest.cc
@@ -231,7 +231,7 @@ void ExtensionOptionsGuest::DidNavigateMainFrame(
ui_zoom::ZoomController::ZOOM_MODE_ISOLATED);
SetGuestZoomLevelToMatchEmbedder();
- if (params.url.GetOrigin() != options_page_.GetOrigin()) {
+ if (!url::IsSameOriginWith(params.url, options_page_)) {
bad_message::ReceivedBadMessage(web_contents()->GetRenderProcessHost(),
bad_message::EOG_BAD_ORIGIN);
}