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

Side by Side Diff: storage/browser/fileapi/transient_file_util.cc

Issue 1546243002: Convert Pass()→std::move() in //storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « storage/browser/fileapi/timed_task_helper.cc ('k') | storage/browser/quota/quota_manager.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "storage/browser/fileapi/transient_file_util.h" 5 #include "storage/browser/fileapi/transient_file_util.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/files/file_path.h" 10 #include "base/files/file_path.h"
(...skipping 31 matching lines...) Expand 10 before | Expand all | Expand 10 after
42 DCHECK(!platform_path->empty()); 42 DCHECK(!platform_path->empty());
43 DCHECK(!url.filesystem_id().empty()); 43 DCHECK(!url.filesystem_id().empty());
44 44
45 ScopedFile scoped_file( 45 ScopedFile scoped_file(
46 *platform_path, 46 *platform_path,
47 ScopedFile::DELETE_ON_SCOPE_OUT, 47 ScopedFile::DELETE_ON_SCOPE_OUT,
48 context->task_runner()); 48 context->task_runner());
49 scoped_file.AddScopeOutCallback( 49 scoped_file.AddScopeOutCallback(
50 base::Bind(&RevokeFileSystem, url.filesystem_id()), NULL); 50 base::Bind(&RevokeFileSystem, url.filesystem_id()), NULL);
51 51
52 return scoped_file.Pass(); 52 return scoped_file;
53 } 53 }
54 54
55 } // namespace storage 55 } // namespace storage
OLDNEW
« no previous file with comments | « storage/browser/fileapi/timed_task_helper.cc ('k') | storage/browser/quota/quota_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698