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

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

Issue 10958029: Ensure WebKit is initialized in the case Loaded IPC arrives before UpdateUserScripts (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 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 | « no previous file | no next file » | 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 8591bdad86d4663c95ea5a431f94c3e84b38afde..4f9cc2c519aa104f0f4787de62584a258ac05c0f 100644
--- a/chrome/renderer/extensions/dispatcher.cc
+++ b/chrome/renderer/extensions/dispatcher.cc
@@ -494,6 +494,7 @@ void Dispatcher::OnLoaded(
// TODO(miket): consider enhancing WebView to allow removing
// single stylesheets, or else to edit the pattern set associated
// with one.
+ RenderThread::Get()->EnsureWebKitInitialized();
WebVector<WebString> patterns;
patterns.assign(platform_app_patterns);
WebView::addUserStyleSheet(
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698