Move application restart and relaunch code out of ExtensionService.

This apps specific code now lives in AppLoadService in the apps/
component.

BUG=159366, 159265, 175381

Review URL: https://chromiumcodereview.appspot.com/15947007

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@203382 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/chrome/browser/extensions/platform_app_launcher.cc b/chrome/browser/extensions/platform_app_launcher.cc
index 5bb174b2..1956abd 100644
--- a/chrome/browser/extensions/platform_app_launcher.cc
+++ b/chrome/browser/extensions/platform_app_launcher.cc
@@ -280,10 +280,10 @@
 
 }  // namespace
 
-void LaunchPlatformApp(Profile* profile,
-                       const Extension* extension,
-                       const CommandLine* command_line,
-                       const base::FilePath& current_directory) {
+void LaunchPlatformAppWithCommandLine(Profile* profile,
+                                      const Extension* extension,
+                                      const CommandLine* command_line,
+                                      const base::FilePath& current_directory) {
 #if defined(OS_WIN)
   // On Windows 8's single window Metro mode we can not launch platform apps.
   // Offer to switch Chrome to desktop mode.
@@ -317,6 +317,10 @@
   launcher->Launch();
 }
 
+void LaunchPlatformApp(Profile* profile, const Extension* extension) {
+  LaunchPlatformAppWithCommandLine(profile, extension, NULL, base::FilePath());
+}
+
 void LaunchPlatformAppWithFileHandler(Profile* profile,
                                       const Extension* extension,
                                       const std::string& handler_id,