Commit dc329e3b authored by limasdf@gmail.com's avatar limasdf@gmail.com

Make AppSyncUIStateFactory depends on ExtensionRegistryFactory

Now AppSyncUIState has ExtensionRegistry to listen extesnions's notification
To make sure ExtesnionRegistry is destroyed after AppSyncUIState.
AppSyncUIStateFactory should depends on ExtensionRegistryFactory.

BUG=354046

Review URL: https://codereview.chromium.org/411093002

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@285150 0039d316-1c4b-4281-b951-d872f2087c98
parent 7d487599
...@@ -8,6 +8,7 @@ ...@@ -8,6 +8,7 @@
#include "chrome/browser/sync/profile_sync_service_factory.h" #include "chrome/browser/sync/profile_sync_service_factory.h"
#include "chrome/browser/ui/ash/app_sync_ui_state.h" #include "chrome/browser/ui/ash/app_sync_ui_state.h"
#include "components/keyed_service/content/browser_context_dependency_manager.h" #include "components/keyed_service/content/browser_context_dependency_manager.h"
#include "extensions/browser/extension_registry_factory.h"
// static // static
AppSyncUIState* AppSyncUIStateFactory::GetForProfile(Profile* profile) { AppSyncUIState* AppSyncUIStateFactory::GetForProfile(Profile* profile) {
...@@ -27,6 +28,7 @@ AppSyncUIStateFactory::AppSyncUIStateFactory() ...@@ -27,6 +28,7 @@ AppSyncUIStateFactory::AppSyncUIStateFactory()
: BrowserContextKeyedServiceFactory( : BrowserContextKeyedServiceFactory(
"AppSyncUIState", "AppSyncUIState",
BrowserContextDependencyManager::GetInstance()) { BrowserContextDependencyManager::GetInstance()) {
DependsOn(extensions::ExtensionRegistryFactory::GetInstance());
DependsOn(ProfileSyncServiceFactory::GetInstance()); DependsOn(ProfileSyncServiceFactory::GetInstance());
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment