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

Unified Diff: third_party/WebKit/Source/bindings/core/v8/WindowProxyManager.cpp

Issue 1878943003: Remove RawPtr from bindings/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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
Index: third_party/WebKit/Source/bindings/core/v8/WindowProxyManager.cpp
diff --git a/third_party/WebKit/Source/bindings/core/v8/WindowProxyManager.cpp b/third_party/WebKit/Source/bindings/core/v8/WindowProxyManager.cpp
index 8c5536c047fe0aac36213f4ce22045938598f347..49f785081720b4772567ab3ef3e1e6d3a702e6d2 100644
--- a/third_party/WebKit/Source/bindings/core/v8/WindowProxyManager.cpp
+++ b/third_party/WebKit/Source/bindings/core/v8/WindowProxyManager.cpp
@@ -36,9 +36,9 @@ WindowProxy* WindowProxyManager::windowProxy(DOMWrapperWorld& world)
if (iter != m_isolatedWorlds.end()) {
windowProxy = iter->value.get();
} else {
- RawPtr<WindowProxy> isolatedWorldWindowProxy = WindowProxy::create(m_isolate, m_frame, world);
- windowProxy = isolatedWorldWindowProxy.get();
- m_isolatedWorlds.set(world.worldId(), isolatedWorldWindowProxy.release());
+ WindowProxy* isolatedWorldWindowProxy = WindowProxy::create(m_isolate, m_frame, world);
sof 2016/04/12 07:29:54 Shorten out the |isloatedWorldWindowProxy| interme
+ windowProxy = isolatedWorldWindowProxy;
+ m_isolatedWorlds.set(world.worldId(), isolatedWorldWindowProxy);
}
}
return windowProxy;

Powered by Google App Engine
This is Rietveld 408576698