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

Unified Diff: components/sessions/content/content_live_tab.cc

Issue 1912843002: Convert //components/sessions from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 8 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 d660712b13b6799a56b75b2f72b22f7ad7a9c6dc..f8a7940432fe73bbce1b49f8e3a8f5abe7eb1579 100644
--- a/components/sessions/content/content_live_tab.cc
+++ b/components/sessions/content/content_live_tab.cc
@@ -3,6 +3,8 @@
// found in the LICENSE file.
#include "components/sessions/content/content_live_tab.h"
+
+#include "base/memory/ptr_util.h"
#include "components/sessions/content/content_platform_specific_tab_data.h"
namespace {
@@ -54,9 +56,9 @@ int ContentLiveTab::GetEntryCount() {
return navigation_controller().GetEntryCount();
}
-scoped_ptr<sessions::PlatformSpecificTabData>
+std::unique_ptr<sessions::PlatformSpecificTabData>
ContentLiveTab::GetPlatformSpecificTabData() {
- return make_scoped_ptr(
+ return base::WrapUnique(
new sessions::ContentPlatformSpecificTabData(web_contents()));
}
« no previous file with comments | « components/sessions/content/content_live_tab.h ('k') | components/sessions/content/content_platform_specific_tab_data.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698