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

Unified Diff: ios/chrome/browser/ui/webui/physical_web_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
« no previous file with comments | « ios/chrome/browser/ui/webui/omaha_ui.cc ('k') | ios/chrome/browser/ui/webui/popular_sites_internals_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/chrome/browser/ui/webui/physical_web_ui.cc
diff --git a/ios/chrome/browser/ui/webui/physical_web_ui.cc b/ios/chrome/browser/ui/webui/physical_web_ui.cc
index d5a6127c34a90cd57c362bb26a973ec87085a0cb..98a5cceff0eb7e8d06f509601de4da1c070380b4 100644
--- a/ios/chrome/browser/ui/webui/physical_web_ui.cc
+++ b/ios/chrome/browser/ui/webui/physical_web_ui.cc
@@ -5,6 +5,7 @@
#include "ios/chrome/browser/ui/webui/physical_web_ui.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/metrics/user_metrics.h"
#include "components/grit/components_resources.h"
#include "components/physical_web/data_source/physical_web_data_source.h"
@@ -96,8 +97,7 @@ class PhysicalWebDOMHandler : public web::WebUIIOSMessageHandler {
PhysicalWebUI::PhysicalWebUI(web::WebUIIOS* web_ui)
: web::WebUIIOSController(web_ui) {
- PhysicalWebDOMHandler* handler = new PhysicalWebDOMHandler();
- web_ui->AddMessageHandler(handler);
+ web_ui->AddMessageHandler(base::MakeUnique<PhysicalWebDOMHandler>());
web::WebUIIOSDataSource::Add(ios::ChromeBrowserState::FromWebUIIOS(web_ui),
CreatePhysicalWebUIDataSource());
« no previous file with comments | « ios/chrome/browser/ui/webui/omaha_ui.cc ('k') | ios/chrome/browser/ui/webui/popular_sites_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698