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

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

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
Index: chrome/browser/sessions/session_service_test_helper.cc
diff --git a/chrome/browser/sessions/session_service_test_helper.cc b/chrome/browser/sessions/session_service_test_helper.cc
index e9ee6da28fe834e0798193c5a35279f563d21cdb..0a1f98289f14d9709a01949f75a5ae72ce0017d5 100644
--- a/chrome/browser/sessions/session_service_test_helper.cc
+++ b/chrome/browser/sessions/session_service_test_helper.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/sessions/session_service_test_helper.h"
#include "base/memory/scoped_vector.h"
+#include "base/message_loop/message_loop.h"
#include "chrome/browser/sessions/session_backend.h"
#include "chrome/browser/sessions/session_service.h"
#include "chrome/browser/sessions/session_types.h"
@@ -111,3 +112,8 @@ void SessionServiceTestHelper::SetService(SessionService* service) {
content::BrowserThread::GetBlockingPool()->FlushForTesting();
}
+void SessionServiceTestHelper::RunTaskOnBackendThread(
+ const tracked_objects::Location& from_here,
+ const base::Closure& task) {
+ service_->RunTaskOnBackendThread(from_here, task);
+}
« no previous file with comments | « chrome/browser/sessions/session_service_test_helper.h ('k') | chrome/browser/sessions/session_service_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698