Index: ipc/attachment_broker_privileged.cc |
diff --git a/ipc/attachment_broker_privileged.cc b/ipc/attachment_broker_privileged.cc |
index 900679862937a8abf00e12458c45ce46a5d21061..85c1ac949cd858704effd0cb8dba4b4cb6ffefaf 100644 |
--- a/ipc/attachment_broker_privileged.cc |
+++ b/ipc/attachment_broker_privileged.cc |
@@ -67,7 +67,9 @@ |
// the global broker. |
class AttachmentBrokerMakeOnce { |
public: |
- AttachmentBrokerMakeOnce() : attachment_broker_(CreateBroker()) {} |
+ AttachmentBrokerMakeOnce() { |
+ attachment_broker_.reset(CreateBroker().release()); |
+ } |
private: |
scoped_ptr<IPC::AttachmentBrokerPrivileged> attachment_broker_; |
@@ -126,10 +128,6 @@ |
endpoints_.erase(it); |
} |
-bool AttachmentBrokerPrivileged::IsPrivilegedBroker() { |
- return true; |
-} |
- |
Sender* AttachmentBrokerPrivileged::GetSenderWithProcessId(base::ProcessId id) { |
get_lock()->AssertAcquired(); |
auto it = std::find_if(endpoints_.begin(), endpoints_.end(), |