| 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 <memory> | 7 #include <memory> |
| 8 #include <utility> | 8 #include <utility> |
| 9 | 9 |
| 10 #include "base/strings/stringprintf.h" | 10 #include "base/strings/stringprintf.h" |
| 11 #include "base/sys_info.h" | 11 #include "base/sys_info.h" |
| 12 #include "chrome/browser/browser_process.h" | 12 #include "chrome/browser/browser_process.h" |
| 13 #include "chrome/browser/chromeos/file_manager/open_with_browser.h" | 13 #include "chrome/browser/chromeos/file_manager/open_with_browser.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/grit/generated_resources.h" | 15 #include "chrome/grit/generated_resources.h" |
| 16 #include "chromeos/system/statistics_provider.h" | 16 #include "chromeos/system/statistics_provider.h" |
| 17 #include "extensions/common/extension_l10n_util.h" | 17 #include "extensions/common/extension_l10n_util.h" |
| 18 #include "ui/base/l10n/l10n_util.h" | 18 #include "ui/base/l10n/l10n_util.h" |
| 19 #include "ui/base/webui/web_ui_util.h" | 19 #include "ui/base/webui/web_ui_util.h" |
| 20 #include "ui/strings/grit/app_locale_settings.h" | |
| 21 | 20 |
| 22 namespace { | 21 namespace { |
| 23 | 22 |
| 24 // Location of the page to buy more storage for Google Drive. | 23 // Location of the page to buy more storage for Google Drive. |
| 25 const char kGoogleDriveBuyStorageUrl[] = | 24 const char kGoogleDriveBuyStorageUrl[] = |
| 26 "https://www.google.com/settings/storage"; | 25 "https://www.google.com/settings/storage"; |
| 27 | 26 |
| 28 // Location of the overview page about Google Drive. | 27 // Location of the overview page about Google Drive. |
| 29 const char kGoogleDriveOverviewUrl[] = | 28 const char kGoogleDriveOverviewUrl[] = |
| 30 "https://support.google.com/chromebook/?p=filemanager_drive"; | 29 "https://support.google.com/chromebook/?p=filemanager_drive"; |
| (...skipping 702 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 733 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber)); | 732 base::StringPrintf(kHelpURLFormat, kNoActionForFileHelpNumber)); |
| 734 dict->SetString("UI_LOCALE", extension_l10n_util::CurrentLocaleOrDefault()); | 733 dict->SetString("UI_LOCALE", extension_l10n_util::CurrentLocaleOrDefault()); |
| 735 | 734 |
| 736 const std::string& app_locale = g_browser_process->GetApplicationLocale(); | 735 const std::string& app_locale = g_browser_process->GetApplicationLocale(); |
| 737 webui::SetLoadTimeDataDefaults(app_locale, dict.get()); | 736 webui::SetLoadTimeDataDefaults(app_locale, dict.get()); |
| 738 | 737 |
| 739 return RespondNow(OneArgument(std::move(dict))); | 738 return RespondNow(OneArgument(std::move(dict))); |
| 740 } | 739 } |
| 741 | 740 |
| 742 } // namespace extensions | 741 } // namespace extensions |
| OLD | NEW |