OLD | NEW |
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 "components/nacl/renderer/nexe_load_manager.h" | 5 #include "components/nacl/renderer/nexe_load_manager.h" |
6 | 6 |
| 7 #include <stddef.h> |
| 8 |
7 #include "base/command_line.h" | 9 #include "base/command_line.h" |
8 #include "base/logging.h" | 10 #include "base/logging.h" |
9 #include "base/metrics/histogram.h" | 11 #include "base/metrics/histogram.h" |
10 #include "base/strings/string_tokenizer.h" | 12 #include "base/strings/string_tokenizer.h" |
11 #include "base/strings/string_util.h" | 13 #include "base/strings/string_util.h" |
12 #include "components/nacl/common/nacl_host_messages.h" | 14 #include "components/nacl/common/nacl_host_messages.h" |
13 #include "components/nacl/common/nacl_types.h" | 15 #include "components/nacl/common/nacl_types.h" |
14 #include "components/nacl/renderer/histogram.h" | 16 #include "components/nacl/renderer/histogram.h" |
15 #include "components/nacl/renderer/manifest_service_channel.h" | 17 #include "components/nacl/renderer/manifest_service_channel.h" |
16 #include "components/nacl/renderer/platform_info.h" | 18 #include "components/nacl/renderer/platform_info.h" |
(...skipping 421 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
438 // to provide error handling. | 440 // to provide error handling. |
439 } | 441 } |
440 | 442 |
441 void NexeLoadManager::CopyCrashLogToJsConsole(const std::string& crash_log) { | 443 void NexeLoadManager::CopyCrashLogToJsConsole(const std::string& crash_log) { |
442 base::StringTokenizer t(crash_log, "\n"); | 444 base::StringTokenizer t(crash_log, "\n"); |
443 while (t.GetNext()) | 445 while (t.GetNext()) |
444 LogToConsole(t.token()); | 446 LogToConsole(t.token()); |
445 } | 447 } |
446 | 448 |
447 } // namespace nacl | 449 } // namespace nacl |
OLD | NEW |