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

Unified Diff: webkit/glue/context_menu_client_impl.cc

Issue 83002: download filename fix (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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 | « webkit/glue/context_menu.h ('k') | webkit/glue/resource_handle_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: webkit/glue/context_menu_client_impl.cc
===================================================================
--- webkit/glue/context_menu_client_impl.cc (revision 15065)
+++ webkit/glue/context_menu_client_impl.cc (working copy)
@@ -177,7 +177,8 @@
GURL page_url;
std::string security_info;
- std::wstring frame_encoding;
+ std::string frame_charset = WideToASCII(
+ webkit_glue::StringToStdWString(selected_frame->loader()->encoding()));
// Send the frame and page URLs in any case.
ContextNode frame_node = ContextNode(ContextNode::NONE);
ContextNode page_node =
@@ -188,8 +189,6 @@
frame_node = GetTypeAndURLFromFrame(selected_frame,
&frame_url,
ContextNode(ContextNode::FRAME));
- frame_encoding = webkit_glue::StringToStdWString(
- selected_frame->loader()->encoding());
}
if (r.isSelected()) {
@@ -253,7 +252,8 @@
selection_text_string,
misspelled_word_string,
edit_flags,
- security_info);
+ security_info,
+ frame_charset);
}
return NULL;
}
« no previous file with comments | « webkit/glue/context_menu.h ('k') | webkit/glue/resource_handle_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698