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

Unified Diff: src/plugin/PluginSettings.h

Issue 10836037: Share code for data path retrieval in engine and plugin (Closed)
Patch Set: Fixed issues in previous patch Created June 4, 2013, 10:14 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
Index: src/plugin/PluginSettings.h
===================================================================
--- a/src/plugin/PluginSettings.h
+++ b/src/plugin/PluginSettings.h
@@ -72,19 +72,16 @@ private:
CPluginSettings::TProperties m_properties;
bool m_isDirty;
CString m_settingsVersion;
std::auto_ptr<CPluginIniFileW> m_settingsFile;
- static WCHAR* s_dataPath;
- static WCHAR* s_dataPathParent;
-
static CComAutoCriticalSection s_criticalSectionLocal;
#ifdef SUPPORT_WHITELIST
static CComAutoCriticalSection s_criticalSectionDomainHistory;
#endif
bool m_isPluginSelftestEnabled;
@@ -100,17 +97,16 @@ public:
static bool s_isLightOnly;
static bool HasInstance();
static CPluginSettings* GetInstance();
bool Read(bool bDebug=true);
bool Write(bool bDebug=true);
- static CString GetDataPathParent();
static CString GetDataPath(const CString& filename=L"");
static CString GetTempPath(const CString& filename=L"");
static CString GetTempFile(const CString& prefix, const CString& extension=L"");
bool Has(const CString& key) const;
void Remove(const CString& key);

Powered by Google App Engine
This is Rietveld