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

Unified Diff: Source/web/WebDevToolsAgentImpl.h

Issue 26450004: Cleanup: Adding more conversion helper interfaces. (Closed) Base URL: https://chromium.googlesource.com/chromium/blink.git@master
Patch Set: Created 7 years, 2 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
Index: Source/web/WebDevToolsAgentImpl.h
diff --git a/Source/web/WebDevToolsAgentImpl.h b/Source/web/WebDevToolsAgentImpl.h
index afa0b9f3412946bb74ed9ec8bcb1236f6263e3cb..199f8e0afedfcb09ba9003c87ea3c3bfefe2f579 100644
--- a/Source/web/WebDevToolsAgentImpl.h
+++ b/Source/web/WebDevToolsAgentImpl.h
@@ -136,6 +136,13 @@ private:
OwnPtr<DeviceMetricsSupport> m_metricsSupport;
};
+inline WebDevToolsAgentImpl* toWebDevToolsAgentImpl(WebDevToolsAgent* agent)
+{
+ // WebDevToolsAgentImpl is the only implementation of WebDevToolsAgent, so
+ // no further checking required.
+ return static_cast<WebDevToolsAgentImpl*>(agent);
+}
+
} // namespace WebKit
#endif

Powered by Google App Engine
This is Rietveld 408576698