Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(260)

Side by Side Diff: chrome/browser/browser_process_impl.cc

Issue 378253002: Fix translate namespace (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixing android build errors Created 6 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « chrome/browser/autofill/autofill_interactive_uitest.cc ('k') | chrome/browser/chrome_browser_main.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698