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

Unified Diff: third_party/WebKit/Source/core/workers/WorkerScriptLoader.h

Issue 1980893002: Remove OwnPtr::release() calls in core/ (part 4). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 7 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/core/workers/WorkerScriptLoader.h
diff --git a/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h b/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h
index 26cce14b4154c9af28861f8d3fee789f79928292..0b46670808c23e59824e4be8085d8dd682343aa3 100644
--- a/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h
+++ b/third_party/WebKit/Source/core/workers/WorkerScriptLoader.h
@@ -76,7 +76,7 @@ public:
unsigned long identifier() const { return m_identifier; }
long long appCacheID() const { return m_appCacheID; }
- PassOwnPtr<Vector<char>> releaseCachedMetadata() { return m_cachedMetadata.release(); }
+ PassOwnPtr<Vector<char>> releaseCachedMetadata() { return std::move(m_cachedMetadata); }
const Vector<char>* cachedMetadata() const { return m_cachedMetadata.get(); }
ContentSecurityPolicy* contentSecurityPolicy() { return m_contentSecurityPolicy.get(); }

Powered by Google App Engine
This is Rietveld 408576698