Index: chrome/browser/ui/browser_tab_restorer.cc |
diff --git a/chrome/browser/ui/browser_tab_restorer.cc b/chrome/browser/ui/browser_tab_restorer.cc |
index ad71aa64508ee27cf7343dfb0faee74af47d5622..35c440d7deb795d1cb93088125435ea928bf14a4 100644 |
--- a/chrome/browser/ui/browser_tab_restorer.cc |
+++ b/chrome/browser/ui/browser_tab_restorer.cc |
@@ -3,6 +3,7 @@ |
// found in the LICENSE file. |
#include "base/macros.h" |
+#include "base/memory/ptr_util.h" |
#include "base/metrics/user_metrics.h" |
#include "base/metrics/user_metrics_action.h" |
#include "base/supports_user_data.h" |
@@ -76,7 +77,8 @@ BrowserTabRestorer::BrowserTabRestorer(Browser* browser) |
DCHECK(!tab_restore_service_->IsLoaded()); |
tab_restore_service_->AddObserver(this); |
BrowserList::GetInstance()->AddObserver(this); |
- browser_->profile()->SetUserData(kBrowserTabRestorerKey, this); |
+ browser_->profile()->SetUserData(kBrowserTabRestorerKey, |
+ base::WrapUnique(this)); |
tab_restore_service_->LoadTabsFromLastSession(); |
} |