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

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

Issue 5994126579335168: Noissue - Remove a dead inheritance and some dead code (Closed)
Left Patch Set: Created Feb. 18, 2015, 7:06 p.m.
Right Patch Set: Remove comment Created Feb. 27, 2015, 4:47 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/PluginTabBase.h ('k') | no next file » | no next file with change/comment »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
LEFTRIGHT
1 /* 1 /*
2 * This file is part of Adblock Plus <https://adblockplus.org/>, 2 * This file is part of Adblock Plus <https://adblockplus.org/>,
3 * Copyright (C) 2006-2015 Eyeo GmbH 3 * Copyright (C) 2006-2015 Eyeo GmbH
4 * 4 *
5 * Adblock Plus is free software: you can redistribute it and/or modify 5 * Adblock Plus is free software: you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License version 3 as 6 * it under the terms of the GNU General Public License version 3 as
7 * published by the Free Software Foundation. 7 * published by the Free Software Foundation.
8 * 8 *
9 * Adblock Plus is distributed in the hope that it will be useful, 9 * Adblock Plus is distributed in the hope that it will be useful,
10 * but WITHOUT ANY WARRANTY; without even the implied warranty of 10 * but WITHOUT ANY WARRANTY; without even the implied warranty of
(...skipping 289 matching lines...) Expand 10 before | Expand all | Expand 10 after
300 { 300 {
301 if (domain.empty() || domain != m_cacheDomain) 301 if (domain.empty() || domain != m_cacheDomain)
302 { 302 {
303 m_cacheFrames.clear(); 303 m_cacheFrames.clear();
304 m_cacheDomain = domain; 304 m_cacheDomain = domain;
305 } 305 }
306 } 306 }
307 m_criticalSectionCache.Unlock(); 307 m_criticalSectionCache.Unlock();
308 } 308 }
309 309
310 /*
311 * TODO: Replace the management of the log queue in this thread within CPluginTa bBase
312 * with a version of the log queue that uses a single internal worker thre ad.
313 */
Eric 2015/02/18 19:20:25 I put this comment into the change set because the
Oleksandr 2015/02/27 10:59:27 I'd vote for an issue instead of a TODO. Though I
Eric 2015/02/27 16:47:47 https://issues.adblockplus.org/ticket/2058
314 void CPluginTabBase::ThreadProc() 310 void CPluginTabBase::ThreadProc()
315 { 311 {
316 // Force loading/creation of settings 312 // Force loading/creation of settings
317 CPluginSettings* settings = CPluginSettings::GetInstance(); 313 CPluginSettings* settings = CPluginSettings::GetInstance();
318 314
319 settings->SetWorkingThreadId(); 315 settings->SetWorkingThreadId();
320 316
321 CString threadInfo; 317 CString threadInfo;
322 threadInfo.Format(L"%d.%d", ::GetCurrentProcessId(), ::GetCurrentThreadId()); 318 threadInfo.Format(L"%d.%d", ::GetCurrentProcessId(), ::GetCurrentThreadId());
323 319
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
362 LogQueue::LogPluginError(pluginError.GetErrorCode(), pluginError.GetEr rorId(), pluginError.GetErrorSubid(), pluginError.GetErrorDescription(), true, p luginError.GetProcessId(), pluginError.GetThreadId()); 358 LogQueue::LogPluginError(pluginError.GetErrorCode(), pluginError.GetEr rorId(), pluginError.GetErrorSubid(), pluginError.GetErrorDescription(), true, p luginError.GetProcessId(), pluginError.GetThreadId());
363 } 359 }
364 360
365 // Non-hanging sleep 361 // Non-hanging sleep
366 Sleep(50); 362 Sleep(50);
367 } 363 }
368 364
369 tabLoopIteration++; 365 tabLoopIteration++;
370 } 366 }
371 } 367 }
LEFTRIGHT

Powered by Google App Engine
This is Rietveld