Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3526)

Unified Diff: chrome/browser/extensions/extensions_service.cc

Issue 361030: Fix threading issues in BlacklistManager, using new ChromeThread. (Closed)
Patch Set: fix compile after the dtor has been made private Created 11 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « no previous file | chrome/browser/privacy_blacklist/blacklist_manager.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/extensions/extensions_service.cc
diff --git a/chrome/browser/extensions/extensions_service.cc b/chrome/browser/extensions/extensions_service.cc
index 2323e6dd94da157ec01a6cdc03ce9f7a056641ba..6103babb7651cb72494ec69e566bdd7c95bb830c 100644
--- a/chrome/browser/extensions/extensions_service.cc
+++ b/chrome/browser/extensions/extensions_service.cc
@@ -742,6 +742,8 @@ void ExtensionsService::ReportExtensionLoadError(
}
std::vector<FilePath> ExtensionsService::GetPersistentBlacklistPaths() {
+ DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
+
std::vector<FilePath> result;
for (ExtensionList::const_iterator extension_iter = extensions()->begin();
extension_iter != extensions()->end(); ++extension_iter) {
@@ -760,6 +762,8 @@ std::vector<FilePath> ExtensionsService::GetPersistentBlacklistPaths() {
}
std::vector<FilePath> ExtensionsService::GetTransientBlacklistPaths() {
+ DCHECK(ChromeThread::CurrentlyOn(ChromeThread::UI));
+
std::vector<FilePath> result;
for (ExtensionList::const_iterator extension_iter = extensions()->begin();
extension_iter != extensions()->end(); ++extension_iter) {
« no previous file with comments | « no previous file | chrome/browser/privacy_blacklist/blacklist_manager.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698