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

Unified Diff: ios/web/webui/web_ui_ios_impl.mm

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/web/webui/web_ui_ios_impl.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/webui/web_ui_ios_impl.mm
diff --git a/ios/web/webui/web_ui_ios_impl.mm b/ios/web/webui/web_ui_ios_impl.mm
index 395b4ab0f568eda1aba4c418b81e17ba1dd698d1..5822edb7111863bad9f78b22c26e7e1f890fdc77 100644
--- a/ios/web/webui/web_ui_ios_impl.mm
+++ b/ios/web/webui/web_ui_ios_impl.mm
@@ -143,11 +143,12 @@ void WebUIIOSImpl::ProcessWebUIIOSMessage(const GURL& source_url,
// WebUIIOSImpl, protected:
// -------------------------------------------------------
-void WebUIIOSImpl::AddMessageHandler(WebUIIOSMessageHandler* handler) {
+void WebUIIOSImpl::AddMessageHandler(
+ std::unique_ptr<WebUIIOSMessageHandler> handler) {
DCHECK(!handler->web_ui());
handler->set_web_ui(this);
handler->RegisterMessages();
- handlers_.push_back(handler);
+ handlers_.push_back(std::move(handler));
}
void WebUIIOSImpl::ExecuteJavascript(const base::string16& javascript) {
« no previous file with comments | « ios/web/webui/web_ui_ios_impl.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698