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

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

Issue 8568039: Revert 110235 - chrome: Remove 14 exit time destructors and 2 static initializers. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: 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
===================================================================
--- chrome/browser/policy/device_management_backend_impl.cc (revision 110237)
+++ chrome/browser/policy/device_management_backend_impl.cc (working copy)
@@ -473,7 +473,7 @@
}
std::string DeviceManagementBackendImpl::GetAgentString() {
- CR_DEFINE_STATIC_LOCAL(std::string, agent, ());
+ static std::string agent;
if (!agent.empty())
return agent;
@@ -486,7 +486,7 @@
}
std::string DeviceManagementBackendImpl::GetPlatformString() {
- CR_DEFINE_STATIC_LOCAL(std::string, platform, ());
+ static std::string platform;
if (!platform.empty())
return platform;
« no previous file with comments | « chrome/browser/metrics/thread_watcher.cc ('k') | chrome/browser/printing/cloud_print/cloud_print_setup_flow.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698