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

Unified Diff: ipc/attachment_broker_privileged.cc

Issue 1704743002: Revert of Clean up public interface of AttachmentBrokerUnprivileged. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/attachment_broker_privileged.h ('k') | ipc/attachment_broker_privileged_win_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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(),
« no previous file with comments | « ipc/attachment_broker_privileged.h ('k') | ipc/attachment_broker_privileged_win_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698