google-code-export / javachromiumembedded

Automatically exported from code.google.com/p/javachromiumembedded
6 stars 2 forks source link

Don't store non-POD types as global variables #145

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
Non-POD globals are generally considered bad (see 
http://google-styleguide.googlecode.com/svn/trunk/cppguide.html#Static_and_Globa
l_Variables). It's probably time to introduce a singleton global context object 
that can own these globals as members. The singleton's lifespan could be 
controlled by CefApp.cpp (created before CefInitialize and destroyed after 
CefShutdown).

Original issue reported on code.google.com by magreenb...@gmail.com on 12 Jan 2015 at 9:53