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

Unified Diff: src/plugin/PluginUserSettings.cpp

Issue 10948032: Fix domain-based whitelisting (Closed)
Patch Set: Created June 14, 2013, 2:44 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/PluginUserSettings.cpp
===================================================================
--- a/src/plugin/PluginUserSettings.cpp
+++ b/src/plugin/PluginUserSettings.cpp
@@ -313,10 +313,9 @@
return DISP_E_TYPEMISMATCH;
CComBSTR domain = pDispparams->rgvarg[0].bstrVal;
- if (settings->IsWhiteListedDomain((BSTR)domain))
+ if (domain.Length())
{
- settings->AddWhiteListedDomain((BSTR)domain);
- CPluginClient::GetInstance()->ClearWhiteListCache();
+ settings->RemoveWhiteListedDomain((BSTR)domain);
}
}
else

Powered by Google App Engine
This is Rietveld