Index: chrome/browser/sessions/persistent_tab_restore_service_browsertest.cc |
diff --git a/chrome/browser/sessions/persistent_tab_restore_service_browsertest.cc b/chrome/browser/sessions/persistent_tab_restore_service_browsertest.cc |
index a196c7b409872fd37139b7cbc88682c293d95ab5..5c76b35509b13a041bd5744e7d3186a166257a0a 100644 |
--- a/chrome/browser/sessions/persistent_tab_restore_service_browsertest.cc |
+++ b/chrome/browser/sessions/persistent_tab_restore_service_browsertest.cc |
@@ -38,12 +38,11 @@ IN_PROC_BROWSER_TEST_F(PersistentTabRestoreServiceBrowserTest, RestoreApp) { |
// One entry should be created. |
ASSERT_EQ(1U, trs->entries().size()); |
const sessions::TabRestoreService::Entry* restored_entry = |
- trs->entries().front(); |
+ trs->entries().front().get(); |
// It should be a window with an app. |
ASSERT_EQ(sessions::TabRestoreService::WINDOW, restored_entry->type); |
- const Window* restored_window = |
- static_cast<const Window*>(restored_entry); |
+ const Window* restored_window = static_cast<const Window*>(restored_entry); |
EXPECT_EQ(app_name, restored_window->app_name); |
} |