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

Side by Side Diff: services/service_manager/runner/host/native_library_runner.cc

Issue 2419723002: Move services/shell to services/service_manager (Closed)
Patch Set: rebase Created 4 years, 2 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 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "services/shell/runner/host/native_library_runner.h" 5 #include "services/service_manager/runner/host/native_library_runner.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
11 #include "base/files/file_util.h" 11 #include "base/files/file_util.h"
12 #include "base/logging.h" 12 #include "base/logging.h"
13 #include "mojo/edk/embedder/entrypoints.h" 13 #include "mojo/edk/embedder/entrypoints.h"
14 #include "mojo/public/c/system/thunks.h" 14 #include "mojo/public/c/system/thunks.h"
15 15
(...skipping 80 matching lines...) Expand 10 before | Expand all | Expand 10 after
96 // |ServiceMain()| takes ownership of the service handle. 96 // |ServiceMain()| takes ownership of the service handle.
97 MojoHandle handle = request.PassMessagePipe().release().value(); 97 MojoHandle handle = request.PassMessagePipe().release().value();
98 MojoResult result = main_function(handle); 98 MojoResult result = main_function(handle);
99 if (result != MOJO_RESULT_OK) { 99 if (result != MOJO_RESULT_OK) {
100 LOG(ERROR) << "ServiceMain returned error (result: " << result << ")"; 100 LOG(ERROR) << "ServiceMain returned error (result: " << result << ")";
101 } 101 }
102 return true; 102 return true;
103 } 103 }
104 104
105 } // namespace shell 105 } // namespace shell
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698