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

Unified Diff: ui/aura/env.cc

Issue 962393002: Add TestWebContentsFactory to content/public/test (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« ui/aura/env.h ('K') | « ui/aura/env.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ui/aura/env.cc
diff --git a/ui/aura/env.cc b/ui/aura/env.cc
index d205ae9827ad208a91fbcad11746b3cf7c442d30..5c2310fdc6a115b1a3ddc9c5194f095eac3f64d9 100644
--- a/ui/aura/env.cc
+++ b/ui/aura/env.cc
@@ -47,6 +47,11 @@ void Env::DeleteInstance() {
delete lazy_tls_ptr.Pointer()->Get();
}
+// static
+bool Env::HasInstanceForTesting() {
+ return lazy_tls_ptr.Pointer()->Get() != nullptr;
+}
+
void Env::AddObserver(EnvObserver* observer) {
observers_.AddObserver(observer);
}
« ui/aura/env.h ('K') | « ui/aura/env.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698