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

Unified Diff: content/renderer/render_thread_impl.cc

Issue 8581004: Ensure that WebKit is initialized before making calls to it. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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: content/renderer/render_thread_impl.cc
diff --git a/content/renderer/render_thread_impl.cc b/content/renderer/render_thread_impl.cc
index a47ea0cabcb928515ae5a1c599a926e35c2ab0b3..72895b6f2d5cf1b6bcfbd9ef7d5d176f54683874 100644
--- a/content/renderer/render_thread_impl.cc
+++ b/content/renderer/render_thread_impl.cc
@@ -631,8 +631,10 @@ void RenderThreadImpl::OnSetZoomLevelForCurrentURL(const GURL& url,
void RenderThreadImpl::OnDOMStorageEvent(
const DOMStorageMsg_Event_Params& params) {
- if (!dom_storage_event_dispatcher_.get())
+ if (!dom_storage_event_dispatcher_.get()) {
+ EnsureWebKitInitialized();
dom_storage_event_dispatcher_.reset(WebStorageEventDispatcher::create());
+ }
dom_storage_event_dispatcher_->dispatchStorageEvent(params.key,
params.old_value, params.new_value, params.origin, params.url,
params.storage_type == DOM_STORAGE_LOCAL);
« 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