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

Unified Diff: base/process/process_linux.cc

Issue 2733283002: Require explicit selection of traits for LazyInstance (Closed)
Patch Set: l10n again 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
« no previous file with comments | « base/metrics/user_metrics.cc ('k') | base/test/launcher/test_launcher.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: base/process/process_linux.cc
diff --git a/base/process/process_linux.cc b/base/process/process_linux.cc
index 2973ef3cbccdbada7d21b04b3ab73f69be2188f7..bcba9b53ca98a5b75f4711fbcd31623513016874 100644
--- a/base/process/process_linux.cc
+++ b/base/process/process_linux.cc
@@ -62,7 +62,8 @@ struct CGroups {
}
};
-base::LazyInstance<CGroups> g_cgroups = LAZY_INSTANCE_INITIALIZER;
+base::LazyInstance<CGroups>::DestructorAtExit g_cgroups =
+ LAZY_INSTANCE_INITIALIZER;
#else
const int kBackgroundPriority = 5;
#endif // defined(OS_CHROMEOS)
@@ -90,8 +91,8 @@ bool Process::CanBackgroundProcesses() {
return true;
#endif // defined(OS_CHROMEOS)
- static LazyInstance<CheckForNicePermission> check_for_nice_permission =
- LAZY_INSTANCE_INITIALIZER;
+ static LazyInstance<CheckForNicePermission>::DestructorAtExit
+ check_for_nice_permission = LAZY_INSTANCE_INITIALIZER;
return check_for_nice_permission.Get().can_reraise_priority;
}
« no previous file with comments | « base/metrics/user_metrics.cc ('k') | base/test/launcher/test_launcher.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698