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

Side by Side Diff: src/plugin/PluginSettings.cpp

Issue 11300014: Injecting libadblockplus into IE (Closed)
Patch Set: Created July 29, 2013, 5:30 a.m.
Left:
Right:
Use n/p to move between diff chunks; N/P to move between comments.
Jump to:
View unified diff | Download patch
OLDNEW
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 346 matching lines...) Expand 10 before | Expand all | Expand 10 after
357 357
358 CString CPluginSettings::GetSubscription() 358 CString CPluginSettings::GetSubscription()
359 { 359 {
360 std::vector<SubscriptionDescription> subscriptions = CPluginClient::GetInstanc e()->GetListedSubscriptions(); 360 std::vector<SubscriptionDescription> subscriptions = CPluginClient::GetInstanc e()->GetListedSubscriptions();
361 if (subscriptions.size() > 0) 361 if (subscriptions.size() > 0)
362 return CString(subscriptions.front().url.c_str()); 362 return CString(subscriptions.front().url.c_str());
363 else 363 else
364 return CString(L""); 364 return CString(L"");
365 } 365 }
366 366
367 CString CPluginSettings::GetRequire(const std::wstring& name)
368 {
369 std::wstring require = CPluginClient::GetInstance()->GetRequire(name);
370 return CString(require.c_str());
371 }
367 372
368 373
369 #endif // SUPPORT_WHITELIST 374 #endif // SUPPORT_WHITELIST
OLDNEW

Powered by Google App Engine
This is Rietveld