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

Unified Diff: chrome/browser/ui/ash/launcher/launcher_extension_app_updater.cc

Issue 2456803002: Remove OnOptInChanged callback. (Closed)
Patch Set: Address comments. Created 4 years, 1 month 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « chrome/browser/ui/ash/launcher/launcher_extension_app_updater.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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);
« no previous file with comments | « chrome/browser/ui/ash/launcher/launcher_extension_app_updater.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698