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

Unified Diff: chrome/renderer/extensions/user_script_scheduler.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 | « chrome/renderer/extensions/dispatcher.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/renderer/extensions/user_script_scheduler.cc
diff --git a/chrome/renderer/extensions/user_script_scheduler.cc b/chrome/renderer/extensions/user_script_scheduler.cc
index 0b20bcf40d12749f0a6ddf36a9d911177adcc34c..e8e49411a6b157a871b1ba00246cf3e6589b7aa3 100644
--- a/chrome/renderer/extensions/user_script_scheduler.cc
+++ b/chrome/renderer/extensions/user_script_scheduler.cc
@@ -238,10 +238,8 @@ void UserScriptScheduler::ExecuteCodeImpl(
result ? result : base::Value::CreateNullValue());
}
} else {
- child_frame->document().insertUserStyleSheet(
- WebString::fromUTF8(params.code),
- // Author level is consistent with WebView::injectStyleSheet.
- WebDocument::UserStyleAuthorLevel);
+ child_frame->document().insertStyleSheet(
+ WebString::fromUTF8(params.code));
}
}
« no previous file with comments | « chrome/renderer/extensions/dispatcher.cc ('k') | content/renderer/render_view_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698