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 <set> | 9 #include <set> |
10 #include <vector> | 10 #include <vector> |
(...skipping 591 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
602 } | 602 } |
603 | 603 |
604 const std::string& BrowserProcessImpl::GetApplicationLocale() { | 604 const std::string& BrowserProcessImpl::GetApplicationLocale() { |
605 DCHECK(!locale_.empty()); | 605 DCHECK(!locale_.empty()); |
606 return locale_; | 606 return locale_; |
607 } | 607 } |
608 | 608 |
609 void BrowserProcessImpl::SetApplicationLocale(const std::string& locale) { | 609 void BrowserProcessImpl::SetApplicationLocale(const std::string& locale) { |
610 locale_ = locale; | 610 locale_ = locale; |
611 extension_l10n_util::SetProcessLocale(locale); | 611 extension_l10n_util::SetProcessLocale(locale); |
612 static_cast<chrome::ChromeContentBrowserClient*>( | 612 chrome::ChromeContentBrowserClient::SetApplicationLocale(locale); |
613 content::GetContentClient()->browser())->SetApplicationLocale(locale); | |
614 } | 613 } |
615 | 614 |
616 DownloadStatusUpdater* BrowserProcessImpl::download_status_updater() { | 615 DownloadStatusUpdater* BrowserProcessImpl::download_status_updater() { |
617 return download_status_updater_.get(); | 616 return download_status_updater_.get(); |
618 } | 617 } |
619 | 618 |
620 BookmarkPromptController* BrowserProcessImpl::bookmark_prompt_controller() { | 619 BookmarkPromptController* BrowserProcessImpl::bookmark_prompt_controller() { |
621 #if defined(OS_ANDROID) | 620 #if defined(OS_ANDROID) |
622 return NULL; | 621 return NULL; |
623 #else | 622 #else |
(...skipping 428 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1052 } | 1051 } |
1053 | 1052 |
1054 void BrowserProcessImpl::OnAutoupdateTimer() { | 1053 void BrowserProcessImpl::OnAutoupdateTimer() { |
1055 if (CanAutorestartForUpdate()) { | 1054 if (CanAutorestartForUpdate()) { |
1056 DLOG(WARNING) << "Detected update. Restarting browser."; | 1055 DLOG(WARNING) << "Detected update. Restarting browser."; |
1057 RestartBackgroundInstance(); | 1056 RestartBackgroundInstance(); |
1058 } | 1057 } |
1059 } | 1058 } |
1060 | 1059 |
1061 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 1060 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
OLD | NEW |