OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/browser_process_impl.h" | 5 #include "chrome/browser/browser_process_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 697 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
708 | 708 |
709 const std::string& BrowserProcessImpl::GetApplicationLocale() { | 709 const std::string& BrowserProcessImpl::GetApplicationLocale() { |
710 DCHECK(!locale_.empty()); | 710 DCHECK(!locale_.empty()); |
711 return locale_; | 711 return locale_; |
712 } | 712 } |
713 | 713 |
714 void BrowserProcessImpl::SetApplicationLocale(const std::string& locale) { | 714 void BrowserProcessImpl::SetApplicationLocale(const std::string& locale) { |
715 locale_ = locale; | 715 locale_ = locale; |
716 extension_l10n_util::SetProcessLocale(locale); | 716 extension_l10n_util::SetProcessLocale(locale); |
717 chrome::ChromeContentBrowserClient::SetApplicationLocale(locale); | 717 chrome::ChromeContentBrowserClient::SetApplicationLocale(locale); |
718 TranslateDownloadManager::GetInstance()->set_application_locale(locale); | 718 translate::TranslateDownloadManager::GetInstance()->set_application_locale( |
| 719 locale); |
719 } | 720 } |
720 | 721 |
721 DownloadStatusUpdater* BrowserProcessImpl::download_status_updater() { | 722 DownloadStatusUpdater* BrowserProcessImpl::download_status_updater() { |
722 return download_status_updater_.get(); | 723 return download_status_updater_.get(); |
723 } | 724 } |
724 | 725 |
725 MediaFileSystemRegistry* BrowserProcessImpl::media_file_system_registry() { | 726 MediaFileSystemRegistry* BrowserProcessImpl::media_file_system_registry() { |
726 #if defined(ENABLE_EXTENSIONS) | 727 #if defined(ENABLE_EXTENSIONS) |
727 if (!media_file_system_registry_) | 728 if (!media_file_system_registry_) |
728 media_file_system_registry_.reset(new MediaFileSystemRegistry()); | 729 media_file_system_registry_.reset(new MediaFileSystemRegistry()); |
(...skipping 471 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1200 } | 1201 } |
1201 | 1202 |
1202 void BrowserProcessImpl::OnAutoupdateTimer() { | 1203 void BrowserProcessImpl::OnAutoupdateTimer() { |
1203 if (CanAutorestartForUpdate()) { | 1204 if (CanAutorestartForUpdate()) { |
1204 DLOG(WARNING) << "Detected update. Restarting browser."; | 1205 DLOG(WARNING) << "Detected update. Restarting browser."; |
1205 RestartBackgroundInstance(); | 1206 RestartBackgroundInstance(); |
1206 } | 1207 } |
1207 } | 1208 } |
1208 | 1209 |
1209 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 1210 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
OLD | NEW |