Index: extensions/browser/guest_view/extension_options/extension_options_guest.cc |
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 9f3c07af53e48b505f821c24747a125b91e4ca89..a3d8c7c3afd11ee0df1801ebd1c1d6364f1fdd56 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); |
} |