Index: chrome/browser/sessions/session_restore.cc |
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc |
index 6db85163b78fe16658ca9600f0bf90bf2094fba2..36bc224397ec76548c354a78766c4dba85c0dbbd 100644 |
--- a/chrome/browser/sessions/session_restore.cc |
+++ b/chrome/browser/sessions/session_restore.cc |
@@ -365,11 +365,11 @@ class SessionRestoreImpl : public NotificationObserver { |
bool pin_tabs) { |
int pin_count = 0; |
if (pin_tabs) { |
- std::wstring pin_count_string = |
- CommandLine::ForCurrentProcess()->GetSwitchValue( |
+ std::string pin_count_string = |
+ CommandLine::ForCurrentProcess()->GetSwitchValueASCII( |
switches::kPinnedTabCount); |
if (!pin_count_string.empty()) |
- pin_count = StringToInt(WideToUTF16Hack(pin_count_string)); |
+ pin_count = StringToInt(pin_count_string); |
} |
for (size_t i = 0; i < urls.size(); ++i) { |