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

Unified Diff: src/plugin/PluginClientBase.cpp

Issue 10897028: Create a shared dictionary class for plugin and engine (Closed)
Patch Set: Created June 7, 2013, 12:42 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/PluginClientBase.cpp
===================================================================
--- a/src/plugin/PluginClientBase.cpp
+++ b/src/plugin/PluginClientBase.cpp
@@ -3,17 +3,16 @@
// Internet / FTP
#include <wininet.h>
// IP adapter
#include <iphlpapi.h>
#include "PluginSettings.h"
#include "PluginSystem.h"
-#include "PluginDictionary.h"
#include "PluginHttpRequest.h"
#include "PluginMutex.h"
#include "PluginClass.h"
#include "PluginClientBase.h"
// IP adapter
#pragma comment(lib, "IPHLPAPI.lib")
@@ -87,19 +86,16 @@ CString& CPluginClientBase::UnescapeUrl(
}
void CPluginClientBase::SetLocalization()
{
CPluginSystem* system = CPluginSystem::GetInstance();
CString browserLanguage = system->GetBrowserLanguage();
- CPluginDictionary* dic = CPluginDictionary::GetInstance();
- dic->SetLanguage(browserLanguage);
-
CPluginSettings* settings = CPluginSettings::GetInstance();
if (settings->IsMainProcess() && settings->IsMainThread() && !settings->Has(SETTING_LANGUAGE))
{
// TODO: We might want to set this to "en" if browserLanguage is not in filterLanguagesList
settings->SetString(SETTING_LANGUAGE, browserLanguage);
settings->Write();
}
}

Powered by Google App Engine
This is Rietveld