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

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: tolower Created 9 years, 7 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 66081c042a35ac5d20e7ef7885a655a57b3223c6..22e7e4e583527b482ec4b1660c901ff606c49504 100644
--- a/chrome/browser/chromeos/login/existing_user_controller.cc
+++ b/chrome/browser/chromeos/login/existing_user_controller.cc
@@ -6,6 +6,8 @@
#include "base/command_line.h"
#include "base/message_loop.h"
+#include "base/stringprintf.h"
+#include "base/string_util.h"
#include "base/utf_string_conversions.h"
#include "base/values.h"
#include "chrome/browser/browser_process.h"
@@ -43,8 +45,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[] =
@@ -339,9 +341,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 =
+ StringToLowerASCII(prefs->GetString(prefs::kApplicationLocale));
+ std::string start_url =
+ 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