| 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 "ipc/attachment_broker_privileged.h" | 5 #include "ipc/attachment_broker_privileged.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 | 8 |
| 9 #include "base/lazy_instance.h" | 9 #include "base/lazy_instance.h" |
| 10 #include "base/metrics/histogram_macros.h" | 10 #include "base/metrics/histogram_macros.h" |
| 11 #include "build/build_config.h" |
| 11 #include "ipc/ipc_endpoint.h" | 12 #include "ipc/ipc_endpoint.h" |
| 12 | 13 |
| 13 #if defined(OS_WIN) | 14 #if defined(OS_WIN) |
| 14 #include "ipc/attachment_broker_privileged_win.h" | 15 #include "ipc/attachment_broker_privileged_win.h" |
| 15 #endif | 16 #endif |
| 16 | 17 |
| 17 #if defined(OS_MACOSX) && !defined(OS_IOS) | 18 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 18 #include "ipc/attachment_broker_privileged_mac.h" | 19 #include "ipc/attachment_broker_privileged_mac.h" |
| 19 #endif | 20 #endif |
| 20 | 21 |
| (...skipping 89 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 return nullptr; | 111 return nullptr; |
| 111 return *it; | 112 return *it; |
| 112 } | 113 } |
| 113 | 114 |
| 114 void AttachmentBrokerPrivileged::LogError(UMAError error) { | 115 void AttachmentBrokerPrivileged::LogError(UMAError error) { |
| 115 UMA_HISTOGRAM_ENUMERATION( | 116 UMA_HISTOGRAM_ENUMERATION( |
| 116 "IPC.AttachmentBrokerPrivileged.BrokerAttachmentError", error, ERROR_MAX); | 117 "IPC.AttachmentBrokerPrivileged.BrokerAttachmentError", error, ERROR_MAX); |
| 117 } | 118 } |
| 118 | 119 |
| 119 } // namespace IPC | 120 } // namespace IPC |
| OLD | NEW |