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

Unified Diff: ipc/attachment_broker_privileged_win.cc

Issue 1317093007: ipc: Make a new class PlaceholderBrokerableAttachment. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: More rebase errors. Created 5 years, 3 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « ipc/BUILD.gn ('k') | ipc/attachment_broker_unprivileged_win.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ipc/attachment_broker_privileged_win.cc
diff --git a/ipc/attachment_broker_privileged_win.cc b/ipc/attachment_broker_privileged_win.cc
index c8cc1d0aaf903b5926f20e954e0a823883ca4dfa..20eb4f3beaaadb2ab31825dce2603f6a26b17d5f 100644
--- a/ipc/attachment_broker_privileged_win.cc
+++ b/ipc/attachment_broker_privileged_win.cc
@@ -22,7 +22,7 @@ bool AttachmentBrokerPrivilegedWin::SendAttachmentToProcess(
const BrokerableAttachment* attachment,
base::ProcessId destination_process) {
switch (attachment->GetBrokerableType()) {
- case BrokerableAttachment::WIN_HANDLE:
+ case BrokerableAttachment::WIN_HANDLE: {
const internal::HandleAttachmentWin* handle_attachment =
static_cast<const internal::HandleAttachmentWin*>(attachment);
HandleWireFormat wire_format =
@@ -33,6 +33,10 @@ bool AttachmentBrokerPrivilegedWin::SendAttachmentToProcess(
return false;
RouteDuplicatedHandle(new_wire_format);
return true;
+ }
+ case BrokerableAttachment::PLACEHOLDER:
+ NOTREACHED();
+ return false;
}
return false;
}
« no previous file with comments | « ipc/BUILD.gn ('k') | ipc/attachment_broker_unprivileged_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698