Index: content/browser/android/content_view_core_impl.cc |
diff --git a/content/browser/android/content_view_core_impl.cc b/content/browser/android/content_view_core_impl.cc |
index 4bb56aae1985baf38f5de2f903477838ca0ecdc2..ef2249a81c07462558a830d2757cd6207168af3b 100644 |
--- a/content/browser/android/content_view_core_impl.cc |
+++ b/content/browser/android/content_view_core_impl.cc |
@@ -1211,6 +1211,16 @@ void ContentViewCoreImpl::ClearHistory(JNIEnv* env, jobject obj) { |
web_contents_->GetController().PruneAllButLastCommitted(); |
} |
+void ContentViewCoreImpl::AddStyleSheetByURL( |
+ JNIEnv* env, jobject obj, jstring url) { |
+ if (!web_contents_) |
+ return; |
+ |
+ web_contents_->GetMainFrame()->Send(new FrameMsg_AddStyleSheetByURL( |
+ web_contents_->GetMainFrame()->GetRoutingID(), |
+ ConvertJavaStringToUTF8(env, url))); |
+} |
+ |
void ContentViewCoreImpl::SetAllowJavascriptInterfacesInspection( |
JNIEnv* env, |
jobject obj, |