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

Unified Diff: ios/chrome/browser/ui/webui/popular_sites_internals_ui.cc

Issue 2617243002: Remove ScopedVector from ios/. (Closed)
Patch Set: rebase Created 3 years, 11 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: ios/chrome/browser/ui/webui/popular_sites_internals_ui.cc
diff --git a/ios/chrome/browser/ui/webui/popular_sites_internals_ui.cc b/ios/chrome/browser/ui/webui/popular_sites_internals_ui.cc
index c22c471567b4b28c593cad618dfb0c3b0e0a304b..e07a780365626132bcdd56f9fdd2c01c315b0b8a 100644
--- a/ios/chrome/browser/ui/webui/popular_sites_internals_ui.cc
+++ b/ios/chrome/browser/ui/webui/popular_sites_internals_ui.cc
@@ -4,6 +4,7 @@
#include "ios/chrome/browser/ui/webui/popular_sites_internals_ui.h"
+#include "base/memory/ptr_util.h"
#include "components/grit/components_resources.h"
#include "components/ntp_tiles/popular_sites.h"
#include "components/ntp_tiles/webui/popular_sites_internals_message_handler.h"
@@ -94,7 +95,8 @@ PopularSitesInternalsUI::PopularSitesInternalsUI(web::WebUIIOS* web_ui)
: web::WebUIIOSController(web_ui) {
web::WebUIIOSDataSource::Add(ios::ChromeBrowserState::FromWebUIIOS(web_ui),
CreatePopularSitesInternalsHTMLSource());
- web_ui->AddMessageHandler(new IOSPopularSitesInternalsMessageHandlerBridge);
+ web_ui->AddMessageHandler(
+ base::MakeUnique<IOSPopularSitesInternalsMessageHandlerBridge>());
}
PopularSitesInternalsUI::~PopularSitesInternalsUI() {}
« no previous file with comments | « ios/chrome/browser/ui/webui/physical_web_ui.cc ('k') | ios/chrome/browser/ui/webui/sync_internals/sync_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698