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

Unified Diff: runtime/bin/extensions.cc

Issue 2480793002: clang-format runtime/bin (Closed)
Patch Set: Created 4 years, 1 month 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/eventhandler_win.cc ('k') | runtime/bin/fdutils_android.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: runtime/bin/extensions.cc
diff --git a/runtime/bin/extensions.cc b/runtime/bin/extensions.cc
index 4584d0175d054d9c1e2e3fe099a392dae985eafc..fd0961f205b9097be849f42778f02fa5f799424e 100644
--- a/runtime/bin/extensions.cc
+++ b/runtime/bin/extensions.cc
@@ -28,14 +28,14 @@ void* Extensions::MakePathAndResolve(const char* dir, const char* name) {
// First try to find the library with a suffix specifying the architecture.
{
const char* path_components[] = {
- dir,
- Platform::LibraryPrefix(),
- name,
- "-",
- Platform::HostArchitecture(), // arm
- ".",
- Platform::LibraryExtension(), // so
- NULL,
+ dir,
+ Platform::LibraryPrefix(),
+ name,
+ "-",
+ Platform::HostArchitecture(), // arm
+ ".",
+ Platform::LibraryExtension(), // so
+ NULL,
};
const char* library_file = Concatenate(path_components);
void* library_handle = LoadExtensionLibrary(library_file);
@@ -47,12 +47,12 @@ void* Extensions::MakePathAndResolve(const char* dir, const char* name) {
// Fall back on a library name without the suffix.
{
const char* path_components[] = {
- dir,
- Platform::LibraryPrefix(),
- name,
- ".",
- Platform::LibraryExtension(), // so
- NULL,
+ dir,
+ Platform::LibraryPrefix(),
+ name,
+ ".",
+ Platform::LibraryExtension(), // so
+ NULL,
};
const char* library_file = Concatenate(path_components);
return LoadExtensionLibrary(library_file);
@@ -85,8 +85,8 @@ void* Extensions::ResolveExtension(const char* extension_directory,
// If the path following dart-ext is just a file name, first look next to
// the importing Dart library.
- void* library_handle = MakePathAndResolve(extension_directory,
- extension_name);
+ void* library_handle =
+ MakePathAndResolve(extension_directory, extension_name);
if (library_handle != NULL) {
return library_handle;
}
@@ -110,7 +110,7 @@ Dart_Handle Extensions::LoadExtension(const char* extension_directory,
extension = strrchr(extension_name, PathSeparator()) + 1;
}
- const char* strings[] = { extension, "_Init", NULL };
+ const char* strings[] = {extension, "_Init", NULL};
const char* init_function_name = Concatenate(strings);
void* init_function = ResolveSymbol(library_handle, init_function_name);
Dart_Handle result = GetError();
« no previous file with comments | « runtime/bin/eventhandler_win.cc ('k') | runtime/bin/fdutils_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698