| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #include "chrome/browser/chromeos/extensions/first_run_private_api.h" | 5 #include "chrome/browser/chromeos/extensions/first_run_private_api.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram.h" | 7 #include "base/metrics/histogram.h" |
| 8 #include "chrome/browser/browser_process.h" |
| 8 #include "chrome/browser/chromeos/first_run/first_run.h" | 9 #include "chrome/browser/chromeos/first_run/first_run.h" |
| 9 #include "chrome/browser/chromeos/profiles/profile_helper.h" | 10 #include "chrome/browser/chromeos/profiles/profile_helper.h" |
| 10 #include "chrome/browser/profiles/profile_manager.h" | 11 #include "chrome/browser/profiles/profile_manager.h" |
| 11 #include "chrome/grit/chromium_strings.h" | 12 #include "chrome/grit/chromium_strings.h" |
| 12 #include "chrome/grit/generated_resources.h" | 13 #include "chrome/grit/generated_resources.h" |
| 13 #include "components/user_manager/user.h" | 14 #include "components/user_manager/user.h" |
| 14 #include "ui/base/l10n/l10n_util.h" | 15 #include "ui/base/l10n/l10n_util.h" |
| 15 #include "ui/base/webui/web_ui_util.h" | 16 #include "ui/base/webui/web_ui_util.h" |
| 16 | 17 |
| 17 bool FirstRunPrivateGetLocalizedStringsFunction::RunSync() { | 18 bool FirstRunPrivateGetLocalizedStringsFunction::RunSync() { |
| (...skipping 20 matching lines...) Expand all Loading... |
| 38 localized_strings->SetString( | 39 localized_strings->SetString( |
| 39 "greetingText2", | 40 "greetingText2", |
| 40 l10n_util::GetStringFUTF16(IDS_FIRST_RUN_GREETING_STEP_TEXT_2, | 41 l10n_util::GetStringFUTF16(IDS_FIRST_RUN_GREETING_STEP_TEXT_2, |
| 41 product_name)); | 42 product_name)); |
| 42 localized_strings->SetString( | 43 localized_strings->SetString( |
| 43 "greetingButton", | 44 "greetingButton", |
| 44 l10n_util::GetStringUTF16(IDS_FIRST_RUN_GREETING_STEP_BUTTON)); | 45 l10n_util::GetStringUTF16(IDS_FIRST_RUN_GREETING_STEP_BUTTON)); |
| 45 localized_strings->SetString( | 46 localized_strings->SetString( |
| 46 "closeButton", | 47 "closeButton", |
| 47 l10n_util::GetStringUTF16(IDS_CLOSE)); | 48 l10n_util::GetStringUTF16(IDS_CLOSE)); |
| 48 webui::SetFontAndTextDirection(localized_strings); | 49 |
| 50 const std::string& app_locale = g_browser_process->GetApplicationLocale(); |
| 51 webui::SetLoadTimeDataDefaults(app_locale, localized_strings); |
| 52 |
| 49 SetResult(localized_strings); | 53 SetResult(localized_strings); |
| 50 return true; | 54 return true; |
| 51 } | 55 } |
| 52 | 56 |
| 53 bool FirstRunPrivateLaunchTutorialFunction::RunSync() { | 57 bool FirstRunPrivateLaunchTutorialFunction::RunSync() { |
| 54 chromeos::first_run::LaunchTutorial(); | 58 chromeos::first_run::LaunchTutorial(); |
| 55 return true; | 59 return true; |
| 56 } | 60 } |
| OLD | NEW |