Popup removal 2
[platform/framework/web/wrt-installer.git] / src / wrt-installer / wrt-installer.cpp
index 7d2cb52..a61a96a 100644 (file)
@@ -89,7 +89,6 @@ WrtInstaller::WrtInstaller(int argc, char **argv) :
     m_totalPlugins(0),
     m_returnStatus(-1),
     m_installByPkgmgr(false),
-    m_quiet(true),
     m_startupPluginInstallation(false)
 {
     Touch();
@@ -265,8 +264,6 @@ void WrtInstaller::OnCreate()
                 );
 
         pkgmgrSignal->initialize(m_argc, m_argv);
-        m_quiet = pkgmgrSignal->isNoPopupRequired();
-        LogDebug("backend m_quiet" << m_quiet);
 
         int reqType = pkgmgrSignal->getRequestedType();
 
@@ -404,10 +401,9 @@ void WrtInstaller::installStep()
 
     wrt_install_widget(packagePath ? packagePath.get() : m_packagePath.c_str(),
                        this, &staticWrtStatusCallback,
-                       (!m_quiet || m_installByPkgmgr)
+                       (m_installByPkgmgr)
                        ? &staticWrtInstallProgressCallback : NULL,
                        m_installMode,
-                       m_quiet,
                        pkgmgrSignalInterface);
 }
 
@@ -497,7 +493,7 @@ void WrtInstaller::uninstallPkgNameStep()
     LogDebug("Uninstalling widget ...");
     LogDebug("Package name : " << m_name);
     wrt_uninstall_widget(m_name.c_str(), this, &staticWrtStatusCallback,
-                         (!m_quiet || m_installByPkgmgr)
+                         (m_installByPkgmgr)
                          ? &staticWrtUninstallProgressCallback : NULL,
                          pkgmgrSignalInterface);
 }
@@ -542,7 +538,7 @@ void WrtInstaller::unistallWgtFileStep()
             LogDebug("Pkgid from packagePath : " << pkgId);
             wrt_uninstall_widget(
                 DPL::ToUTF8String(*pkgId).c_str(), this, &staticWrtStatusCallback,
-                !m_quiet ? &staticWrtUninstallProgressCallback
+                !m_installByPkgmgr ? &staticWrtUninstallProgressCallback
                 : NULL,
                 pkgmgrSignalInterface);
         } else {