Chromium Code Reviews| Index: Source/web/WebDevToolsAgentImpl.h |
| diff --git a/Source/web/WebDevToolsAgentImpl.h b/Source/web/WebDevToolsAgentImpl.h |
| index afa0b9f3412946bb74ed9ec8bcb1236f6263e3cb..5c5e06f2ea90b8691d7c362af5ab8a84bf38048d 100644 |
| --- a/Source/web/WebDevToolsAgentImpl.h |
| +++ b/Source/web/WebDevToolsAgentImpl.h |
| @@ -136,6 +136,12 @@ private: |
| OwnPtr<DeviceMetricsSupport> m_metricsSupport; |
| }; |
| +inline WebDevToolsAgentImpl* toWebDevToolsAgentImpl(WebDevToolsAgent* agent) |
| +{ |
| + ASSERT_WITH_SECURITY_IMPLICATION(!agent); |
|
tkent
2013/10/08 05:24:04
Null pointer has no security implication.
Please d
|
| + return static_cast<WebDevToolsAgentImpl*>(agent); |
| +} |
| + |
| } // namespace WebKit |
| #endif |