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

Unified Diff: src/plugin/PluginTabBase.cpp

Issue 5351131051982848: Issues #1173 - Add exception handler to entry point FilterLoader (Closed)
Patch Set: changed comment that was no longer relevant Created Feb. 13, 2015, 3:12 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: src/plugin/PluginTabBase.cpp
===================================================================
--- a/src/plugin/PluginTabBase.cpp
+++ b/src/plugin/PluginTabBase.cpp
@@ -84,10 +84,18 @@
namespace
{
+ // Entry Point
void FilterLoader(CPluginTabBase* tabBase)
{
- tabBase->m_filter->LoadHideFilters(CPluginClient::GetInstance()->GetElementHidingSelectors(tabBase->GetDocumentDomain()));
- SetEvent(tabBase->m_filter->hideFiltersLoadedEvent);
+ try
+ {
+ tabBase->m_filter->LoadHideFilters(CPluginClient::GetInstance()->GetElementHidingSelectors(tabBase->GetDocumentDomain()));
+ SetEvent(tabBase->m_filter->hideFiltersLoadedEvent);
+ }
+ catch (...)
+ {
+ // As a thread-main function, we truncate any C++ exception.
+ }
}
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld