| Index: chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc
|
| diff --git a/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc b/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc
|
| index c64051c808ef98c0c64b046574872f9625663c70..94a51256aa007911f9e3592b281f8b7e8faec288 100644
|
| --- a/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc
|
| +++ b/chrome/browser/ui/app_list/arc/arc_app_list_prefs.cc
|
| @@ -21,7 +21,7 @@
|
| #include "chrome/browser/ui/app_list/arc/arc_package_syncable_service.h"
|
| #include "chrome/common/pref_names.h"
|
| #include "chrome/grit/generated_resources.h"
|
| -#include "components/arc/arc_bridge_service.h"
|
| +#include "components/arc/arc_service_manager.h"
|
| #include "components/crx_file/id_util.h"
|
| #include "components/pref_registry/pref_registry_syncable.h"
|
| #include "components/prefs/scoped_user_pref_update.h"
|
| @@ -255,11 +255,10 @@ ArcAppListPrefs::ArcAppListPrefs(
|
| }
|
|
|
| ArcAppListPrefs::~ArcAppListPrefs() {
|
| - // A reference to ArcBridgeService is kept here so that it would crash the
|
| - // tests where ArcBridgeService and ArcAppListPrefs are not destroyed in right
|
| - // order.
|
| - arc::ArcBridgeService* bridge_service = arc::ArcBridgeService::Get();
|
| - if (bridge_service)
|
| + // A reference to ArcServiceManager is kept here so that it would crash the
|
| + // tests where ArcServiceManager and ArcAppListPrefs are not destroyed in
|
| + // right order.
|
| + if (arc::ArcServiceManager::Get())
|
| app_instance_holder_->RemoveObserver(this);
|
|
|
| arc::ArcSessionManager* arc_session_manager = arc::ArcSessionManager::Get();
|
|
|