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

Delta Between Two Patch Sets: src/plugin/PluginSettings.cpp

Issue 11427013: Appear fast for IE (Closed)
Left Patch Set: Created Aug. 7, 2013, 5:44 a.m.
Right Patch Set: Comments addressed Created Aug. 7, 2013, 4:01 p.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
Left: Side by side diff | Download
Right: Side by side diff | Download
LEFTRIGHT
1 #include "PluginStdAfx.h" 1 #include "PluginStdAfx.h"
2 2
3 #include <Wbemidl.h> 3 #include <Wbemidl.h>
4 #include <time.h> 4 #include <time.h>
5 #include "PluginSettings.h" 5 #include "PluginSettings.h"
6 #include "PluginClient.h" 6 #include "PluginClient.h"
7 #include "PluginSystem.h" 7 #include "PluginSystem.h"
8 #ifdef SUPPORT_FILTER 8 #ifdef SUPPORT_FILTER
9 #include "PluginFilter.h" 9 #include "PluginFilter.h"
10 #endif 10 #endif
(...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after
146 146
147 } 147 }
148 148
149 149
150 bool CPluginSettings::IsPluginEnabled() const 150 bool CPluginSettings::IsPluginEnabled() const
151 { 151 {
152 return m_isPluginEnabledTab; 152 return m_isPluginEnabledTab;
153 } 153 }
154 154
155 155
156 std::map<CString, CString> CPluginSettings::GetFilterLanguageTitleList() const 156 std::map<CString, CString> CPluginSettings::GetFilterLanguageTitleList()
157 { 157 {
158 CPluginSettings::GetInstance()->m_subscriptions = CPluginClient::GetInstance() ->FetchAvailableSubscriptions(); 158 m_subscriptions = CPluginClient::GetInstance()->FetchAvailableSubscriptions();
Felix Dahlke 2013/08/07 09:34:49 Why get the settings instance here? We're in a mem
Wladimir Palant 2013/08/13 09:41:02 This should be a local variable, no point keeping
159 159
160 std::map<CString, CString> filterList; 160 std::map<CString, CString> filterList;
161 for (size_t i = 0; i < m_subscriptions.size(); i ++) 161 for (size_t i = 0; i < m_subscriptions.size(); i ++)
162 { 162 {
163 SubscriptionDescription it = m_subscriptions[i]; 163 SubscriptionDescription it = m_subscriptions[i];
164 filterList.insert(std::make_pair(CString(it.url.c_str()), CString(it.title.c _str()))); 164 filterList.insert(std::make_pair(CString(it.url.c_str()), CString(it.title.c _str())));
165 } 165 }
166 return filterList; 166 return filterList;
167 } 167 }
168 168
(...skipping 189 matching lines...) Expand 10 before | Expand all | Expand 10 after
358 } 358 }
359 359
360 CString CPluginSettings::GetDocumentationLink() 360 CString CPluginSettings::GetDocumentationLink()
361 { 361 {
362 return CString(CPluginClient::GetInstance()->GetDocumentationLink().c_str()); 362 return CString(CPluginClient::GetInstance()->GetDocumentationLink().c_str());
363 } 363 }
364 364
365 365
366 366
367 #endif // SUPPORT_WHITELIST 367 #endif // SUPPORT_WHITELIST
LEFTRIGHT

Powered by Google App Engine
This is Rietveld