| OLD | NEW |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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 "mojo/shell/application_manager/local_fetcher.h" | 5 #include "mojo/shell/local_fetcher.h" |
| 6 | 6 |
| 7 #include "base/bind.h" | 7 #include "base/bind.h" |
| 8 #include "base/files/file_util.h" | 8 #include "base/files/file_util.h" |
| 9 #include "base/format_macros.h" | 9 #include "base/format_macros.h" |
| 10 #include "base/message_loop/message_loop.h" | 10 #include "base/message_loop/message_loop.h" |
| 11 #include "base/strings/stringprintf.h" | 11 #include "base/strings/stringprintf.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 12 #include "base/strings/utf_string_conversions.h" |
| 13 #include "base/trace_event/trace_event.h" | 13 #include "base/trace_event/trace_event.h" |
| 14 #include "mojo/common/common_type_converters.h" | 14 #include "mojo/common/common_type_converters.h" |
| 15 #include "mojo/common/data_pipe_utils.h" | 15 #include "mojo/common/data_pipe_utils.h" |
| (...skipping 82 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 98 ReadFileToString(path_, &start_of_file, kMaxShebangLength); | 98 ReadFileToString(path_, &start_of_file, kMaxShebangLength); |
| 99 size_t return_position = start_of_file.find('\n'); | 99 size_t return_position = start_of_file.find('\n'); |
| 100 if (return_position == std::string::npos) | 100 if (return_position == std::string::npos) |
| 101 return false; | 101 return false; |
| 102 *line = start_of_file.substr(0, return_position + 1); | 102 *line = start_of_file.substr(0, return_position + 1); |
| 103 return true; | 103 return true; |
| 104 } | 104 } |
| 105 | 105 |
| 106 } // namespace shell | 106 } // namespace shell |
| 107 } // namespace mojo | 107 } // namespace mojo |
| OLD | NEW |