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

Unified Diff: sandbox/win/src/broker_services.h

Issue 2646043002: Reland "Fix sandbox::PolicyBase leak" (Closed)
Patch Set: Created 3 years, 11 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
Index: sandbox/win/src/broker_services.h
diff --git a/sandbox/win/src/broker_services.h b/sandbox/win/src/broker_services.h
index 919478c4f8a9856a1caf9150a07b0fb2536ae946..3474caaf4b40803f5d8abc51ed398888615e225d 100644
--- a/sandbox/win/src/broker_services.h
+++ b/sandbox/win/src/broker_services.h
@@ -45,10 +45,10 @@ class BrokerServicesBase final : public BrokerServices,
// BrokerServices interface.
ResultCode Init() override;
- TargetPolicy* CreatePolicy() override;
+ scoped_refptr<TargetPolicy> CreatePolicy() override;
ResultCode SpawnTarget(const wchar_t* exe_path,
const wchar_t* command_line,
- TargetPolicy* policy,
+ scoped_refptr<TargetPolicy> policy,
ResultCode* last_warning,
DWORD* last_error,
PROCESS_INFORMATION* target) override;

Powered by Google App Engine
This is Rietveld 408576698