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

Unified Diff: chrome/renderer/extensions/dispatcher.cc

Issue 154113008: Switch from WebDocument::insertUserStyleSheet() to insertStyleSheet(). (Closed) Base URL: http://chromium.googlesource.com/chromium/src.git@master
Patch Set: split line Created 6 years, 10 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 | « no previous file | chrome/renderer/extensions/user_script_scheduler.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/dispatcher.cc
diff --git a/chrome/renderer/extensions/dispatcher.cc b/chrome/renderer/extensions/dispatcher.cc
index 511a92dcc8669751a95cbd1f6289395e0ba51fe9..efec6f00ec2d69b78286151e5e256552e423d5b4 100644
--- a/chrome/renderer/extensions/dispatcher.cc
+++ b/chrome/renderer/extensions/dispatcher.cc
@@ -1301,8 +1301,7 @@ void Dispatcher::DidCreateDocumentElement(blink::WebFrame* frame) {
"$FONTFAMILY", system_font_family_);
ReplaceFirstSubstringAfterOffset(&stylesheet, 0,
"$FONTSIZE", system_font_size_);
- frame->document().insertUserStyleSheet(
- WebString::fromUTF8(stylesheet), WebDocument::UserStyleAuthorLevel);
+ frame->document().insertStyleSheet(WebString::fromUTF8(stylesheet));
}
content_watcher_->DidCreateDocumentElement(frame);
« no previous file with comments | « no previous file | chrome/renderer/extensions/user_script_scheduler.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698