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

Side by Side Diff: runtime/bin/platform_android.cc

Issue 2941873002: [Fuchsia] Fix Platform.executable and Platform.resolvedExecutable (Closed)
Patch Set: Created 3 years, 6 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 unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file 1 // Copyright (c) 2012, the Dart project authors. Please see the AUTHORS file
2 // for details. All rights reserved. Use of this source code is governed by a 2 // for details. All rights reserved. Use of this source code is governed by a
3 // BSD-style license that can be found in the LICENSE file. 3 // BSD-style license that can be found in the LICENSE file.
4 4
5 #include "platform/globals.h" 5 #include "platform/globals.h"
6 #if defined(HOST_OS_ANDROID) 6 #if defined(HOST_OS_ANDROID)
7 7
8 #include "bin/platform.h" 8 #include "bin/platform.h"
9 9
10 #include <signal.h> // NOLINT 10 #include <signal.h> // NOLINT
(...skipping 71 matching lines...) Expand 10 before | Expand all | Expand 10 after
82 *count = i; 82 *count = i;
83 char** result; 83 char** result;
84 result = reinterpret_cast<char**>(Dart_ScopeAllocate(i * sizeof(*result))); 84 result = reinterpret_cast<char**>(Dart_ScopeAllocate(i * sizeof(*result)));
85 for (intptr_t current = 0; current < i; current++) { 85 for (intptr_t current = 0; current < i; current++) {
86 result[current] = environ[current]; 86 result[current] = environ[current];
87 } 87 }
88 return result; 88 return result;
89 } 89 }
90 90
91 91
92 const char* Platform::GetExecutableName() {
93 return executable_name_;
94 }
95
96
92 const char* Platform::ResolveExecutablePath() { 97 const char* Platform::ResolveExecutablePath() {
93 return NULL; 98 return NULL;
94 } 99 }
95 100
96 101
97 void Platform::Exit(int exit_code) { 102 void Platform::Exit(int exit_code) {
98 exit(exit_code); 103 exit(exit_code);
99 } 104 }
100 105
101 } // namespace bin 106 } // namespace bin
102 } // namespace dart 107 } // namespace dart
103 108
104 #endif // defined(HOST_OS_ANDROID) 109 #endif // defined(HOST_OS_ANDROID)
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698