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

Unified Diff: src/plugin/AdblockPlusTab.cpp

Issue 11013110: Cleanup (Closed)
Patch Set: More beautification and addressing comments Created July 29, 2013, 12:13 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
« no previous file with comments | « src/plugin/AdblockPlusTab.h ('k') | src/plugin/Config.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/AdblockPlusTab.cpp
===================================================================
--- a/src/plugin/AdblockPlusTab.cpp
+++ b/src/plugin/AdblockPlusTab.cpp
@@ -3,7 +3,6 @@
#include "PluginSettings.h"
#include "PluginSystem.h"
#include "PluginClass.h"
-#include "PluginConfiguration.h"
#include "PluginClientFactory.h"
#include "AdblockPlusTab.h"
@@ -16,32 +15,3 @@
CPluginTab::~CPluginTab()
{
}
-
-
-void CPluginTab::OnNavigate(const CString& url)
-{
- CPluginTabBase::OnNavigate(url);
-
- int r = url.Find(L".simple-adblock.com");
- if ((r > 0) && (r < 15))
- {
- if (url.Find(L"?update") > 0)
- {
- CPluginConfiguration pluginConfig;
- pluginConfig.Download();
- DWORD id;
- HANDLE handle = ::CreateThread(NULL, 0, CPluginClass::MainThreadProc, (LPVOID)this, NULL, &id);
- CPluginSettings* settings = CPluginSettings::GetInstance();
-
- //Also register a mime filter if it's not registered yet
- if (CPluginClass::s_mimeFilter == NULL)
- {
- CPluginClass::s_mimeFilter = CPluginClientFactory::GetMimeFilterClientInstance();
- }
-
- settings->Write();
- this->OnUpdateConfig();
- this->OnUpdateSettings(true);
- }
- }
-}
« no previous file with comments | « src/plugin/AdblockPlusTab.h ('k') | src/plugin/Config.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld