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

Unified Diff: ios/web/public/web_client.h

Issue 2647943004: Return unique_ptr from WebClient::CreateWebMainParts() (Closed)
Patch Set: Respond to comments. 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/app/web_main_loop.mm ('k') | ios/web/public/web_client.mm » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: ios/web/public/web_client.h
diff --git a/ios/web/public/web_client.h b/ios/web/public/web_client.h
index a852a760058eaaa86d52960f3a24185b4aca0fb7..ffad5f88a7f6cda56eaacfed69ced0e63a6d95d4 100644
--- a/ios/web/public/web_client.h
+++ b/ios/web/public/web_client.h
@@ -5,6 +5,7 @@
#ifndef IOS_WEB_PUBLIC_WEB_CLIENT_H_
#define IOS_WEB_PUBLIC_WEB_CLIENT_H_
+#include <memory>
#include <string>
#include <vector>
@@ -50,7 +51,7 @@ class WebClient {
// Allows the embedder to set a custom WebMainParts implementation for the
// browser startup code.
- virtual WebMainParts* CreateWebMainParts();
+ virtual std::unique_ptr<WebMainParts> CreateWebMainParts();
// Gives the embedder a chance to perform tasks before a web view is created.
virtual void PreWebViewCreation() const {}
« no previous file with comments | « ios/web/app/web_main_loop.mm ('k') | ios/web/public/web_client.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698