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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
617 | 617 |
618 const std::string& BrowserProcessImpl::GetApplicationLocale() { | 618 const std::string& BrowserProcessImpl::GetApplicationLocale() { |
619 DCHECK(!locale_.empty()); | 619 DCHECK(!locale_.empty()); |
620 return locale_; | 620 return locale_; |
621 } | 621 } |
622 | 622 |
623 void BrowserProcessImpl::SetApplicationLocale(const std::string& locale) { | 623 void BrowserProcessImpl::SetApplicationLocale(const std::string& locale) { |
624 locale_ = locale; | 624 locale_ = locale; |
625 extension_l10n_util::SetProcessLocale(locale); | 625 extension_l10n_util::SetProcessLocale(locale); |
626 chrome::ChromeContentBrowserClient::SetApplicationLocale(locale); | 626 chrome::ChromeContentBrowserClient::SetApplicationLocale(locale); |
627 TranslateDownloadManager::GetInstance()->set_application_locale(locale); | 627 translate::TranslateDownloadManager::GetInstance()->set_application_locale( |
| 628 locale); |
628 } | 629 } |
629 | 630 |
630 DownloadStatusUpdater* BrowserProcessImpl::download_status_updater() { | 631 DownloadStatusUpdater* BrowserProcessImpl::download_status_updater() { |
631 return download_status_updater_.get(); | 632 return download_status_updater_.get(); |
632 } | 633 } |
633 | 634 |
634 MediaFileSystemRegistry* BrowserProcessImpl::media_file_system_registry() { | 635 MediaFileSystemRegistry* BrowserProcessImpl::media_file_system_registry() { |
635 #if defined(OS_ANDROID) || defined(OS_IOS) | 636 #if defined(OS_ANDROID) || defined(OS_IOS) |
636 return NULL; | 637 return NULL; |
637 #else | 638 #else |
(...skipping 470 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1108 } | 1109 } |
1109 | 1110 |
1110 void BrowserProcessImpl::OnAutoupdateTimer() { | 1111 void BrowserProcessImpl::OnAutoupdateTimer() { |
1111 if (CanAutorestartForUpdate()) { | 1112 if (CanAutorestartForUpdate()) { |
1112 DLOG(WARNING) << "Detected update. Restarting browser."; | 1113 DLOG(WARNING) << "Detected update. Restarting browser."; |
1113 RestartBackgroundInstance(); | 1114 RestartBackgroundInstance(); |
1114 } | 1115 } |
1115 } | 1116 } |
1116 | 1117 |
1117 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 1118 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
OLD | NEW |