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

Unified Diff: content/browser/browser_context.cc

Issue 2118523002: Fix ThreadTaskRunnerHandle check in BrowserContext. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 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
« 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: content/browser/browser_context.cc
diff --git a/content/browser/browser_context.cc b/content/browser/browser_context.cc
index b0251f2d41d5a9d4e79ff943724983281db0bf53..a1c1d0acdfc24b70a7ddeb5ac27cd5edbf63339c 100644
--- a/content/browser/browser_context.cc
+++ b/content/browser/browser_context.cc
@@ -412,7 +412,7 @@ void BrowserContext::Initialize(
new base::SupportsUserData::Data);
MojoShellConnection* shell = MojoShellConnection::GetForProcess();
- if (shell && base::ThreadTaskRunnerHandle::Get()) {
+ if (shell && base::ThreadTaskRunnerHandle::IsSet()) {
// NOTE: Many unit tests create a TestBrowserContext without initializing
// Mojo or the global Mojo shell connection.
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698