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

Unified Diff: components/sessions/content/content_live_tab.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: Eliminate a use-after-free, Windows build fix 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: components/sessions/content/content_live_tab.cc
diff --git a/components/sessions/content/content_live_tab.cc b/components/sessions/content/content_live_tab.cc
index f8a7940432fe73bbce1b49f8e3a8f5abe7eb1579..7b1dff013eec0e035152e42481f4112a835542bc 100644
--- a/components/sessions/content/content_live_tab.cc
+++ b/components/sessions/content/content_live_tab.cc
@@ -58,8 +58,8 @@ int ContentLiveTab::GetEntryCount() {
std::unique_ptr<sessions::PlatformSpecificTabData>
ContentLiveTab::GetPlatformSpecificTabData() {
- return base::WrapUnique(
- new sessions::ContentPlatformSpecificTabData(web_contents()));
+ return base::MakeUnique<sessions::ContentPlatformSpecificTabData>(
+ web_contents());
}
void ContentLiveTab::LoadIfNecessary() {

Powered by Google App Engine
This is Rietveld 408576698