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

Unified Diff: content/shell/shell_browser_main.cc

Issue 11150016: Revert 161840 - Compile fix for windows after r161839 (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 2 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: content/shell/shell_browser_main.cc
===================================================================
--- content/shell/shell_browser_main.cc (revision 161842)
+++ content/shell/shell_browser_main.cc (working copy)
@@ -11,7 +11,6 @@
#include "base/file_util.h"
#include "base/logging.h"
#include "base/memory/scoped_ptr.h"
-#include "base/sys_string_conversions.h"
#include "base/threading/thread_restrictions.h"
#include "content/public/browser/browser_main_runner.h"
#include "content/shell/shell_switches.h"
@@ -45,15 +44,8 @@
if (expected_pixel_hash)
*expected_pixel_hash = pixel_hash;
GURL test_url(path_or_url);
- if (!(test_url.is_valid() && test_url.has_scheme())) {
-#if defined(OS_WIN)
- std::wstring wide_path_or_url =
- base::SysNativeMBToWide(path_or_url);
+ if (!(test_url.is_valid() && test_url.has_scheme()))
test_url = net::FilePathToFileURL(FilePath(path_or_url));
-#else
- test_url = net::FilePathToFileURL(FilePath(path_or_url));
-#endif
- }
FilePath local_path;
if (net::FileURLToFilePath(test_url, &local_path)) {
// We're outside of the message loop here, and this is a test.
« 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