| Index: chrome/browser/browser_process_impl.cc
|
| ===================================================================
|
| --- chrome/browser/browser_process_impl.cc (revision 90949)
|
| +++ chrome/browser/browser_process_impl.cc (working copy)
|
| @@ -139,10 +139,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);
|
|
|
| @@ -639,19 +635,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))
|
|
|