| 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 "app/clipboard/clipboard.h" | 9 #include "app/clipboard/clipboard.h" |
| 10 #include "app/l10n_util.h" | 10 #include "app/l10n_util.h" |
| (...skipping 558 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 569 &BrowserProcessImpl::OnAutoupdateTimer); | 569 &BrowserProcessImpl::OnAutoupdateTimer); |
| 570 } | 570 } |
| 571 #endif | 571 #endif |
| 572 | 572 |
| 573 bool BrowserProcessImpl::have_inspector_files() const { | 573 bool BrowserProcessImpl::have_inspector_files() const { |
| 574 return have_inspector_files_; | 574 return have_inspector_files_; |
| 575 } | 575 } |
| 576 | 576 |
| 577 void BrowserProcessImpl::ClearLocalState(const FilePath& profile_path) { | 577 void BrowserProcessImpl::ClearLocalState(const FilePath& profile_path) { |
| 578 webkit_database::DatabaseTracker::ClearLocalState(profile_path); | 578 webkit_database::DatabaseTracker::ClearLocalState(profile_path); |
| 579 ChromeAppCacheService::ClearLocalState(profile_path); | |
| 580 } | 579 } |
| 581 | 580 |
| 582 bool BrowserProcessImpl::ShouldClearLocalState(FilePath* profile_path) { | 581 bool BrowserProcessImpl::ShouldClearLocalState(FilePath* profile_path) { |
| 583 FilePath user_data_dir; | 582 FilePath user_data_dir; |
| 584 Profile* profile; | 583 Profile* profile; |
| 585 | 584 |
| 586 // Check for the existence of a profile manager. When quitting early, | 585 // Check for the existence of a profile manager. When quitting early, |
| 587 // e.g. because another chrome instance is running, or when invoked with | 586 // e.g. because another chrome instance is running, or when invoked with |
| 588 // options such as --uninstall or --try-chrome-again=0, the profile manager | 587 // options such as --uninstall or --try-chrome-again=0, the profile manager |
| 589 // does not exist yet. | 588 // does not exist yet. |
| (...skipping 331 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 921 } | 920 } |
| 922 | 921 |
| 923 void BrowserProcessImpl::OnAutoupdateTimer() { | 922 void BrowserProcessImpl::OnAutoupdateTimer() { |
| 924 if (CanAutorestartForUpdate()) { | 923 if (CanAutorestartForUpdate()) { |
| 925 DLOG(WARNING) << "Detected update. Restarting browser."; | 924 DLOG(WARNING) << "Detected update. Restarting browser."; |
| 926 RestartPersistentInstance(); | 925 RestartPersistentInstance(); |
| 927 } | 926 } |
| 928 } | 927 } |
| 929 | 928 |
| 930 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 929 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
| OLD | NEW |