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

Unified Diff: chrome/browser/ui/webui/extensions/install_extension_handler.cc

Issue 23531044: webui/extensions: Get rid of usage of deprecated FromWStringHack() function. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/extensions/install_extension_handler.cc
diff --git a/chrome/browser/ui/webui/extensions/install_extension_handler.cc b/chrome/browser/ui/webui/extensions/install_extension_handler.cc
index 72aa3e3fddf193386ccf50c0cd4d1bd552a0a97b..b72f8a3ca7fe011daf8a8cf51a15234f7d74b325 100644
--- a/chrome/browser/ui/webui/extensions/install_extension_handler.cc
+++ b/chrome/browser/ui/webui/extensions/install_extension_handler.cc
@@ -75,8 +75,7 @@ void InstallExtensionHandler::HandleStartDragMessage(const ListValue* args) {
const content::DropData::FileInfo& file_info = drop_data->filenames.front();
- file_to_install_ = base::FilePath::FromWStringHack(
- UTF16ToWide(file_info.path));
+ file_to_install_ = base::FilePath::FromUTF16Unsafe(file_info.path);
// Use the display name if provided, for checking file names
// (.path is likely a random hash value in that case).
file_display_name_ =
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698