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

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

Issue 2200993004: Make TabRestoreService::Entry noncopyable and fix up surrounding code. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@tab-test-cleanup
Patch Set: Get session ID from entries, take tabs' active status directly instead of an index Created 4 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/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);
}

Powered by Google App Engine
This is Rietveld 408576698