Chromium Code Reviews| Index: runtime/bin/platform.h |
| diff --git a/runtime/bin/platform.h b/runtime/bin/platform.h |
| index 54412bac3209bfcb8a0e4562770f77b05c3ac7e3..144b4e110d2a885bf8af9a5ebfa88f6ff4caba31 100644 |
| --- a/runtime/bin/platform.h |
| +++ b/runtime/bin/platform.h |
| @@ -34,7 +34,17 @@ class Platform { |
| static char** Environment(intptr_t* count); |
| static void FreeEnvironment(char** env, intptr_t count); |
| + // Stores and gets the executable name. |
| + static void SetExecutableName(char* executable_name) { |
| + executable_name_ = executable_name; |
| + } |
| + static char* GetExecutableName() { |
|
Bill Hesse
2013/08/07 13:39:44
Could these all be const char*?
Søren Gjesse
2013/08/07 14:37:46
Done.
|
| + return executable_name_; |
| + } |
| + |
| private: |
| + static char* executable_name_; |
| + |
| DISALLOW_ALLOCATION(); |
| DISALLOW_IMPLICIT_CONSTRUCTORS(Platform); |
| }; |