Index: chrome/browser/sessions/tab_restore_service.cc |
diff --git a/chrome/browser/sessions/tab_restore_service.cc b/chrome/browser/sessions/tab_restore_service.cc |
index 7391612254b6de6ed577119aa4d8e6b93bd4d86e..2cc53e35947f66b56fce61b43ebf1fac50588577 100644 |
--- a/chrome/browser/sessions/tab_restore_service.cc |
+++ b/chrome/browser/sessions/tab_restore_service.cc |
@@ -8,6 +8,8 @@ |
#include <iterator> |
#include <map> |
+#include "base/bind.h" |
+#include "base/bind_helpers.h" |
#include "base/callback.h" |
#include "base/memory/scoped_vector.h" |
#include "base/metrics/histogram.h" |
@@ -439,7 +441,8 @@ void TabRestoreService::LoadTabsFromLastSession() { |
// crash (the call to GetLastSession above requests those). |
ScheduleGetLastSessionCommands( |
new InternalGetCommandsRequest( |
- NewCallback(this, &TabRestoreService::OnGotLastSessionCommands)), |
+ base::Bind(&TabRestoreService::OnGotLastSessionCommands, |
+ base::Unretained(this))), |
&load_consumer_); |
} |