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

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: sync 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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after
920 } 920 }
921 921
922 void BrowserProcessImpl::OnAutoupdateTimer() { 922 void BrowserProcessImpl::OnAutoupdateTimer() {
923 if (CanAutorestartForUpdate()) { 923 if (CanAutorestartForUpdate()) {
924 DLOG(WARNING) << "Detected update. Restarting browser."; 924 DLOG(WARNING) << "Detected update. Restarting browser.";
925 RestartPersistentInstance(); 925 RestartPersistentInstance();
926 } 926 }
927 } 927 }
928 928
929 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS) 929 #endif // (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698