Index: chrome/browser/sync/profile_sync_service.cc |
diff --git a/chrome/browser/sync/profile_sync_service.cc b/chrome/browser/sync/profile_sync_service.cc |
index 0a0e9f952acd03bf4008e12e8368360dd9b7911c..f35939d45add993167d387cd1be231f6aa9066b6 100644 |
--- a/chrome/browser/sync/profile_sync_service.cc |
+++ b/chrome/browser/sync/profile_sync_service.cc |
@@ -74,9 +74,10 @@ void ProfileSyncService::InitSettings() { |
// Override the sync server URL from the command-line, if sync server |
// command-line argument exists. |
if (command_line.HasSwitch(switches::kSyncServiceURL)) { |
- std::wstring value(command_line.GetSwitchValue(switches::kSyncServiceURL)); |
+ std::string value(command_line.GetSwitchValueASCII( |
+ switches::kSyncServiceURL)); |
if (!value.empty()) { |
- GURL custom_sync_url(WideToUTF8(value)); |
+ GURL custom_sync_url(value); |
if (custom_sync_url.is_valid()) { |
sync_service_url_ = custom_sync_url; |
} else { |