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

Issue 4772743157383168: Issue #276 - eliminate CString from GetBrowserLanguage (Closed)

Created:
July 30, 2014, 7:09 p.m. by Eric
Modified:
Aug. 5, 2014, 2:42 p.m.
Visibility:
Public.

Description

Issue #276 - eliminate CString from GetBrowserLanguage Change the return type of GetBrowserLanguage from CString to std::wstring. Remove all occurrences of CString from its implementation. Moved GetBrowserLanguage out of CPluginSystem, since it was not using any static member data. Removed CPluginSystem, because afterwards it was no longer used. Removed GetSystemLanguage, which was unused.

Patch Set 1 : #

Unified diffs Side-by-side diffs Delta from patch set Stats (+14 lines, -135 lines) Patch
M src/plugin/AdblockPlusClient.cpp View 1 chunk +1 line, -1 line 0 comments Download
M src/plugin/Plugin.cpp View 2 chunks +0 lines, -8 lines 0 comments Download
M src/plugin/PluginClass.cpp View 4 chunks +1 line, -9 lines 0 comments Download
M src/plugin/PluginSettings.h View 1 chunk +0 lines, -1 line 0 comments Download
M src/plugin/PluginSettings.cpp View 2 chunks +1 line, -27 lines 0 comments Download
M src/plugin/PluginSystem.h View 1 chunk +2 lines, -19 lines 0 comments Download
M src/plugin/PluginSystem.cpp View 1 chunk +9 lines, -70 lines 0 comments Download

Messages

Total messages: 5
Eric
July 30, 2014, 7:13 p.m. (2014-07-30 19:13:27 UTC) #1
Oleksandr
Nice! Shall we move GetBrowserLanguage to Utils in that case then? Looks quite lonely in ...
Aug. 5, 2014, 11:44 a.m. (2014-08-05 11:44:24 UTC) #2
sergei
LGTM
Aug. 5, 2014, noon (2014-08-05 12:00:13 UTC) #3
Eric
On 2014/08/05 11:44:24, Oleksandr wrote: > Nice! Shall we move GetBrowserLanguage to Utils in that ...
Aug. 5, 2014, 1:20 p.m. (2014-08-05 13:20:26 UTC) #4
Eric
Aug. 5, 2014, 2:33 p.m. (2014-08-05 14:33:34 UTC) #5
FYI.

The other thing I should mention, apropos of this change, is that the settings
class, CPluginSettings, acts a lot like the removed class CPluginSystem. Almost
everything in CPluginSettings doesn't use any private data at all, which means
there are a huge number of extraneous calls to CPluginSettings::GetInstance in
the code.

Powered by Google App Engine
This is Rietveld