Comment #3 on issue 8714 by [email protected]: static constructors in  
browser_list.cc
http://code.google.com/p/chromium/issues/detail?id=8714

No, the issue is we can't have global objects that are classes with  
constructors.
This requires running the constructor on startup, which we don't want for a  
variety
of reasons.  One of the solutions is something like LazyInstance (see
base/lazy_instance.h), but depending on how the code is written there is  
usually a
few other possible approaches.

For more details, see:

http://google-
styleguide.googlecode.com/svn/trunk/cppguide.xml#Static_and_Global_Variables

--
You received this message because you are listed in the owner
or CC fields of this issue, or because you starred this issue.
You may adjust your issue notification preferences at:
http://code.google.com/hosting/settings

--~--~---------~--~----~------------~-------~--~----~
Automated mail from issue updates at http://crbug.com/
Subscription options: http://groups.google.com/group/chromium-bugs
-~----------~----~----~----~------~----~------~--~---

Reply via email to