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

Unified Diff: chrome/browser/profiles/profile_info_cache.cc

Issue 1551503002: Convert Pass()→std::move() in //chrome (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: chrome/browser/profiles/profile_info_cache.cc
diff --git a/chrome/browser/profiles/profile_info_cache.cc b/chrome/browser/profiles/profile_info_cache.cc
index a07b4ca8f24923f56a90ac23d193a01fac015f7d..76808333320a80ff6630f5caf7418d87a37527ca 100644
--- a/chrome/browser/profiles/profile_info_cache.cc
+++ b/chrome/browser/profiles/profile_info_cache.cc
@@ -4,6 +4,8 @@
#include "chrome/browser/profiles/profile_info_cache.h"
+#include <utility>
+
#include "base/bind.h"
#include "base/files/file_util.h"
#include "base/i18n/case_conversion.h"
@@ -1372,7 +1374,7 @@ bool ProfileInfoCache::GetProfileAttributesWithPath(
// The profile info is in the cache but its entry isn't created yet, insert
// it in the map.
scoped_ptr<ProfileAttributesEntry> new_entry(new ProfileAttributesEntry());
- profile_attributes_entries_.add(path, new_entry.Pass());
+ profile_attributes_entries_.add(path, std::move(new_entry));
profile_attributes_entries_.get(path)->Initialize(this, path);
}

Powered by Google App Engine
This is Rietveld 408576698