merge with master
[platform/framework/web/wrt.git] / src / view / common / application_launcher.cpp
old mode 100755 (executable)
new mode 100644 (file)
index 8debb43..0212c81
@@ -42,15 +42,13 @@ const char * const SCHEME_TYPE_HTML5_VIDEO = "html5video";
 }
 
 ApplicationLauncher::ApplicationLauncher()
-{
-}
+{}
 
 ApplicationLauncher::~ApplicationLauncher()
-{
-}
+{}
 
 void ApplicationLauncher::OnEventReceived(
-        const ApplicationLauncherEvents::LaunchApplicationByAppService &event)
+    const ApplicationLauncherEvents::LaunchApplicationByAppService &event)
 {
     int result;
     bundle *args = event.GetArg0();
@@ -58,12 +56,13 @@ void ApplicationLauncher::OnEventReceived(
     void *userData = event.GetArg2();
     result = appsvc_run_service(args, 0, responseCallback, userData);
 
-    if (result < 0)
+    if (result < 0) {
         LogError("Failed to run AppService : " << result);
+    }
 }
 
 void ApplicationLauncher::OnEventReceived(
-        const ApplicationLauncherEvents::LaunchApplicationByPkgname &event)
+    const ApplicationLauncherEvents::LaunchApplicationByPkgname &event)
 {
     using namespace ApplicationLauncherPkgname;
     LogDebug("LaunchApplicationByPkgname");
@@ -162,7 +161,7 @@ void ApplicationLauncher::OnEventReceived(
             url = youtube->getYouTubeHD(uri.c_str());
             delete youtube;
         } else if (SCHEME_TYPE_RTSP == scheme ||
-                    (SCHEME_TYPE_HTML5_VIDEO == scheme))
+                   (SCHEME_TYPE_HTML5_VIDEO == scheme))
         {
             url = uri.c_str();
         } else {