| 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_unprivileged.h" | 5 #include "ipc/attachment_broker_unprivileged.h" |
| 6 | 6 |
| 7 #include "base/metrics/histogram_macros.h" | 7 #include "base/metrics/histogram_macros.h" |
| 8 #include "build/build_config.h" |
| 8 #include "ipc/ipc_channel.h" | 9 #include "ipc/ipc_channel.h" |
| 9 #include "ipc/ipc_endpoint.h" | 10 #include "ipc/ipc_endpoint.h" |
| 10 | 11 |
| 11 #if defined(OS_WIN) | 12 #if defined(OS_WIN) |
| 12 #include "ipc/attachment_broker_unprivileged_win.h" | 13 #include "ipc/attachment_broker_unprivileged_win.h" |
| 13 #endif | 14 #endif |
| 14 | 15 |
| 15 #if defined(OS_MACOSX) && !defined(OS_IOS) | 16 #if defined(OS_MACOSX) && !defined(OS_IOS) |
| 16 #include "ipc/attachment_broker_unprivileged_mac.h" | 17 #include "ipc/attachment_broker_unprivileged_mac.h" |
| 17 #endif | 18 #endif |
| (...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 49 endpoint->SetAttachmentBrokerEndpoint(true); | 50 endpoint->SetAttachmentBrokerEndpoint(true); |
| 50 } | 51 } |
| 51 | 52 |
| 52 void AttachmentBrokerUnprivileged::LogError(UMAError error) { | 53 void AttachmentBrokerUnprivileged::LogError(UMAError error) { |
| 53 UMA_HISTOGRAM_ENUMERATION( | 54 UMA_HISTOGRAM_ENUMERATION( |
| 54 "IPC.AttachmentBrokerUnprivileged.BrokerAttachmentError", error, | 55 "IPC.AttachmentBrokerUnprivileged.BrokerAttachmentError", error, |
| 55 ERROR_MAX); | 56 ERROR_MAX); |
| 56 } | 57 } |
| 57 | 58 |
| 58 } // namespace IPC | 59 } // namespace IPC |
| OLD | NEW |