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 17, 2013, 1:50 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
« no previous file with comments | « src/plugin/PluginTabBase.cpp ('k') | src/shared/Communication.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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
« no previous file with comments | « src/plugin/PluginTabBase.cpp ('k') | src/shared/Communication.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld