| 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 <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include <algorithm> | 9 #include <algorithm> |
| 10 #include <map> | 10 #include <map> |
| (...skipping 824 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 835 registry->RegisterStringPref(prefs::kApplicationLocale, std::string()); | 835 registry->RegisterStringPref(prefs::kApplicationLocale, std::string()); |
| 836 #if defined(OS_CHROMEOS) | 836 #if defined(OS_CHROMEOS) |
| 837 registry->RegisterStringPref(prefs::kOwnerLocale, std::string()); | 837 registry->RegisterStringPref(prefs::kOwnerLocale, std::string()); |
| 838 registry->RegisterStringPref(prefs::kHardwareKeyboardLayout, | 838 registry->RegisterStringPref(prefs::kHardwareKeyboardLayout, |
| 839 std::string()); | 839 std::string()); |
| 840 #endif // defined(OS_CHROMEOS) | 840 #endif // defined(OS_CHROMEOS) |
| 841 | 841 |
| 842 registry->RegisterBooleanPref(metrics::prefs::kMetricsReportingEnabled, | 842 registry->RegisterBooleanPref(metrics::prefs::kMetricsReportingEnabled, |
| 843 GoogleUpdateSettings::GetCollectStatsConsent()); | 843 GoogleUpdateSettings::GetCollectStatsConsent()); |
| 844 | 844 |
| 845 #if BUILDFLAG(ANDROID_JAVA_UI) | 845 #if defined(OS_ANDROID) |
| 846 registry->RegisterBooleanPref( | 846 registry->RegisterBooleanPref( |
| 847 prefs::kCrashReportingEnabled, false); | 847 prefs::kCrashReportingEnabled, false); |
| 848 #endif // BUILDFLAG(ANDROID_JAVA_UI) | 848 #endif // defined(OS_ANDROID) |
| 849 } | 849 } |
| 850 | 850 |
| 851 DownloadRequestLimiter* BrowserProcessImpl::download_request_limiter() { | 851 DownloadRequestLimiter* BrowserProcessImpl::download_request_limiter() { |
| 852 DCHECK(CalledOnValidThread()); | 852 DCHECK(CalledOnValidThread()); |
| 853 if (!download_request_limiter_.get()) | 853 if (!download_request_limiter_.get()) |
| 854 download_request_limiter_ = new DownloadRequestLimiter(); | 854 download_request_limiter_ = new DownloadRequestLimiter(); |
| 855 return download_request_limiter_.get(); | 855 return download_request_limiter_.get(); |
| 856 } | 856 } |
| 857 | 857 |
| 858 BackgroundModeManager* BrowserProcessImpl::background_mode_manager() { | 858 BackgroundModeManager* BrowserProcessImpl::background_mode_manager() { |
| (...skipping 548 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1407 } | 1407 } |
| 1408 | 1408 |
| 1409 void BrowserProcessImpl::OnAutoupdateTimer() { | 1409 void BrowserProcessImpl::OnAutoupdateTimer() { |
| 1410 if (CanAutorestartForUpdate()) { | 1410 if (CanAutorestartForUpdate()) { |
| 1411 DLOG(WARNING) << "Detected update. Restarting browser."; | 1411 DLOG(WARNING) << "Detected update. Restarting browser."; |
| 1412 RestartBackgroundInstance(); | 1412 RestartBackgroundInstance(); |
| 1413 } | 1413 } |
| 1414 } | 1414 } |
| 1415 | 1415 |
| 1416 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 1416 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
| OLD | NEW |