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

Unified Diff: chrome/browser/chromeos/app_mode/startup_app_launcher.cc

Issue 23449023: Add kiosk browser tests for network configuration. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 3 months 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
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() {

Powered by Google App Engine
This is Rietveld 408576698