Popup removal 2
[framework/web/wrt-installer.git] / src / jobs / widget_install / task_certify.cpp
index 4705fcb..128f022 100644 (file)
@@ -50,10 +50,6 @@ using namespace ValidationCore;
 using namespace WrtDB;
 
 namespace {
-const std::string LABEL_NEW_LINE = "<br>";
-const std::string LABEL_NEW_LINE_2 = "<br><br>";
-const std::string UNTRUSTED_WIDGET = "It is an Untrusted Widget";
-const char *QUESTION = "Do you wanto to install?";
 
 WidgetCertificateData toWidgetCertificateData(const SignatureData &data,
                                               bool root)
@@ -258,7 +254,9 @@ void TaskCertify::stepSignature()
             result = validator.check(data, widgetPath);
 
             if (m_contextData.widgetConfig.packagingType
-                == WrtDB::PKG_TYPE_DIRECTORY_WEB_APP)
+                == WrtDB::PKG_TYPE_DIRECTORY_WEB_APP ||
+               m_contextData.job->getInstallerStruct().m_installMode
+               == InstallMode::INSTALL_MODE_PRELOAD)
             {
                 // In directory installation mode, the validation is skipped.