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/l10n_util.h" | 9 #include "app/l10n_util.h" |
10 #include "base/command_line.h" | 10 #include "base/command_line.h" |
(...skipping 521 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
532 NewRunnableMethod(this, &BrowserProcessImpl::DoInspectorFilesCheck)); | 532 NewRunnableMethod(this, &BrowserProcessImpl::DoInspectorFilesCheck)); |
533 } | 533 } |
534 | 534 |
535 void BrowserProcessImpl::Observe(NotificationType type, | 535 void BrowserProcessImpl::Observe(NotificationType type, |
536 const NotificationSource& source, | 536 const NotificationSource& source, |
537 const NotificationDetails& details) { | 537 const NotificationDetails& details) { |
538 if (type == NotificationType::APP_TERMINATING) { | 538 if (type == NotificationType::APP_TERMINATING) { |
539 Profile* profile = ProfileManager::GetDefaultProfile(); | 539 Profile* profile = ProfileManager::GetDefaultProfile(); |
540 if (profile) { | 540 if (profile) { |
541 PrefService* prefs = profile->GetPrefs(); | 541 PrefService* prefs = profile->GetPrefs(); |
542 if (prefs->GetBoolean(prefs::kClearPluginLSODataOnExit) && | 542 if (prefs->GetBoolean(prefs::kClearSiteDataOnExit) && |
543 local_state()->GetBoolean(prefs::kClearPluginLSODataEnabled)) { | 543 local_state()->GetBoolean(prefs::kClearPluginLSODataEnabled)) { |
544 plugin_data_remover_ = new PluginDataRemover(); | 544 plugin_data_remover_ = new PluginDataRemover(); |
545 plugin_data_remover_->StartRemoving(base::Time(), NULL); | 545 plugin_data_remover_->StartRemoving(base::Time(), NULL); |
546 } | 546 } |
547 } | 547 } |
548 } else { | 548 } else { |
549 NOTREACHED(); | 549 NOTREACHED(); |
550 } | 550 } |
551 } | 551 } |
552 | 552 |
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
916 } | 916 } |
917 | 917 |
918 void BrowserProcessImpl::OnAutoupdateTimer() { | 918 void BrowserProcessImpl::OnAutoupdateTimer() { |
919 if (CanAutorestartForUpdate()) { | 919 if (CanAutorestartForUpdate()) { |
920 DLOG(WARNING) << "Detected update. Restarting browser."; | 920 DLOG(WARNING) << "Detected update. Restarting browser."; |
921 RestartPersistentInstance(); | 921 RestartPersistentInstance(); |
922 } | 922 } |
923 } | 923 } |
924 | 924 |
925 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) | 925 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) |
OLD | NEW |