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

Unified Diff: chrome/browser/supervised_user/supervised_user_navigation_observer.cc

Issue 1878143002: Convert //chrome/browser/supervised_user 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: chrome/browser/supervised_user/supervised_user_navigation_observer.cc
diff --git a/chrome/browser/supervised_user/supervised_user_navigation_observer.cc b/chrome/browser/supervised_user/supervised_user_navigation_observer.cc
index a0840f7c99c25747ec76055ec563c5900b2fd66f..e354bbba7e08092e500b0c4573955835fe15b43b 100644
--- a/chrome/browser/supervised_user/supervised_user_navigation_observer.cc
+++ b/chrome/browser/supervised_user/supervised_user_navigation_observer.cc
@@ -81,10 +81,10 @@ void SupervisedUserNavigationObserver::OnRequestBlockedInternal(
if (history_service)
history_service->AddPage(add_page_args);
- scoped_ptr<NavigationEntry> entry(NavigationEntry::Create());
+ std::unique_ptr<NavigationEntry> entry(NavigationEntry::Create());
entry->SetVirtualURL(url);
entry->SetTimestamp(timestamp);
- scoped_ptr<sessions::SerializedNavigationEntry> serialized_entry(
+ std::unique_ptr<sessions::SerializedNavigationEntry> serialized_entry(
new sessions::SerializedNavigationEntry());
*serialized_entry =
sessions::ContentSerializedNavigationBuilder::FromNavigationEntry(

Powered by Google App Engine
This is Rietveld 408576698