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

Unified Diff: mojo/environment/environment.cc

Issue 218583009: Adds a way to associate key/value pairs with the environment (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: make mojo_service_manager depend on mojo_common_lib Created 6 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 | « mojo/common/handle_watcher_unittest.cc ('k') | mojo/mojo.gyp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: mojo/environment/environment.cc
diff --git a/mojo/environment/environment.cc b/mojo/environment/environment.cc
index 27af33b6ae5d652ceff6b806c54df1c19e2705d7..ab182a64de06052499231c3dcad3e1b2d40cdf15 100644
--- a/mojo/environment/environment.cc
+++ b/mojo/environment/environment.cc
@@ -4,17 +4,32 @@
#include "mojo/public/cpp/environment/environment.h"
+#include "mojo/common/environment_data.h"
+
namespace mojo {
-// These methods do nothing as we rely on LazyInstance<T> to instantiate all of
-// our global state in this implementation of the environment library.
+class Environment::Data {
+ public:
+ Data();
+ ~Data();
+
+ private:
+ common::EnvironmentData data_;
+
+ DISALLOW_COPY_AND_ASSIGN(Data);
+};
+
+Environment::Data::Data() {
+}
+
+Environment::Data::~Data() {
+}
-Environment::Environment() {
- // no-op
+Environment::Environment() : data_(new Environment::Data) {
}
Environment::~Environment() {
- // no-op
+ delete data_;
}
} // namespace mojo
« no previous file with comments | « mojo/common/handle_watcher_unittest.cc ('k') | mojo/mojo.gyp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698