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

Unified Diff: third_party/WebKit/Source/web/ContextMenuClientImpl.cpp

Issue 2710983003: Move HistoryItem handling to DocumentLoader (Closed)
Patch Set: Experiment to fix DCHECKing tests Created 3 years, 9 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: third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
diff --git a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
index 905666f861b85ff4c83cd2184d5b0c2a71651761..1338efdc0e4e4d347b10e0ef27391720d6216781 100644
--- a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
@@ -302,7 +302,8 @@ bool ContextMenuClientImpl::showContextMenu(const ContextMenu* defaultMenu,
if (selectedFrame != m_webView->page()->mainFrame()) {
data.frameURL = urlFromFrame(selectedFrame);
- HistoryItem* historyItem = selectedFrame->loader().currentItem();
+ HistoryItem* historyItem =
+ selectedFrame->loader().documentLoader()->historyItem();
if (historyItem)
data.frameHistoryItem = WebHistoryItem(historyItem);
}

Powered by Google App Engine
This is Rietveld 408576698