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

Unified Diff: components/mus/public/cpp/lib/context_provider.cc

Issue 1936423002: Remove unused locks in mus ContextProvider classes (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Fixed typo Created 4 years, 8 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 | « components/mus/public/cpp/context_provider.h ('k') | components/mus/surfaces/surfaces_context_provider.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: components/mus/public/cpp/lib/context_provider.cc
diff --git a/components/mus/public/cpp/lib/context_provider.cc b/components/mus/public/cpp/lib/context_provider.cc
index 97e3af465cd8480c3330b3f85bb28fef08522084..0e170343abbd47f2f58286c8e9ce669829b45d77 100644
--- a/components/mus/public/cpp/lib/context_provider.cc
+++ b/components/mus/public/cpp/lib/context_provider.cc
@@ -54,7 +54,9 @@ gpu::Capabilities ContextProvider::ContextCapabilities() {
void ContextProvider::SetupLock() {}
base::Lock* ContextProvider::GetLock() {
- return &context_lock_;
+ // This context provider is not used on multiple threads.
+ NOTREACHED();
+ return nullptr;
}
ContextProvider::~ContextProvider() {
« no previous file with comments | « components/mus/public/cpp/context_provider.h ('k') | components/mus/surfaces/surfaces_context_provider.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698