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

Unified Diff: athena/content/app_activity_registry.cc

Issue 513523002: Adding Baseframework of the ResourceManager (all hooks and observers) are being put in place with a… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Aaaand another rebase Created 6 years, 4 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: athena/content/app_activity_registry.cc
diff --git a/athena/content/app_activity_registry.cc b/athena/content/app_activity_registry.cc
index 6b3f0af00b491068408aacaf76ac79fd1a60772e..da28386659bf29484b4ff6ab9439592254579435 100644
--- a/athena/content/app_activity_registry.cc
+++ b/athena/content/app_activity_registry.cc
@@ -110,8 +110,7 @@ void AppActivityRegistry::RestartApplication(AppActivityProxy* proxy) {
DCHECK_EQ(unloaded_activity_proxy_, proxy);
// Restart the application.
ExtensionsDelegate::Get(browser_context_)->LaunchApp(app_id_);
- // Remove the activity from the Activity manager.
- ActivityManager::Get()->RemoveActivity(unloaded_activity_proxy_);
+ // Delete the activity which will also remove the it from the ActivityManager.
delete unloaded_activity_proxy_; // Will call ProxyDestroyed.
// After this call |this| might be gone if the app did not open a window yet.
}

Powered by Google App Engine
This is Rietveld 408576698