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

Unified Diff: chrome/browser/safe_browsing/safe_browsing_navigation_observer.cc

Issue 2847353002: Switch SupportsUserData uses to use unique_ptr. (Closed)
Patch Set: fix Created 3 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
« no previous file with comments | « chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/safe_browsing/safe_browsing_navigation_observer.cc
diff --git a/chrome/browser/safe_browsing/safe_browsing_navigation_observer.cc b/chrome/browser/safe_browsing/safe_browsing_navigation_observer.cc
index dc296f1574d22d4afec82ab106e0d626b23654a4..d625c3430698a0868546d24325e9c9654089ddda 100644
--- a/chrome/browser/safe_browsing/safe_browsing_navigation_observer.cc
+++ b/chrome/browser/safe_browsing/safe_browsing_navigation_observer.cc
@@ -79,10 +79,9 @@ void SafeBrowsingNavigationObserver::MaybeCreateForWebContents(
Profile::FromBrowserContext(web_contents->GetBrowserContext()))) {
web_contents->SetUserData(
kWebContentsUserDataKey,
- new SafeBrowsingNavigationObserver(
- web_contents,
- g_browser_process->safe_browsing_service()
- ->navigation_observer_manager()));
+ base::MakeUnique<SafeBrowsingNavigationObserver>(
+ web_contents, g_browser_process->safe_browsing_service()
+ ->navigation_observer_manager()));
}
}
« no previous file with comments | « chrome/browser/safe_browsing/incident_reporting/download_metadata_manager.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698