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

Unified Diff: chrome/browser/chromeos/login/login_screen.cc

Issue 3134008: CommandLine: eliminate wstring-accepting AppendLooseValue (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: utf8 Created 10 years, 4 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
Index: chrome/browser/chromeos/login/login_screen.cc
diff --git a/chrome/browser/chromeos/login/login_screen.cc b/chrome/browser/chromeos/login/login_screen.cc
index 9e1d886cc29453de6c0949a4d12f8b466d88f7c8..5ed495684f1590d8ab0d69f7acb1c72060d59dde 100644
--- a/chrome/browser/chromeos/login/login_screen.cc
+++ b/chrome/browser/chromeos/login/login_screen.cc
@@ -105,10 +105,8 @@ void LoginScreen::OnOffTheRecordLoginSuccess() {
}
void LoginScreen::AppendStartUrlToCmdline() {
- if (start_url_.is_valid()) {
- CommandLine::ForCurrentProcess()->AppendLooseValue(
- UTF8ToWide(start_url_.spec()));
- }
+ if (start_url_.is_valid())
+ CommandLine::ForCurrentProcess()->AppendArg(start_url_.spec());
}
void LoginScreen::ShowError(int error_id, const std::string& details) {

Powered by Google App Engine
This is Rietveld 408576698