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

Unified Diff: chrome/test/base/testing_profile.cc

Issue 2749823002: Restore KeyedServiceFactory diagnostics for context use-after-destroy. (Closed)
Patch Set: Refactor SiteEngagementService tests. Created 3 years, 9 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: chrome/test/base/testing_profile.cc
diff --git a/chrome/test/base/testing_profile.cc b/chrome/test/base/testing_profile.cc
index a99ccbfca04fdd6296bf001ab86aed16a7a8490a..edeed7859bf421be26f6801bc2933046e7ffaf19 100644
--- a/chrome/test/base/testing_profile.cc
+++ b/chrome/test/base/testing_profile.cc
@@ -427,6 +427,8 @@ void TestingProfile::Init() {
BrowserContext::Initialize(this, profile_path_);
+ browser_context_dependency_manager_->MarkBrowserContextLive(this);
+
#if defined(OS_ANDROID)
// Make sure token service knows its running in tests.
OAuth2TokenServiceDelegateAndroid::set_is_testing_profile();

Powered by Google App Engine
This is Rietveld 408576698