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

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

Issue 2710983003: Move HistoryItem handling to DocumentLoader (Closed)
Patch Set: Address kinuko's comments 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 dd9e57e9fe261a56dc41a8e0ea49eab7eefec896..701d204c2be30d0c1996c3cd483314d17ca018c3 100644
--- a/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
+++ b/third_party/WebKit/Source/web/ContextMenuClientImpl.cpp
@@ -301,7 +301,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);
}
« no previous file with comments | « third_party/WebKit/Source/core/testing/Internals.cpp ('k') | third_party/WebKit/Source/web/WebLocalFrameImpl.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698