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

Unified Diff: apps/app_load_service.cc

Issue 93593003: Make clicking the restart bubble for crashed apps work. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years 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 | « apps/app_load_service.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: apps/app_load_service.cc
diff --git a/apps/app_load_service.cc b/apps/app_load_service.cc
index 3526566f1568ecd07f52a2d04a42cc21a920a6df..a626b022336076a293eb172a6b3012ef992b1aed 100644
--- a/apps/app_load_service.cc
+++ b/apps/app_load_service.cc
@@ -43,11 +43,11 @@ AppLoadService::AppLoadService(Profile* profile)
AppLoadService::~AppLoadService() {}
void AppLoadService::RestartApplication(const std::string& extension_id) {
- post_reload_actions_[extension_id].action_type = RESTART;
ExtensionService* service = extensions::ExtensionSystem::Get(profile_)->
extension_service();
DCHECK(service);
service->ReloadExtension(extension_id);
+ RestartPlatformApp(profile_, service->GetExtensionById(extension_id, false));
tapted 2013/12/12 06:54:52 GetExtensionsById likes to return NULL a lot.. I
koz (OOO until 15th September) 2013/12/13 03:33:56 Ah, good spot! I've tried a different approach in
}
bool AppLoadService::LoadAndLaunch(const base::FilePath& extension_path,
@@ -94,9 +94,6 @@ void AppLoadService::Observe(int type,
case LAUNCH:
LaunchPlatformApp(profile_, extension);
break;
- case RESTART:
- RestartPlatformApp(profile_, extension);
- break;
case LAUNCH_WITH_COMMAND_LINE:
LaunchPlatformAppWithCommandLine(
profile_, extension, &it->second.command_line,
« no previous file with comments | « apps/app_load_service.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698