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

Unified Diff: chrome/browser/policy/device_management_backend_impl.cc

Issue 8573021: chrome: Remove 14 exit time destructors and 2 static initializers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Hopefully fix problems seen on the bots Created 9 years, 1 month 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: chrome/browser/policy/device_management_backend_impl.cc
diff --git a/chrome/browser/policy/device_management_backend_impl.cc b/chrome/browser/policy/device_management_backend_impl.cc
index a71f6ed015d27e4bfad66e3d741f98ba54e32504..5143b21c8cecaf51d30217b743d32121eb3ab7ee 100644
--- a/chrome/browser/policy/device_management_backend_impl.cc
+++ b/chrome/browser/policy/device_management_backend_impl.cc
@@ -473,7 +473,7 @@ DeviceManagementBackendImpl::~DeviceManagementBackendImpl() {
}
std::string DeviceManagementBackendImpl::GetAgentString() {
- static std::string agent;
+ CR_DEFINE_STATIC_LOCAL(std::string, agent, ());
if (!agent.empty())
return agent;
@@ -486,7 +486,7 @@ std::string DeviceManagementBackendImpl::GetAgentString() {
}
std::string DeviceManagementBackendImpl::GetPlatformString() {
- static std::string platform;
+ CR_DEFINE_STATIC_LOCAL(std::string, platform, ());
if (!platform.empty())
return platform;

Powered by Google App Engine
This is Rietveld 408576698