commit | 4fe53addb638376d73171526eeeecb83b6fe3370 | [log] [tgz] |
---|---|---|
author | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Tue Apr 08 19:53:36 2014 |
committer | [email protected] <[email protected]@0039d316-1c4b-4281-b951-d872f2087c98> | Tue Apr 08 19:53:36 2014 |
tree | 7208a0125adb5bd6ad0f57f988a6b021982084f0 | |
parent | 74a5f5af9288b9dea84ce1f27323dd785591632d [diff] [blame] |
Move InsertCSS from RenderFrameHost to WebContents. BUG=304341 [email protected] Review URL: https://codereview.chromium.org/228603005 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@262486 0039d316-1c4b-4281-b951-d872f2087c98
diff --git a/content/browser/web_contents/web_contents_impl.cc b/content/browser/web_contents/web_contents_impl.cc index 623cb46..2090f55c 100644 --- a/content/browser/web_contents/web_contents_impl.cc +++ b/content/browser/web_contents/web_contents_impl.cc
@@ -2219,6 +2219,11 @@ Send(new ViewMsg_StopFinding(GetRoutingID(), action)); } +void WebContentsImpl::InsertCSS(const std::string& css) { + GetMainFrame()->Send(new FrameMsg_CSSInsertRequest( + GetMainFrame()->GetRoutingID(), css)); +} + bool WebContentsImpl::FocusLocationBarByDefault() { NavigationEntry* entry = controller_.GetVisibleEntry(); if (entry && entry->GetURL() == GURL(kAboutBlankURL))