Rietveld Code Review Tool
Help | Bug tracker | Discussion group | Source code

Unified Diff: src/plugin/PluginSettings.cpp

Issue 10955040: Fix domain whitelisting and remove unused code (Closed)
Patch Set: Addressed all issues Created June 25, 2013, 2:19 p.m.
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: src/plugin/PluginSettings.cpp
===================================================================
--- a/src/plugin/PluginSettings.cpp
+++ b/src/plugin/PluginSettings.cpp
@@ -1286,19 +1286,6 @@
CPluginClient::GetInstance()->RemoveFilter(CreateDomainWhitelistingFilter(domain));
}
-bool CPluginSettings::IsWhiteListedDomain(const CString& domain) const
-{
- bool bIsWhiteListed;
-
- s_criticalSectionLocal.Lock();
- {
- bIsWhiteListed = std::find(m_whitelistedDomains.begin(), m_whitelistedDomains.end(), std::string(CW2A(domain, CP_UTF8))) != m_whitelistedDomains.end();
- }
- s_criticalSectionLocal.Unlock();
-
- return bIsWhiteListed;
-}
-
int CPluginSettings::GetWhiteListedDomainCount() const
{
int count = 0;

Powered by Google App Engine
This is Rietveld