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

Unified Diff: storage/browser/database/database_tracker.cc

Issue 1546243002: Convert Pass()→std::move() in //storage (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years 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: storage/browser/database/database_tracker.cc
diff --git a/storage/browser/database/database_tracker.cc b/storage/browser/database/database_tracker.cc
index 6a10107d721d7bbdcbff93e0a2846181eecac535..42041c7869a5b2a21f21726fe85f9c1d39c663d4 100644
--- a/storage/browser/database/database_tracker.cc
+++ b/storage/browser/database/database_tracker.cc
@@ -5,8 +5,8 @@
#include "storage/browser/database/database_tracker.h"
#include <stdint.h>
-
#include <algorithm>
+#include <utility>
#include <vector>
#include "base/bind.h"
@@ -761,7 +761,7 @@ const base::File* DatabaseTracker::SaveIncognitoFile(
if (!file.IsValid())
return NULL;
- base::File* to_insert = new base::File(file.Pass());
+ base::File* to_insert = new base::File(std::move(file));
std::pair<FileHandlesMap::iterator, bool> rv =
incognito_file_handles_.insert(std::make_pair(vfs_file_name, to_insert));
DCHECK(rv.second);
« no previous file with comments | « storage/browser/blob/upload_blob_element_reader.cc ('k') | storage/browser/fileapi/async_file_util_adapter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698