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

Unified Diff: base/threading/thread_restrictions.h

Issue 1997153002: libchrome: Several upstreamable fixes from libchrome Base URL: https://chromium.googlesource.com/a/chromium/src.git@master
Patch Set: Addressed feedback Created 4 years, 7 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: base/threading/thread_restrictions.h
diff --git a/base/threading/thread_restrictions.h b/base/threading/thread_restrictions.h
index 92b7bd5b2f6d4e31a39f604f1818544f16f3c8eb..d8e3cb1b55bf1260272a660b07407255de8bf952 100644
--- a/base/threading/thread_restrictions.h
+++ b/base/threading/thread_restrictions.h
@@ -180,9 +180,9 @@ class BASE_EXPORT ThreadRestrictions {
#else
// Inline the empty definitions of these functions so that they can be
// compiled out.
- static bool SetIOAllowed(bool allowed) { return true; }
+ static bool SetIOAllowed(bool) { return true; }
static void AssertIOAllowed() {}
- static bool SetSingletonAllowed(bool allowed) { return true; }
+ static bool SetSingletonAllowed(bool) { return true; }
static void AssertSingletonAllowed() {}
static void DisallowWaiting() {}
static void AssertWaitAllowed() {}
@@ -243,7 +243,7 @@ class BASE_EXPORT ThreadRestrictions {
#if ENABLE_THREAD_RESTRICTIONS
static bool SetWaitAllowed(bool allowed);
#else
- static bool SetWaitAllowed(bool allowed) { return true; }
+ static bool SetWaitAllowed(bool) { return true; }
#endif
// Constructing a ScopedAllowWait temporarily allows waiting on the current

Powered by Google App Engine
This is Rietveld 408576698