| OLD | NEW |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2013 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/extensions/extension_service.h" | 5 #include "chrome/browser/extensions/extension_service.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <iterator> | 8 #include <iterator> |
| 9 #include <set> | 9 #include <set> |
| 10 | 10 |
| (...skipping 257 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 268 bool autoupdate_enabled, | 268 bool autoupdate_enabled, |
| 269 bool extensions_enabled, | 269 bool extensions_enabled, |
| 270 extensions::OneShotEvent* ready) | 270 extensions::OneShotEvent* ready) |
| 271 : extensions::Blacklist::Observer(blacklist), | 271 : extensions::Blacklist::Observer(blacklist), |
| 272 profile_(profile), | 272 profile_(profile), |
| 273 system_(extensions::ExtensionSystem::Get(profile)), | 273 system_(extensions::ExtensionSystem::Get(profile)), |
| 274 extension_prefs_(extension_prefs), | 274 extension_prefs_(extension_prefs), |
| 275 blacklist_(blacklist), | 275 blacklist_(blacklist), |
| 276 extension_sync_service_(NULL), | 276 extension_sync_service_(NULL), |
| 277 registry_(extensions::ExtensionRegistry::Get(profile)), | 277 registry_(extensions::ExtensionRegistry::Get(profile)), |
| 278 pending_extension_manager_(*this, profile), | 278 pending_extension_manager_(profile), |
| 279 install_directory_(install_directory), | 279 install_directory_(install_directory), |
| 280 extensions_enabled_(extensions_enabled), | 280 extensions_enabled_(extensions_enabled), |
| 281 show_extensions_prompts_(true), | 281 show_extensions_prompts_(true), |
| 282 install_updates_when_idle_(true), | 282 install_updates_when_idle_(true), |
| 283 ready_(ready), | 283 ready_(ready), |
| 284 update_once_all_providers_are_ready_(false), | 284 update_once_all_providers_are_ready_(false), |
| 285 browser_terminating_(false), | 285 browser_terminating_(false), |
| 286 installs_delayed_for_gc_(false), | 286 installs_delayed_for_gc_(false), |
| 287 is_first_run_(false), | 287 is_first_run_(false), |
| 288 shared_module_service_(new extensions::SharedModuleService(profile_)) { | 288 shared_module_service_(new extensions::SharedModuleService(profile_)) { |
| (...skipping 2148 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2437 } | 2437 } |
| 2438 | 2438 |
| 2439 void ExtensionService::OnProfileDestructionStarted() { | 2439 void ExtensionService::OnProfileDestructionStarted() { |
| 2440 ExtensionIdSet ids_to_unload = registry_->enabled_extensions().GetIDs(); | 2440 ExtensionIdSet ids_to_unload = registry_->enabled_extensions().GetIDs(); |
| 2441 for (ExtensionIdSet::iterator it = ids_to_unload.begin(); | 2441 for (ExtensionIdSet::iterator it = ids_to_unload.begin(); |
| 2442 it != ids_to_unload.end(); | 2442 it != ids_to_unload.end(); |
| 2443 ++it) { | 2443 ++it) { |
| 2444 UnloadExtension(*it, UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN); | 2444 UnloadExtension(*it, UnloadedExtensionInfo::REASON_PROFILE_SHUTDOWN); |
| 2445 } | 2445 } |
| 2446 } | 2446 } |
| OLD | NEW |