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: ios/chrome/browser/ui/webui/flags_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/crashes_ui.cc ('k') | ios/chrome/browser/ui/webui/gcm/gcm_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/flags_ui.cc
diff --git a/ios/chrome/browser/ui/webui/flags_ui.cc b/ios/chrome/browser/ui/webui/flags_ui.cc
index 1ffd385c9004de59b0469d7251f4b57c191a77f4..f9246dfbfe810a3987dc39c39196cb6b322fb2cb 100644
--- a/ios/chrome/browser/ui/webui/flags_ui.cc
+++ b/ios/chrome/browser/ui/webui/flags_ui.cc
@@ -9,6 +9,7 @@
#include "base/bind.h"
#include "base/bind_helpers.h"
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/utf_string_conversions.h"
#include "base/values.h"
#include "components/flags_ui/flags_ui_constants.h"
@@ -212,7 +213,7 @@ BaseFlagsUI::BaseFlagsUI(web::WebUIIOS* web_ui, FlagsUIKind flags_ui_kind)
void BaseFlagsUI::Initialize(web::WebUIIOS* web_ui, FlagsUIKind flags_ui_kind) {
FlagsDOMHandler* handler = new FlagsDOMHandler();
- web_ui->AddMessageHandler(handler);
+ web_ui->AddMessageHandler(base::WrapUnique(handler));
flags_ui::FlagAccess flag_access = flags_ui::kOwnerAccessToFlags;
if (flags_ui_kind == FLAGS_UI_APPLE)
« no previous file with comments | « ios/chrome/browser/ui/webui/crashes_ui.cc ('k') | ios/chrome/browser/ui/webui/gcm/gcm_internals_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698