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

Unified Diff: WebKit/chromium/src/WebStorageEventDispatcherImpl.cpp

Issue 10012034: WebKit/WebCore DomStorage House cleaning (Closed) Base URL: http://svn.webkit.org/repository/webkit/trunk/Source/
Patch Set: Created 8 years, 8 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 | « WebKit/chromium/src/WebStorageAreaImpl.cpp ('k') | WebKit/chromium/src/WebStorageNamespaceImpl.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: WebKit/chromium/src/WebStorageEventDispatcherImpl.cpp
===================================================================
--- WebKit/chromium/src/WebStorageEventDispatcherImpl.cpp (revision 113961)
+++ WebKit/chromium/src/WebStorageEventDispatcherImpl.cpp (working copy)
@@ -34,7 +34,6 @@
#include "KURL.h"
#include "SecurityOrigin.h"
-#include "WebStorageAreaImpl.h"
#include "platform/WebURL.h"
#include <wtf/PassOwnPtr.h>
@@ -55,15 +54,11 @@
void WebStorageEventDispatcherImpl::dispatchStorageEvent(const WebString& key, const WebString& oldValue,
const WebString& newValue, const WebString& origin,
- const WebURL& passedInURL, bool isLocalStorage)
+ const WebURL& pageURL, bool isLocalStorage)
{
- // Hack for single-process mode and test shell.
- const WebURL* storageAreaImplURL = WebStorageAreaImpl::currentStorageEventURL();
- const WebURL& url = storageAreaImplURL ? *storageAreaImplURL : passedInURL;
-
WebCore::StorageType storageType = isLocalStorage ? WebCore::LocalStorage : WebCore::SessionStorage;
RefPtr<WebCore::SecurityOrigin> securityOrigin = WebCore::SecurityOrigin::createFromString(origin);
- m_eventDispatcher->dispatchStorageEvent(key, oldValue, newValue, securityOrigin.get(), url, storageType);
+ m_eventDispatcher->dispatchStorageEvent(key, oldValue, newValue, securityOrigin.get(), pageURL, storageType);
}
} // namespace WebKit
« no previous file with comments | « WebKit/chromium/src/WebStorageAreaImpl.cpp ('k') | WebKit/chromium/src/WebStorageNamespaceImpl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698