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

Unified Diff: src/plugin/PluginUserSettings.cpp

Issue 5024350814076928: Issue 1103 - Migrate Simple Adblock users
Patch Set: Added comments in code Created April 24, 2015, 11:46 a.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
« src/plugin/PluginClass.cpp ('K') | « src/plugin/PluginClass.cpp ('k') | no next file » | 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
@@ -41,6 +41,7 @@
dispatchID_IsAcceptableAdsEnabled,
dispatchID_SetAcceptableAdsEnabled,
dispatchID_IsUpdate,
+ dispatchID_GetConversion
};
/**
@@ -66,6 +67,7 @@
m.emplace(L"IsAcceptableAdsEnabled", dispatchID_IsAcceptableAdsEnabled);
m.emplace(L"SetAcceptableAdsEnabled", dispatchID_SetAcceptableAdsEnabled);
m.emplace(L"IsUpdate", dispatchID_IsUpdate);
+ m.emplace(L"GetConversion", dispatchID_GetConversion);
}
catch(...)
{
@@ -442,6 +444,19 @@
}
}
break;
+ case dispatchID_GetConversion:
+ {
+ if (pDispparams->cArgs != 0)
+ {
+ return DISP_E_BADPARAMCOUNT;
+ }
+ if (pVarResult)
+ {
+ pVarResult->vt = VT_BSTR;
+ pVarResult->bstrVal = CComBSTR(CPluginClient::GetInstance()->GetPref(std::wstring(L"convertedFrom"), std::wstring(L"")).c_str());
sergei 2015/04/28 14:41:15 Is it necessary to explicitly construct std::wstri
Eric 2015/05/17 00:29:25 It's not. There's an explicit pass through functio
+ }
+ }
+ break;
default:
return DISP_E_MEMBERNOTFOUND;
break;
« src/plugin/PluginClass.cpp ('K') | « src/plugin/PluginClass.cpp ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld