Index: chrome/browser/chromeos/app_mode/startup_app_launcher.cc |
diff --git a/chrome/browser/chromeos/app_mode/startup_app_launcher.cc b/chrome/browser/chromeos/app_mode/startup_app_launcher.cc |
index f0123003ab981d4549476038f624665d7ff173e4..23c8ab997639d81f94948b7942240831f5e64d60 100644 |
--- a/chrome/browser/chromeos/app_mode/startup_app_launcher.cc |
+++ b/chrome/browser/chromeos/app_mode/startup_app_launcher.cc |
@@ -64,6 +64,11 @@ StartupAppLauncher::StartupAppLauncher(Profile* profile, |
} |
StartupAppLauncher::~StartupAppLauncher() { |
+ // StartupAppLauncher can be deleted at anytime during the launch process |
+ // through a user bailout shortcut. |
+ ProfileOAuth2TokenServiceFactory::GetForProfile(profile_) |
+ ->RemoveObserver(this); |
+ net::NetworkChangeNotifier::RemoveNetworkChangeObserver(this); |
} |
void StartupAppLauncher::Start() { |