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

Unified Diff: runtime/bin/platform_android.cc

Issue 2974233002: VM: Re-format to use at most one newline between functions (Closed)
Patch Set: Rebase and merge Created 3 years, 5 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 | « runtime/bin/platform.cc ('k') | runtime/bin/platform_fuchsia.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/platform_android.cc
diff --git a/runtime/bin/platform_android.cc b/runtime/bin/platform_android.cc
index cc21f19b43d74b55ab500310fc889c26e771e6f1..87ee9aa715f1dcca9aa426452c6e65c3e32d07b7 100644
--- a/runtime/bin/platform_android.cc
+++ b/runtime/bin/platform_android.cc
@@ -36,27 +36,22 @@ bool Platform::Initialize() {
return true;
}
-
int Platform::NumberOfProcessors() {
return sysconf(_SC_NPROCESSORS_ONLN);
}
-
const char* Platform::OperatingSystem() {
return "android";
}
-
const char* Platform::LibraryPrefix() {
return "lib";
}
-
const char* Platform::LibraryExtension() {
return "so";
}
-
const char* Platform::LocaleName() {
char* lang = getenv("LANG");
if (lang == NULL) {
@@ -65,12 +60,10 @@ const char* Platform::LocaleName() {
return lang;
}
-
bool Platform::LocalHostname(char* buffer, intptr_t buffer_length) {
return gethostname(buffer, buffer_length) == 0;
}
-
char** Platform::Environment(intptr_t* count) {
// Using environ directly is only safe as long as we do not
// provide access to modifying environment variables.
@@ -88,17 +81,14 @@ char** Platform::Environment(intptr_t* count) {
return result;
}
-
const char* Platform::GetExecutableName() {
return executable_name_;
}
-
const char* Platform::ResolveExecutablePath() {
return NULL;
}
-
void Platform::Exit(int exit_code) {
exit(exit_code);
}
« no previous file with comments | « runtime/bin/platform.cc ('k') | runtime/bin/platform_fuchsia.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698