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

Unified Diff: Source/modules/navigatorcontentutils/NavigatorContentUtils.h

Issue 218393003: Use OwnPtr|PassOwnPtr to pass a pointer of NavigatorContentUtilsClient instance (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 6 years, 9 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 | « no previous file | Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/navigatorcontentutils/NavigatorContentUtils.h
diff --git a/Source/modules/navigatorcontentutils/NavigatorContentUtils.h b/Source/modules/navigatorcontentutils/NavigatorContentUtils.h
index b1195872d1a1477c04ffa89d915e41551657589d..c4971b773893f1736397401cc797750746a47882 100644
--- a/Source/modules/navigatorcontentutils/NavigatorContentUtils.h
+++ b/Source/modules/navigatorcontentutils/NavigatorContentUtils.h
@@ -50,16 +50,16 @@ public:
static String isProtocolHandlerRegistered(Navigator&, const String& scheme, const String& url, ExceptionState&);
static void unregisterProtocolHandler(Navigator&, const String& scheme, const String& url, ExceptionState&);
- static PassRefPtr<NavigatorContentUtils> create(NavigatorContentUtilsClient*);
+ static PassRefPtr<NavigatorContentUtils> create(PassOwnPtr<NavigatorContentUtilsClient>);
private:
- explicit NavigatorContentUtils(NavigatorContentUtilsClient* client)
+ explicit NavigatorContentUtils(PassOwnPtr<NavigatorContentUtilsClient> client)
: m_client(client)
{ }
- NavigatorContentUtilsClient* client() { return m_client; }
+ NavigatorContentUtilsClient* client() { return m_client.get(); }
- NavigatorContentUtilsClient* m_client;
+ OwnPtr<NavigatorContentUtilsClient> m_client;
};
} // namespace WebCore
« no previous file with comments | « no previous file | Source/modules/navigatorcontentutils/NavigatorContentUtils.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698