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

Side by Side Diff: chrome/browser/browser_process_impl.cc

Issue 6260003: Clear plugin data together with cookies on shutdown. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: update copyright date Created 9 years, 11 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 | Annotate | Revision Log
OLDNEW
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
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
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)
OLDNEW
« no previous file with comments | « chrome/app/generated_resources.grd ('k') | chrome/browser/dom_ui/options/content_settings_handler.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698