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/file_manager/private_api_strings.h" | 5 #include "chrome/browser/chromeos/extensions/file_manager/private_api_strings.h" |
6 | 6 |
7 #include "base/strings/stringprintf.h" | 7 #include "base/strings/stringprintf.h" |
8 #include "base/sys_info.h" | 8 #include "base/sys_info.h" |
| 9 #include "chrome/browser/browser_process.h" |
9 #include "chrome/browser/chromeos/file_manager/open_with_browser.h" | 10 #include "chrome/browser/chromeos/file_manager/open_with_browser.h" |
10 #include "chrome/grit/generated_resources.h" | 11 #include "chrome/grit/generated_resources.h" |
11 #include "chromeos/system/statistics_provider.h" | 12 #include "chromeos/system/statistics_provider.h" |
12 #include "extensions/common/extension_l10n_util.h" | 13 #include "extensions/common/extension_l10n_util.h" |
13 #include "ui/base/l10n/l10n_util.h" | 14 #include "ui/base/l10n/l10n_util.h" |
14 #include "ui/base/webui/web_ui_util.h" | 15 #include "ui/base/webui/web_ui_util.h" |
15 #include "ui/strings/grit/app_locale_settings.h" | 16 #include "ui/strings/grit/app_locale_settings.h" |
16 | 17 |
17 namespace { | 18 namespace { |
18 | 19 |
(...skipping 516 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
535 "GOOGLE_DRIVE_ERROR_HELP_URL", | 536 "GOOGLE_DRIVE_ERROR_HELP_URL", |
536 base::StringPrintf(kHelpURLFormat, kGoogleDriveErrorHelpNumber)); | 537 base::StringPrintf(kHelpURLFormat, kGoogleDriveErrorHelpNumber)); |
537 dict->SetString("GOOGLE_DRIVE_HELP_URL", kGoogleDriveHelpUrl); | 538 dict->SetString("GOOGLE_DRIVE_HELP_URL", kGoogleDriveHelpUrl); |
538 dict->SetString("GOOGLE_DRIVE_OVERVIEW_URL", kGoogleDriveOverviewUrl); | 539 dict->SetString("GOOGLE_DRIVE_OVERVIEW_URL", kGoogleDriveOverviewUrl); |
539 dict->SetString("GOOGLE_DRIVE_REDEEM_URL", kGoogleDriveRedeemUrl); | 540 dict->SetString("GOOGLE_DRIVE_REDEEM_URL", kGoogleDriveRedeemUrl); |
540 dict->SetString("GOOGLE_DRIVE_ROOT_URL", kGoogleDriveRootUrl); | 541 dict->SetString("GOOGLE_DRIVE_ROOT_URL", kGoogleDriveRootUrl); |
541 dict->SetString( | 542 dict->SetString( |
542 "NO_ACTION_FOR_FILE_URL", | 543 "NO_ACTION_FOR_FILE_URL", |
543 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber)); | 544 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber)); |
544 dict->SetString("UI_LOCALE", extension_l10n_util::CurrentLocaleOrDefault()); | 545 dict->SetString("UI_LOCALE", extension_l10n_util::CurrentLocaleOrDefault()); |
545 webui::SetFontAndTextDirection(dict); | 546 |
| 547 const std::string& app_locale = g_browser_process->GetApplicationLocale(); |
| 548 webui::SetLoadTimeDataDefaults(app_locale, dict); |
| 549 |
546 return true; | 550 return true; |
547 } | 551 } |
548 | 552 |
549 } // namespace extensions | 553 } // namespace extensions |
OLD | NEW |