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

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: 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 606 matching lines...) Expand 10 before | Expand all | Expand 10 after
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
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)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698