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

Unified Diff: content/renderer/history_entry.cc

Issue 2714943004: Move unique name generation and tracking into //content. (Closed)
Patch Set: Revert back to original check in didUpdateName Created 3 years, 10 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/renderer/history_entry.cc
diff --git a/content/renderer/history_entry.cc b/content/renderer/history_entry.cc
index e74299a88f69bc19fa2d74475fe3737fd68eaa6e..90f7525b6789b514418f9dd8947b4046a999689a 100644
--- a/content/renderer/history_entry.cc
+++ b/content/renderer/history_entry.cc
@@ -174,7 +174,7 @@ HistoryEntry::HistoryNode* HistoryEntry::GetHistoryNodeForFrame(
RenderFrameImpl* frame) {
if (!frame->GetWebFrame()->parent())
return root_history_node();
- return unique_names_to_items_[frame->GetWebFrame()->uniqueName().utf8()];
+ return unique_names_to_items_[frame->unique_name()];
}
WebHistoryItem HistoryEntry::GetItemForFrame(RenderFrameImpl* frame) {

Powered by Google App Engine
This is Rietveld 408576698