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

Unified Diff: chrome/renderer/render_view.cc

Issue 204022: ExtensionShelf now uses the BookmarkExtensionBackground, just like the Bookma... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 11 years, 3 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 | « chrome/renderer/render_view.h ('k') | chrome/renderer/user_script_slave.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/render_view.cc
===================================================================
--- chrome/renderer/render_view.cc (revision 26222)
+++ chrome/renderer/render_view.cc (working copy)
@@ -2734,12 +2734,13 @@
}
void RenderView::InsertCSS(const std::wstring& frame_xpath,
- const std::string& css) {
+ const std::string& css,
+ const std::string& id) {
WebFrame* web_frame = GetChildFrame(frame_xpath);
if (!web_frame)
return;
- web_frame->insertStyleText(WebString::fromUTF8(css));
+ web_frame->insertStyleText(WebString::fromUTF8(css), WebString::fromUTF8(id));
}
void RenderView::OnScriptEvalRequest(const std::wstring& frame_xpath,
@@ -2748,8 +2749,9 @@
}
void RenderView::OnCSSInsertRequest(const std::wstring& frame_xpath,
- const std::string& css) {
- InsertCSS(frame_xpath, css);
+ const std::string& css,
+ const std::string& id) {
+ InsertCSS(frame_xpath, css, id);
// Notify RenderViewHost that css has been inserted into the frame.
Send(new ViewHostMsg_OnCSSInserted(routing_id_));
« no previous file with comments | « chrome/renderer/render_view.h ('k') | chrome/renderer/user_script_slave.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698