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

Unified Diff: content/renderer/context_menu_params_builder.cc

Issue 14985014: Introduce content::PageState (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Add comments to the top of page_state.h Created 7 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/renderer/context_menu_params_builder.cc
diff --git a/content/renderer/context_menu_params_builder.cc b/content/renderer/context_menu_params_builder.cc
index 8087a3375827323e5a3bc5a8b5fe95388281bb44..36c46f97aaa2112493c5a986f28526c8ae0d26c1 100644
--- a/content/renderer/context_menu_params_builder.cc
+++ b/content/renderer/context_menu_params_builder.cc
@@ -7,9 +7,9 @@
#include "base/logging.h"
#include "content/common/ssl_status_serialization.h"
#include "content/public/common/context_menu_params.h"
+#include "content/public/renderer/history_item_serialization.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebElement.h"
#include "third_party/WebKit/Source/WebKit/chromium/public/WebNode.h"
-#include "webkit/glue/glue_serialize.h"
namespace content {
@@ -50,10 +50,8 @@ ContextMenuParams ContextMenuParamsBuilder::Build(
for (size_t i = 0; i < data.customItems.size(); ++i)
params.custom_items.push_back(WebMenuItem(data.customItems[i]));
- if (!data.frameHistoryItem.isNull()) {
- params.frame_content_state =
- webkit_glue::HistoryItemToString(data.frameHistoryItem);
- }
+ if (!data.frameHistoryItem.isNull())
+ params.frame_page_state = HistoryItemToPageState(data.frameHistoryItem);
if (!params.link_url.is_empty()) {
WebKit::WebNode selectedNode = data.node;

Powered by Google App Engine
This is Rietveld 408576698