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

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

Issue 1098763003: Send origin updates to frame proxies when a frame navigates to new origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fix Windows builds (add missing base:: to UTF16toASCII) Created 5 years, 8 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 | « content/browser/frame_host/frame_tree_node.h ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 15679805e80deb41c13d12ad670af4db0ea014df..cabc819f4322201f2a42b9a5881e457628fcf2f2 100644
--- a/content/browser/frame_host/frame_tree_node.cc
+++ b/content/browser/frame_host/frame_tree_node.cc
@@ -135,11 +135,16 @@ void FrameTreeNode::ResetForNewProcess() {
old_children.clear(); // May notify observers.
}
+void FrameTreeNode::SetCurrentOrigin(const url::Origin& origin) {
+ if (!origin.IsSameAs(replication_state_.origin))
+ render_manager_.OnDidUpdateOrigin(origin);
+ replication_state_.origin = origin;
+}
+
void FrameTreeNode::SetFrameName(const std::string& name) {
+ if (name != replication_state_.name)
+ render_manager_.OnDidUpdateName(name);
replication_state_.name = name;
-
- // Notify this frame's proxies about the updated name.
- render_manager_.OnDidUpdateName(name);
}
bool FrameTreeNode::IsDescendantOf(FrameTreeNode* other) const {
« no previous file with comments | « content/browser/frame_host/frame_tree_node.h ('k') | content/browser/frame_host/navigator_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698