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

Unified Diff: chrome/browser/background/background_contents_service.cc

Issue 15947007: Move application restart and relaunch code out of ExtensionService. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Pafooey Created 7 years, 7 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
« no previous file with comments | « apps/switches.cc ('k') | chrome/browser/extensions/api/developer_private/developer_private_api.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/background/background_contents_service.cc
diff --git a/chrome/browser/background/background_contents_service.cc b/chrome/browser/background/background_contents_service.cc
index 605ae54f3b0344e362e248d30bc74afbc5d419e1..2e54718485648ace947022d90f45d38653000f5d 100644
--- a/chrome/browser/background/background_contents_service.cc
+++ b/chrome/browser/background/background_contents_service.cc
@@ -4,6 +4,7 @@
#include "chrome/browser/background/background_contents_service.h"
+#include "apps/app_load_service.h"
#include "base/basictypes.h"
#include "base/bind.h"
#include "base/command_line.h"
@@ -92,8 +93,7 @@ class CrashNotificationDelegate : public NotificationDelegate {
if (!service->GetAppBackgroundContents(ASCIIToUTF16(extension_id_)))
service->LoadBackgroundContentsForExtension(profile_, extension_id_);
} else if (is_platform_app_) {
- extensions::ExtensionSystem::Get(profile_)->extension_service()->
- RestartExtension(extension_id_);
+ apps::AppLoadService::Get(profile_)->RestartApplication(extension_id_);
} else {
extensions::ExtensionSystem::Get(profile_)->extension_service()->
ReloadExtension(extension_id_);
« no previous file with comments | « apps/switches.cc ('k') | chrome/browser/extensions/api/developer_private/developer_private_api.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698