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

Unified Diff: content/browser/frame_host/frame_tree_node.cc

Issue 1153763002: Hardening the 'url::Origin' implementation. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 7 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: content/browser/frame_host/frame_tree_node.cc
diff --git a/content/browser/frame_host/frame_tree_node.cc b/content/browser/frame_host/frame_tree_node.cc
index b87af213161184808696980c19bdb66a0978fe38..00bd551afde28f5acc6f1f4fbf495bd8f29802f2 100644
--- a/content/browser/frame_host/frame_tree_node.cc
+++ b/content/browser/frame_host/frame_tree_node.cc
@@ -139,7 +139,7 @@ void FrameTreeNode::ResetForNewProcess() {
}
void FrameTreeNode::SetCurrentOrigin(const url::Origin& origin) {
- if (!origin.IsSameAs(replication_state_.origin))
+ if (!origin.IsSameOriginWith(replication_state_.origin))
render_manager_.OnDidUpdateOrigin(origin);
replication_state_.origin = origin;
}

Powered by Google App Engine
This is Rietveld 408576698