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

Side by Side Diff: third_party/WebKit/Source/modules/filesystem/LocalFileSystem.cpp

Issue 1978173002: Remove OwnPtr::release() calls in modules/ (part 2). (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 unified diff | Download patch
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2013 Google Inc. All rights reserved. 2 * Copyright (C) 2013 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 56
57 class CallbackWrapper final : public GarbageCollectedFinalized<CallbackWrapper> { 57 class CallbackWrapper final : public GarbageCollectedFinalized<CallbackWrapper> {
58 public: 58 public:
59 CallbackWrapper(PassOwnPtr<AsyncFileSystemCallbacks> c) 59 CallbackWrapper(PassOwnPtr<AsyncFileSystemCallbacks> c)
60 : m_callbacks(std::move(c)) 60 : m_callbacks(std::move(c))
61 { 61 {
62 } 62 }
63 virtual ~CallbackWrapper() { } 63 virtual ~CallbackWrapper() { }
64 PassOwnPtr<AsyncFileSystemCallbacks> release() 64 PassOwnPtr<AsyncFileSystemCallbacks> release()
65 { 65 {
66 return m_callbacks.release(); 66 return std::move(m_callbacks);
67 } 67 }
68 68
69 DEFINE_INLINE_TRACE() { } 69 DEFINE_INLINE_TRACE() { }
70 70
71 private: 71 private:
72 OwnPtr<AsyncFileSystemCallbacks> m_callbacks; 72 OwnPtr<AsyncFileSystemCallbacks> m_callbacks;
73 }; 73 };
74 74
75 LocalFileSystem* LocalFileSystem::create(PassOwnPtr<FileSystemClient> client) 75 LocalFileSystem* LocalFileSystem::create(PassOwnPtr<FileSystemClient> client)
76 { 76 {
(...skipping 136 matching lines...) Expand 10 before | Expand all | Expand 10 after
213 { 213 {
214 frame.provideSupplement(LocalFileSystem::supplementName(), LocalFileSystem:: create(std::move(client))); 214 frame.provideSupplement(LocalFileSystem::supplementName(), LocalFileSystem:: create(std::move(client)));
215 } 215 }
216 216
217 void provideLocalFileSystemToWorker(WorkerClients* clients, PassOwnPtr<FileSyste mClient> client) 217 void provideLocalFileSystemToWorker(WorkerClients* clients, PassOwnPtr<FileSyste mClient> client)
218 { 218 {
219 clients->provideSupplement(LocalFileSystem::supplementName(), LocalFileSyste m::create(std::move(client))); 219 clients->provideSupplement(LocalFileSystem::supplementName(), LocalFileSyste m::create(std::move(client)));
220 } 220 }
221 221
222 } // namespace blink 222 } // namespace blink
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698