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

Unified Diff: chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc

Issue 1940153002: Use std::unique_ptr to express ownership of base::Value in PolicyMap::Entry (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: another-fix 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc
diff --git a/chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc b/chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc
index 0851c9cc78782707f0e64a182ab2aea2e891e262..96be7de4af904b41661bde614e93b09ed823a07f 100644
--- a/chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc
+++ b/chrome/browser/chromeos/extensions/device_local_account_external_policy_loader_unittest.cc
@@ -5,6 +5,7 @@
#include "chrome/browser/chromeos/extensions/device_local_account_external_policy_loader.h"
#include <string>
+#include <utility>
#include "base/callback.h"
#include "base/files/file_util.h"
@@ -183,10 +184,8 @@ void DeviceLocalAccountExternalPolicyLoaderTest::SetForceInstallListPolicy() {
extension_urls::GetWebstoreUpdateUrl().spec().c_str()));
store_.policy_map_.Set(policy::key::kExtensionInstallForcelist,
policy::POLICY_LEVEL_MANDATORY,
- policy::POLICY_SCOPE_USER,
- policy::POLICY_SOURCE_CLOUD,
- forcelist.release(),
- NULL);
+ policy::POLICY_SCOPE_USER, policy::POLICY_SOURCE_CLOUD,
+ std::move(forcelist), nullptr);
store_.NotifyStoreLoaded();
}
« no previous file with comments | « chrome/browser/chromeos/arc/arc_policy_bridge_unittest.cc ('k') | chrome/browser/chromeos/login/saml/saml_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698