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

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

Issue 5338025085108224: Support Acceptable Ads (Closed)
Left Patch Set: Created April 14, 2014, 7:01 a.m.
Right Patch Set: Missing negation fix Created July 18, 2014, 7:39 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
« no previous file with change/comment | « src/plugin/PluginClass.cpp ('k') | src/plugin/Resource.h » ('j') | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 303 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 { 314 {
315 CPluginClient::GetInstance()->SetSubscription(url); 315 CPluginClient::GetInstance()->SetSubscription(url);
316 RefreshWhitelist(); 316 RefreshWhitelist();
317 } 317 }
318 318
319 CString CPluginSettings::GetSubscription() 319 CString CPluginSettings::GetSubscription()
320 { 320 {
321 std::vector<SubscriptionDescription> subscriptions = CPluginClient::GetInstanc e()->GetListedSubscriptions(); 321 std::vector<SubscriptionDescription> subscriptions = CPluginClient::GetInstanc e()->GetListedSubscriptions();
322 std::wstring aaUrl = CPluginClient::GetInstance()->GetPref(L"subscriptions_exc eptionsurl", L""); 322 std::wstring aaUrl = CPluginClient::GetInstance()->GetPref(L"subscriptions_exc eptionsurl", L"");
323 323
324 for (std::vector<SubscriptionDescription>::iterator subscription = subscriptio ns.begin(); subscription < subscriptions.end(); subscription ++) 324 for (std::vector<SubscriptionDescription>::iterator subscription = subscriptio ns.begin(); subscription != subscriptions.end(); subscription++)
Felix Dahlke 2014/06/30 17:24:04 "<" -> "!=" and "subscription ++" -> "subscription
325 { 325 {
326 if (subscription->url != aaUrl) 326 if (subscription->url != aaUrl)
327 { 327 {
328 return CString(subscription->url.c_str()); 328 return CString(subscription->url.c_str());
329 } 329 }
330 } 330 }
331 return CString(L""); 331 return CString(L"");
332 } 332 }
333 333
334 CString CPluginSettings::GetAppLocale() 334 CString CPluginSettings::GetAppLocale()
335 { 335 {
336 return CPluginSystem::GetInstance()->GetBrowserLanguage(); 336 return CPluginSystem::GetInstance()->GetBrowserLanguage();
337 } 337 }
338 338
339 CString CPluginSettings::GetDocumentationLink() 339 CString CPluginSettings::GetDocumentationLink()
340 { 340 {
341 return CString(CPluginClient::GetInstance()->GetDocumentationLink().c_str()); 341 return CString(CPluginClient::GetInstance()->GetDocumentationLink().c_str());
342 } 342 }
343 343
344 344
345 345
346 #endif // SUPPORT_WHITELIST 346 #endif // SUPPORT_WHITELIST
LEFTRIGHT

Powered by Google App Engine
This is Rietveld