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

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

Issue 404012: Ensure that the refcount on InternalGetCommandRequest stays non-zero through a PostTask (Closed)
Patch Set: Created 11 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/sessions/base_session_service.cc
diff --git a/chrome/browser/sessions/base_session_service.cc b/chrome/browser/sessions/base_session_service.cc
index fcafbe08abed06ade4b88946751158c1a133eb49..64b39492174b1e110b88c291b8f7e7f3cfd26912 100644
--- a/chrome/browser/sessions/base_session_service.cc
+++ b/chrome/browser/sessions/base_session_service.cc
@@ -229,7 +229,7 @@ BaseSessionService::Handle BaseSessionService::ScheduleGetLastSessionCommands(
AddRequest(request, consumer);
if (backend_thread()) {
backend_thread()->message_loop()->PostTask(FROM_HERE, NewRunnableMethod(
- backend(), &SessionBackend::ReadLastSessionCommands, request));
+ backend(), &SessionBackend::ReadLastSessionCommands, request_wrapper));
} else {
backend()->ReadLastSessionCommands(request);
}
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698