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

Unified Diff: sandbox/win/tests/common/controller.h

Issue 1378523002: Use scoped_refptr and RefCountedThreadSafe for TargetPolicy. Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Updated patchset dependency Created 5 years, 1 month 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 | « sandbox/win/src/sandbox_policy_base.cc ('k') | sandbox/win/tests/common/controller.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: sandbox/win/tests/common/controller.h
diff --git a/sandbox/win/tests/common/controller.h b/sandbox/win/tests/common/controller.h
index a6498ed12e2a796d440ba1f5252d0b246094c67b..c7265efa6c999191f0358cbae05eb37c8ba10fe1 100644
--- a/sandbox/win/tests/common/controller.h
+++ b/sandbox/win/tests/common/controller.h
@@ -8,6 +8,7 @@
#include <windows.h>
#include <string>
+#include "base/memory/ref_counted.h"
#include "base/strings/string16.h"
#include "base/win/scoped_handle.h"
#include "sandbox/win/src/sandbox.h"
@@ -134,7 +135,7 @@ class TestRunner {
int InternalRunTest(const wchar_t* command);
BrokerServices* broker_;
- TargetPolicy* policy_;
+ scoped_refptr<TargetPolicy> policy_;
DWORD timeout_;
SboxTestsState state_;
bool is_init_;
« no previous file with comments | « sandbox/win/src/sandbox_policy_base.cc ('k') | sandbox/win/tests/common/controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698