| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 <map> | 7 #include <map> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/file_util.h" | 10 #include "base/file_util.h" |
| (...skipping 815 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 826 profile_manager_.reset(new ProfileManager()); | 826 profile_manager_.reset(new ProfileManager()); |
| 827 } | 827 } |
| 828 | 828 |
| 829 void BrowserProcessImpl::CreateLocalState() { | 829 void BrowserProcessImpl::CreateLocalState() { |
| 830 DCHECK(!created_local_state_ && local_state_.get() == NULL); | 830 DCHECK(!created_local_state_ && local_state_.get() == NULL); |
| 831 created_local_state_ = true; | 831 created_local_state_ = true; |
| 832 | 832 |
| 833 FilePath local_state_path; | 833 FilePath local_state_path; |
| 834 PathService::Get(chrome::FILE_LOCAL_STATE, &local_state_path); | 834 PathService::Get(chrome::FILE_LOCAL_STATE, &local_state_path); |
| 835 local_state_.reset( | 835 local_state_.reset( |
| 836 PrefService::CreatePrefService(local_state_path, NULL, NULL)); | 836 PrefService::CreatePrefService(local_state_path, NULL, NULL, false)); |
| 837 | 837 |
| 838 // Initialize the prefs of the local state. | 838 // Initialize the prefs of the local state. |
| 839 browser::RegisterLocalState(local_state_.get()); | 839 browser::RegisterLocalState(local_state_.get()); |
| 840 | 840 |
| 841 pref_change_registrar_.Init(local_state_.get()); | 841 pref_change_registrar_.Init(local_state_.get()); |
| 842 | 842 |
| 843 print_job_manager_->InitOnUIThread(local_state_.get()); | 843 print_job_manager_->InitOnUIThread(local_state_.get()); |
| 844 | 844 |
| 845 // Initialize the notification for the default browser setting policy. | 845 // Initialize the notification for the default browser setting policy. |
| 846 local_state_->RegisterBooleanPref(prefs::kDefaultBrowserSettingEnabled, | 846 local_state_->RegisterBooleanPref(prefs::kDefaultBrowserSettingEnabled, |
| (...skipping 202 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1049 } | 1049 } |
| 1050 | 1050 |
| 1051 void BrowserProcessImpl::OnAutoupdateTimer() { | 1051 void BrowserProcessImpl::OnAutoupdateTimer() { |
| 1052 if (CanAutorestartForUpdate()) { | 1052 if (CanAutorestartForUpdate()) { |
| 1053 DLOG(WARNING) << "Detected update. Restarting browser."; | 1053 DLOG(WARNING) << "Detected update. Restarting browser."; |
| 1054 RestartPersistentInstance(); | 1054 RestartPersistentInstance(); |
| 1055 } | 1055 } |
| 1056 } | 1056 } |
| 1057 | 1057 |
| 1058 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 1058 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
| OLD | NEW |