| Index: apps/launcher.cc
|
| diff --git a/apps/launcher.cc b/apps/launcher.cc
|
| index 845b259a733a1f0dc9400903ad7cbf5759a2669b..ba7c829b07d81746846a13804659d220ed369acc 100644
|
| --- a/apps/launcher.cc
|
| +++ b/apps/launcher.cc
|
| @@ -4,7 +4,6 @@
|
|
|
| #include "apps/launcher.h"
|
|
|
| -#include "apps/apps_client.h"
|
| #include "apps/browser/api/app_runtime/app_runtime_api.h"
|
| #include "apps/browser/file_handler_util.h"
|
| #include "apps/common/api/app_runtime.h"
|
| @@ -41,10 +40,6 @@
|
| #include "chrome/browser/chromeos/login/user_manager.h"
|
| #endif
|
|
|
| -#if defined(OS_WIN)
|
| -#include "win8/util/win8_util.h"
|
| -#endif
|
| -
|
| namespace app_runtime = apps::api::app_runtime;
|
|
|
| using apps::file_handler_util::GrantedFileEntry;
|
| @@ -315,9 +310,6 @@ void LaunchPlatformAppWithCommandLine(Profile* profile,
|
| const Extension* extension,
|
| const CommandLine& command_line,
|
| const base::FilePath& current_directory) {
|
| - if (!AppsClient::Get()->CheckAppLaunch(profile, extension))
|
| - return;
|
| -
|
| // An app with "kiosk_only" should not be installed and launched
|
| // outside of ChromeOS kiosk mode in the first place. This is a defensive
|
| // check in case this scenario does occur.
|
| @@ -373,12 +365,6 @@ void LaunchPlatformAppWithFileHandler(Profile* profile,
|
| }
|
|
|
| void RestartPlatformApp(Profile* profile, const Extension* extension) {
|
| -#if defined(OS_WIN)
|
| - // On Windows 8's single window Metro mode we can not launch platform apps.
|
| - // In restart we are just making sure launch doesn't slip through.
|
| - if (win8::IsSingleWindowMetroMode())
|
| - return;
|
| -#endif
|
| EventRouter* event_router = EventRouter::Get(profile);
|
| bool listening_to_restart = event_router->
|
| ExtensionHasEventListener(extension->id(),
|
|
|