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

Unified Diff: chrome/browser/tab_contents/render_view_context_menu_controller.cc

Issue 27370: Update clipboard classes to use string16 and FilePath instead of wstring.... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 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: chrome/browser/tab_contents/render_view_context_menu_controller.cc
===================================================================
--- chrome/browser/tab_contents/render_view_context_menu_controller.cc (revision 10811)
+++ chrome/browser/tab_contents/render_view_context_menu_controller.cc (working copy)
@@ -67,7 +67,7 @@
}
void RenderViewContextMenuController::WriteTextToClipboard(
- const std::wstring& text) {
+ const string16& text) {
ClipboardService* clipboard = g_browser_process->clipboard_service();
if (!clipboard)
@@ -79,9 +79,9 @@
void RenderViewContextMenuController::WriteURLToClipboard(const GURL& url) {
if (url.SchemeIs(chrome::kMailToScheme))
- WriteTextToClipboard(UTF8ToWide(url.path()));
+ WriteTextToClipboard(UTF8ToUTF16(url.path()));
else
- WriteTextToClipboard(UTF8ToWide(url.spec()));
+ WriteTextToClipboard(UTF8ToUTF16(url.spec()));
}
///////////////////////////////////////////////////////////////////////////////
« no previous file with comments | « chrome/browser/tab_contents/render_view_context_menu_controller.h ('k') | chrome/common/ipc_message_utils.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698