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

Unified Diff: chrome/browser/sessions/session_restore.cc

Issue 373013: Use GetSwitchValueASCII. (Closed)
Patch Set: Created 11 years, 1 month 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/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) {
« no previous file with comments | « chrome/browser/renderer_host/browser_render_process_host.cc ('k') | chrome/browser/sync/profile_sync_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698