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

Unified Diff: chrome/browser/sessions/session_service_test_helper.h

Issue 500143002: Fixes possible use after free in SessionService (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: remove friend Created 6 years, 4 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 | « chrome/browser/sessions/session_service.cc ('k') | chrome/browser/sessions/session_service_test_helper.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/session_service_test_helper.h
diff --git a/chrome/browser/sessions/session_service_test_helper.h b/chrome/browser/sessions/session_service_test_helper.h
index 7f176c727bec3dc074fe646c10b17453f316935f..8daadd8e5773ba06b3d276246816403989d455b7 100644
--- a/chrome/browser/sessions/session_service_test_helper.h
+++ b/chrome/browser/sessions/session_service_test_helper.h
@@ -10,6 +10,7 @@
#include "base/basictypes.h"
#include "base/memory/scoped_ptr.h"
+#include "base/message_loop/message_loop.h"
#include "components/sessions/session_id.h"
class SessionBackend;
@@ -18,6 +19,10 @@ class SessionService;
struct SessionTab;
struct SessionWindow;
+namespace base {
+class RunLoop;
+}
+
namespace sessions {
class SerializedNavigationEntry;
}
@@ -76,6 +81,9 @@ class SessionServiceTestHelper {
SessionBackend* backend();
+ void RunTaskOnBackendThread(const tracked_objects::Location& from_here,
+ const base::Closure& task);
+
private:
scoped_ptr<SessionService> service_;
« no previous file with comments | « chrome/browser/sessions/session_service.cc ('k') | chrome/browser/sessions/session_service_test_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698