Commit a75851a7 authored by yutak@chromium.org's avatar yutak@chromium.org

Oilpan: Simple clean-up in FrameLoaderClientImplTest.

An accessor function called frameLoaderClientImpl(), added in
https://codereview.chromium.org/1314703003/, was actually not necessary.

BUG=509911
R=haraken@chromium.org, oilpan-reviews@chromium.org, sigbjornf@opera.com

Review URL: https://codereview.chromium.org/1313083005

git-svn-id: svn://svn.chromium.org/blink/trunk@201210 bbb929c8-8fbe-4397-9dbb-9b2b20218538
parent 163db0e0
...@@ -86,15 +86,14 @@ protected: ...@@ -86,15 +86,14 @@ protected:
{ {
// The test always returns the same user agent, regardless of the URL passed in. // The test always returns the same user agent, regardless of the URL passed in.
KURL dummyURL(ParsedURLString, "about:blank"); KURL dummyURL(ParsedURLString, "about:blank");
WTF::CString userAgent = frameLoaderClientImpl().userAgent(dummyURL).utf8(); WTF::CString userAgent = frameLoaderClient().userAgent(dummyURL).utf8();
return WebString::fromUTF8(userAgent.data(), userAgent.length()); return WebString::fromUTF8(userAgent.data(), userAgent.length());
} }
WebLocalFrameImpl* mainFrame() { return toWebLocalFrameImpl(m_webView->mainFrame()); } WebLocalFrameImpl* mainFrame() { return toWebLocalFrameImpl(m_webView->mainFrame()); }
Document& document() { return *toWebLocalFrameImpl(m_mainFrame)->frame()->document(); } Document& document() { return *toWebLocalFrameImpl(m_mainFrame)->frame()->document(); }
MockWebFrameClient& webFrameClient() { return m_webFrameClient; } MockWebFrameClient& webFrameClient() { return m_webFrameClient; }
FrameLoaderClient& frameLoaderClient() { return frameLoaderClientImpl(); } FrameLoaderClient& frameLoaderClient() { return *toFrameLoaderClientImpl(toWebLocalFrameImpl(m_webView->mainFrame())->frame()->loader().client()); }
FrameLoaderClientImpl& frameLoaderClientImpl() { return *toFrameLoaderClientImpl(toWebLocalFrameImpl(m_webView->mainFrame())->frame()->loader().client()); }
private: private:
MockWebFrameClient m_webFrameClient; MockWebFrameClient m_webFrameClient;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment