EFL port needs to be implemented.
>> undefined reference to `security_state::GetSecurityInfo(...)
The chromium-efl does not support security_state.
Change-Id: Ic9332d2ba4e298a5d2ffb21d22d4450c97ba02bf
Signed-off-by: Youngsoo Choi <kenshin.choi@samsung.com>
#include "chrome/common/pref_names.h"
#include "components/prefs/pref_service.h"
#include "components/prefs/scoped_user_pref_update.h"
+// FIXME: The chromium-efl does not support security_state.
+#if !defined(USE_EFL)
#include "components/security_state/content/content_utils.h"
#include "components/security_state/core/security_state.h"
+#endif
#include "content/public/browser/browser_thread.h"
#include "content/public/browser/child_process_security_policy.h"
#include "content/public/browser/render_process_host.h"
content::WebContents* web_contents,
SkColor color,
const std::vector<content::ColorSuggestion>& suggestions) {
-#if !defined(USE_EFL)
- return chrome::ShowColorChooser(web_contents, color);
-#else
+#if defined(USE_EFL)
+ NOTIMPLEMENTED();
return nullptr;
+#else
+ return chrome::ShowColorChooser(web_contents, color);
#endif
}
SecurityStateTabHelper* helper =
SecurityStateTabHelper::FromWebContents(web_contents);
DCHECK(helper);
+ // FIXME: The chromium-efl does not support security_state.
+#if defined(USE_EFL)
+ NOTIMPLEMENTED();
+#else
security_state::SecurityInfo security_info;
helper->GetSecurityInfo(&security_info);
return security_state::GetSecurityStyle(security_info,
security_style_explanations);
+#endif
}
void CommonWebContentsDelegate::DevToolsSaveToFile(
#include "chrome/browser/safe_browsing/ui_manager.h"
#endif
#include "components/prefs/pref_service.h"
+// FIXME: The chromium-efl does not support security_state.
+#if !defined(USE_EFL)
#include "components/security_state/content/content_utils.h"
+#endif
#if 0
#include "components/ssl_config/ssl_config_prefs.h"
#endif
SecurityStateTabHelper::~SecurityStateTabHelper() {}
+// FIXME: The chromium-efl does not support security_state.
+#if !defined(USE_EFL)
void SecurityStateTabHelper::GetSecurityInfo(
security_state::SecurityInfo* result) const {
security_state::GetSecurityInfo(GetVisibleSecurityState(),
UsedPolicyInstalledCertificate(),
base::Bind(&content::IsOriginSecure), result);
}
+#endif
void SecurityStateTabHelper::VisibleSecurityStateChanged() {
+// FIXME: The chromium-efl does not support security_state.
+#if defined(USE_EFL)
+ NOTIMPLEMENTED();
+#else
if (logged_http_warning_on_current_navigation_)
return;
"Security.HTTPBad.UserWarnedAboutSensitiveInput.Password",
warning_is_user_visible);
}
+#endif
}
void SecurityStateTabHelper::DidStartNavigation(
}
#endif
+// FIXME: The chromium-efl does not support security_state.
+#if !defined(USE_EFL)
std::unique_ptr<security_state::VisibleSecurityState>
SecurityStateTabHelper::GetVisibleSecurityState() const {
auto state = security_state::GetVisibleSecurityState(web_contents());
return state;
}
+#endif
#include <memory>
#include "base/macros.h"
+#if !defined(USE_EFL)
#include "components/security_state/core/security_state.h"
+#endif
#include "content/public/browser/web_contents_observer.h"
#include "content/public/browser/web_contents_user_data.h"
#include "third_party/WebKit/public/platform/WebSecurityStyle.h"
public:
~SecurityStateTabHelper() override;
+ // FIXME: The chromium-efl does not support security_state.
+#if !defined(USE_EFL)
// See security_state::GetSecurityInfo.
void GetSecurityInfo(
security_state::SecurityInfo* result) const;
+#endif
// Called when the NavigationEntry's SSLStatus or other security
// information changes.
#if 0
security_state::MaliciousContentStatus GetMaliciousContentStatus() const;
#endif
+ // FIXME: The chromium-efl does not support security_state.
+#if !defined(USE_EFL)
std::unique_ptr<security_state::VisibleSecurityState>
GetVisibleSecurityState() const;
+#endif
// True if a console message has been logged about an omnibox warning that
// will be shown in future versions of Chrome for insecure HTTP pages. This