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

Unified Diff: Source/core/inspector/InspectorDOMStorageAgent.cpp

Issue 476153002: DevTools: Make the way inspectorFrontend is referenced in agents consistent in all of them. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 6 years, 4 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 | « Source/core/inspector/InspectorDOMStorageAgent.h ('k') | Source/core/inspector/InspectorInspectorAgent.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/core/inspector/InspectorDOMStorageAgent.cpp
diff --git a/Source/core/inspector/InspectorDOMStorageAgent.cpp b/Source/core/inspector/InspectorDOMStorageAgent.cpp
index 3d0ff563518fbebcfe75a8bf54519b9051f35c94..cb0569870253962d1443e801beec2e859e2e9530 100644
--- a/Source/core/inspector/InspectorDOMStorageAgent.cpp
+++ b/Source/core/inspector/InspectorDOMStorageAgent.cpp
@@ -86,7 +86,7 @@ void InspectorDOMStorageAgent::trace(Visitor* visitor)
void InspectorDOMStorageAgent::setFrontend(InspectorFrontend* frontend)
{
- m_frontend = frontend;
+ m_frontend = frontend->domstorage();
}
void InspectorDOMStorageAgent::clearFrontend()
@@ -193,13 +193,13 @@ void InspectorDOMStorageAgent::didDispatchDOMStorageEvent(const String& key, con
RefPtr<TypeBuilder::DOMStorage::StorageId> id = storageId(securityOrigin, storageType == LocalStorage);
if (key.isNull())
- m_frontend->domstorage()->domStorageItemsCleared(id);
+ m_frontend->domStorageItemsCleared(id);
else if (newValue.isNull())
- m_frontend->domstorage()->domStorageItemRemoved(id, key);
+ m_frontend->domStorageItemRemoved(id, key);
else if (oldValue.isNull())
- m_frontend->domstorage()->domStorageItemAdded(id, key, newValue);
+ m_frontend->domStorageItemAdded(id, key, newValue);
else
- m_frontend->domstorage()->domStorageItemUpdated(id, key, oldValue, newValue);
+ m_frontend->domStorageItemUpdated(id, key, oldValue, newValue);
}
PassOwnPtrWillBeRawPtr<StorageArea> InspectorDOMStorageAgent::findStorageArea(ErrorString* errorString, const RefPtr<JSONObject>& storageId, LocalFrame*& targetFrame)
« no previous file with comments | « Source/core/inspector/InspectorDOMStorageAgent.h ('k') | Source/core/inspector/InspectorInspectorAgent.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698