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

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

Issue 296004: Use GetSwitchValueASCII. (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
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
===================================================================
--- chrome/browser/sessions/session_restore.cc (revision 31117)
+++ chrome/browser/sessions/session_restore.cc (working copy)
@@ -365,11 +365,11 @@
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