| Index: chrome/browser/ui/ash/launcher/launcher_extension_app_updater.cc
|
| diff --git a/chrome/browser/ui/ash/launcher/launcher_extension_app_updater.cc b/chrome/browser/ui/ash/launcher/launcher_extension_app_updater.cc
|
| index a779a8da8162f53bbea4358cc6828e10718bf835..5d3945fc9a473e36a6ab97b65501e8c96c5b2f92 100644
|
| --- a/chrome/browser/ui/ash/launcher/launcher_extension_app_updater.cc
|
| +++ b/chrome/browser/ui/ash/launcher/launcher_extension_app_updater.cc
|
| @@ -16,11 +16,6 @@ LauncherExtensionAppUpdater::LauncherExtensionAppUpdater(
|
| : LauncherAppUpdater(delegate, browser_context) {
|
| StartObservingExtensionRegistry();
|
|
|
| - arc::ArcAuthService* arc_auth_service = arc::ArcAuthService::Get();
|
| - // ArcAuthService may not be available for some unit tests.
|
| - if (arc_auth_service)
|
| - arc_auth_service->AddObserver(this);
|
| -
|
| ArcAppListPrefs* prefs = ArcAppListPrefs::Get(browser_context);
|
| if (prefs)
|
| prefs->AddObserver(this);
|
| @@ -29,10 +24,6 @@ LauncherExtensionAppUpdater::LauncherExtensionAppUpdater(
|
| LauncherExtensionAppUpdater::~LauncherExtensionAppUpdater() {
|
| StopObservingExtensionRegistry();
|
|
|
| - arc::ArcAuthService* arc_auth_service = arc::ArcAuthService::Get();
|
| - if (arc_auth_service)
|
| - arc_auth_service->RemoveObserver(this);
|
| -
|
| ArcAppListPrefs* prefs = ArcAppListPrefs::Get(browser_context());
|
| if (prefs)
|
| prefs->RemoveObserver(this);
|
| @@ -67,15 +58,6 @@ void LauncherExtensionAppUpdater::OnShutdown(
|
| StopObservingExtensionRegistry();
|
| }
|
|
|
| -void LauncherExtensionAppUpdater::OnOptInChanged(
|
| - arc::ArcAuthService::State state) {
|
| - if (!chromeos::ProfileHelper::IsPrimaryProfile(
|
| - Profile::FromBrowserContext(browser_context()))) {
|
| - return;
|
| - }
|
| - UpdateHostedApps();
|
| -}
|
| -
|
| void LauncherExtensionAppUpdater::OnPackageInstalled(
|
| const arc::mojom::ArcPackageInfo& package_info) {
|
| UpdateEquivalentHostedApp(package_info.package_name);
|
|
|