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

Unified Diff: chrome/browser/browser_process_impl.cc

Issue 7230052: Make kClearSiteDataOnExit work correctly for Flash in multi-profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 6 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | chrome/browser/chrome_content_browser_client.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/browser_process_impl.cc
===================================================================
--- chrome/browser/browser_process_impl.cc (revision 90949)
+++ chrome/browser/browser_process_impl.cc (working copy)
@@ -37,7 +37,6 @@
#include "chrome/browser/net/predictor_api.h"
#include "chrome/browser/net/sdch_dictionary_fetcher.h"
#include "chrome/browser/notifications/notification_ui_manager.h"
-#include "chrome/browser/plugin_data_remover.h"
#include "chrome/browser/policy/browser_policy_connector.h"
#include "chrome/browser/prefs/browser_prefs.h"
#include "chrome/browser/prefs/pref_service.h"
@@ -139,10 +138,6 @@
clipboard_.reset(new ui::Clipboard);
main_notification_service_.reset(new NotificationService);
- notification_registrar_.Add(this,
- NotificationType::APP_TERMINATING,
- NotificationService::AllSources());
-
// Must be created after the NotificationService.
print_job_manager_.reset(new printing::PrintJobManager);
@@ -224,9 +219,6 @@
// down while the IO and FILE threads are still alive.
browser_policy_connector_.reset();
- // Wait for removing plugin data to finish before shutting down the IO thread.
- WaitForPluginDataRemoverToFinish();
-
// Destroying the GpuProcessHostUIShims on the UI thread posts a task to
// delete related objects on the GPU thread. This must be done before
// stopping the GPU thread. The GPU thread will close IPC channels to renderer
@@ -639,19 +631,7 @@
void BrowserProcessImpl::Observe(NotificationType type,
const NotificationSource& source,
const NotificationDetails& details) {
- if (type == NotificationType::APP_TERMINATING) {
- Profile* profile = ProfileManager::GetDefaultProfile();
- if (profile) {
- PrefService* prefs = profile->GetPrefs();
- if (prefs->GetBoolean(prefs::kClearSiteDataOnExit) &&
- local_state()->GetBoolean(prefs::kClearPluginLSODataEnabled)) {
- plugin_data_remover_ = new PluginDataRemover();
- if (!plugin_data_remover_mime_type().empty())
- plugin_data_remover_->set_mime_type(plugin_data_remover_mime_type());
- plugin_data_remover_->StartRemoving(base::Time());
- }
- }
- } else if (type == NotificationType::PREF_CHANGED) {
+ if (type == NotificationType::PREF_CHANGED) {
std::string* pref = Details<std::string>(details).ptr();
if (*pref == prefs::kDefaultBrowserSettingEnabled) {
if (local_state_->GetBoolean(prefs::kDefaultBrowserSettingEnabled))
@@ -666,11 +646,6 @@
}
}
-void BrowserProcessImpl::WaitForPluginDataRemoverToFinish() {
- if (plugin_data_remover_.get())
- plugin_data_remover_->Wait();
-}
-
#if (defined(OS_WIN) || defined(OS_LINUX)) && !defined(OS_CHROMEOS)
void BrowserProcessImpl::StartAutoupdateTimer() {
autoupdate_timer_.Start(
« no previous file with comments | « chrome/browser/browser_process_impl.h ('k') | chrome/browser/chrome_content_browser_client.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698