protected function checkSettings(Result $result, \Mage_Core_Model_Store $store, $baseUrl, $cookieDomain)
{
$errorMessage = 'cookie-domain and ' . $this->class . ' base-URL do not match';
if (strlen($cookieDomain)) {
$isValid = $this->validateCookieDomainAgainstUrl($cookieDomain, $baseUrl);
$result->setStatus($isValid);
if ($isValid) {
$result->setMessage('<info>Cookie Domain (' . $this->class . '): <comment>' . $cookieDomain . '</comment> of Store: <comment>' . $store->getCode() . '</comment> - OK</info>');
} else {
$result->setMessage('<error>Cookie Domain (' . $this->class . '): <comment>' . $cookieDomain . '</comment> of Store: <comment>' . $store->getCode() . '</comment> - ERROR: ' . $errorMessage . '</error>');
}
} else {
$result->setMessage('<info>Empty cookie Domain (' . $this->class . ') of Store: <comment>' . $store->getCode() . '</comment> - OK</info>');
}
}