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

Unified Diff: chrome/browser/chromeos/policy/device_local_account.cc

Issue 2392693002: Rewrite simple uses of base::ListValue::Append(base::Value*) on CrOS. (Closed)
Patch Set: MakeUnique Created 4 years, 2 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: chrome/browser/chromeos/policy/device_local_account.cc
diff --git a/chrome/browser/chromeos/policy/device_local_account.cc b/chrome/browser/chromeos/policy/device_local_account.cc
index 194868a528a56788110b805120ecc05591c22831..b5dc8f4d270174fabf96b310b0f7f0eba9e53658 100644
--- a/chrome/browser/chromeos/policy/device_local_account.cc
+++ b/chrome/browser/chromeos/policy/device_local_account.cc
@@ -8,6 +8,7 @@
#include <memory>
#include <set>
+#include <utility>
#include "base/logging.h"
#include "base/macros.h"
@@ -121,7 +122,7 @@ void SetDeviceLocalAccounts(chromeos::OwnerSettingsServiceChromeOS* service,
it->kiosk_app_update_url);
}
}
- list.Append(entry.release());
+ list.Append(std::move(entry));
}
service->Set(chromeos::kAccountsPrefDeviceLocalAccounts, list);

Powered by Google App Engine
This is Rietveld 408576698