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

Side by Side Diff: chrome/browser/extensions/extension_service.h

Issue 266343002: Unload all apps / extensions when deleting a profile. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Do not send NULL extension pointer in notifications. Created 6 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <set> 10 #include <set>
(...skipping 531 matching lines...) Expand 10 before | Expand all | Expand 10 after
542 const ExtensionIdSet& unchanged); 542 const ExtensionIdSet& unchanged);
543 543
544 void UpdateGreylistedExtensions( 544 void UpdateGreylistedExtensions(
545 const ExtensionIdSet& greylist, 545 const ExtensionIdSet& greylist,
546 const ExtensionIdSet& unchanged, 546 const ExtensionIdSet& unchanged,
547 const extensions::Blacklist::BlacklistStateMap& state_map); 547 const extensions::Blacklist::BlacklistStateMap& state_map);
548 548
549 // Used only by test code. 549 // Used only by test code.
550 void UnloadAllExtensionsInternal(); 550 void UnloadAllExtensionsInternal();
551 551
552 // Disable apps & extensions now to stop them from running after a profile
553 // has been conceptually deleted. Don't wait for full browser shutdown and
554 // the actual profile objects to be destroyed.
555 void OnProfileDestructionStarted();
556
552 // The normal profile associated with this ExtensionService. 557 // The normal profile associated with this ExtensionService.
553 Profile* profile_; 558 Profile* profile_;
554 559
555 // The ExtensionSystem for the profile above. 560 // The ExtensionSystem for the profile above.
556 extensions::ExtensionSystem* system_; 561 extensions::ExtensionSystem* system_;
557 562
558 // Preferences for the owning profile. 563 // Preferences for the owning profile.
559 extensions::ExtensionPrefs* extension_prefs_; 564 extensions::ExtensionPrefs* extension_prefs_;
560 565
561 // Blacklist for the owning profile. 566 // Blacklist for the owning profile.
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
699 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 704 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
700 GreylistedExtensionDisabled); 705 GreylistedExtensionDisabled);
701 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 706 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
702 GreylistDontEnableManuallyDisabled); 707 GreylistDontEnableManuallyDisabled);
703 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest, 708 FRIEND_TEST_ALL_PREFIXES(ExtensionServiceTest,
704 GreylistUnknownDontChange); 709 GreylistUnknownDontChange);
705 DISALLOW_COPY_AND_ASSIGN(ExtensionService); 710 DISALLOW_COPY_AND_ASSIGN(ExtensionService);
706 }; 711 };
707 712
708 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_ 713 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_SERVICE_H_
OLDNEW
« no previous file with comments | « chrome/browser/chrome_notification_types.h ('k') | chrome/browser/extensions/extension_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698