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

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

Issue 6930033: Replace GetStarted component extension with URL (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 8 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
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « chrome/browser/browser_resources.grd ('k') | chrome/browser/profiles/profile_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698