Chromium Code Reviews| Index: chrome/browser/chromeos/login/existing_user_controller.cc |
| diff --git a/chrome/browser/chromeos/login/existing_user_controller.cc b/chrome/browser/chromeos/login/existing_user_controller.cc |
| index 446721aa56d08ba0a24041e070bd6af0cc578b4f..dd206cc0891640f93fff1779283dddf0754b3dfc 100644 |
| --- a/chrome/browser/chromeos/login/existing_user_controller.cc |
| +++ b/chrome/browser/chromeos/login/existing_user_controller.cc |
| @@ -6,6 +6,7 @@ |
| #include "base/command_line.h" |
| #include "base/message_loop.h" |
| +#include "base/stringprintf.h" |
| #include "base/utf_string_conversions.h" |
| #include "base/values.h" |
| #include "chrome/browser/browser_process.h" |
| @@ -43,8 +44,8 @@ namespace { |
| const char kSettingsSyncLoginURL[] = "chrome://settings/personal"; |
| // URL that will be opened on when user logs in first time on the device. |
| -const char kGetStartedURL[] = |
| - "chrome-extension://cbmhffdpiobpchciemffincgahkkljig/index.html"; |
| +const char kGetStartedURLPattern[] = |
| + "http://services.google.com/chromeos/gettingstarted/index-%s.html"; |
| // URL for account creation. |
| const char kCreateAccountURL[] = |
| @@ -331,9 +332,12 @@ void ExistingUserController::OnLoginSuccess( |
| void ExistingUserController::OnProfilePrepared(Profile* profile) { |
| // TODO(nkostylev): May add login UI implementation callback call. |
| if (!ready_for_browser_launch_) { |
| -#if defined(OFFICIAL_BUILD) |
| - CommandLine::ForCurrentProcess()->AppendArg(kGetStartedURL); |
| -#endif // OFFICIAL_BUILD |
| + PrefService* prefs = g_browser_process->local_state(); |
| + const std::string current_locale = |
| + prefs->GetString(prefs::kApplicationLocale); |
| + std::string start_url = |
|
Nikita (slow)
2011/05/11 10:22:24
As discussed, add conversion to lower case.
Dmitry Polukhin
2011/05/11 10:27:19
Done. I did it some time ago but forgot to upload
|
| + base::StringPrintf(kGetStartedURLPattern, current_locale.c_str()); |
| + CommandLine::ForCurrentProcess()->AppendArg(start_url); |
| ServicesCustomizationDocument* customization = |
| ServicesCustomizationDocument::GetInstance(); |