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

Unified Diff: components/browser_context_keyed_service/browser_context_dependency_manager.cc

Issue 159763004: Eliminate potential for flaky crash in BCKSFactory::SetTestingFactory(). (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 10 months 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
Index: components/browser_context_keyed_service/browser_context_dependency_manager.cc
diff --git a/components/browser_context_keyed_service/browser_context_dependency_manager.cc b/components/browser_context_keyed_service/browser_context_dependency_manager.cc
index 913c92b80858a7f4489bb486e84cf0ab874dfdef..a7b66be0adac8f66800fc655f8f350a67323f1ea 100644
--- a/components/browser_context_keyed_service/browser_context_dependency_manager.cc
+++ b/components/browser_context_keyed_service/browser_context_dependency_manager.cc
@@ -139,6 +139,11 @@ void BrowserContextDependencyManager::AssertBrowserContextWasntDestroyed(
<< "services again.";
}
}
+
+void BrowserContextDependencyManager::MarkBrowserContextLiveForTesting(
+ content::BrowserContext* context) {
+ dead_context_pointers_.erase(context);
+}
#endif
// static

Powered by Google App Engine
This is Rietveld 408576698