Index: chrome/browser/extensions/api/file_system/file_system_api_unittest.cc |
diff --git a/chrome/browser/extensions/api/file_system/file_system_api_unittest.cc b/chrome/browser/extensions/api/file_system/file_system_api_unittest.cc |
index 62b2775b36d152bc668f537c4492d3e67d7689c8..69c0855f2b5699890c87c5aaef1724632b0e78c8 100644 |
--- a/chrome/browser/extensions/api/file_system/file_system_api_unittest.cc |
+++ b/chrome/browser/extensions/api/file_system/file_system_api_unittest.cc |
@@ -316,7 +316,8 @@ TEST_F(FileSystemApiConsentProviderTest, ForNonKioskApps) { |
// Component apps are not granted unless they are whitelisted. |
{ |
scoped_refptr<Extension> component_extension( |
- test_util::BuildApp(ExtensionBuilder().SetLocation(Manifest::COMPONENT)) |
+ test_util::BuildApp( |
+ std::move(ExtensionBuilder().SetLocation(Manifest::COMPONENT))) |
.Build()); |
TestingConsentProviderDelegate delegate; |
ConsentProvider provider(&delegate); |
@@ -327,7 +328,8 @@ TEST_F(FileSystemApiConsentProviderTest, ForNonKioskApps) { |
// user. |
{ |
scoped_refptr<Extension> whitelisted_component_extension( |
- test_util::BuildApp(ExtensionBuilder().SetLocation(Manifest::COMPONENT)) |
+ test_util::BuildApp( |
+ std::move(ExtensionBuilder().SetLocation(Manifest::COMPONENT))) |
.Build()); |
TestingConsentProviderDelegate delegate; |
delegate.SetComponentWhitelist(whitelisted_component_extension->id()); |
@@ -361,7 +363,7 @@ TEST_F(FileSystemApiConsentProviderTest, ForKioskApps) { |
// instantly without asking for user consent, but with a notification. |
{ |
scoped_refptr<Extension> auto_launch_kiosk_app( |
- test_util::BuildApp(ExtensionBuilder().Pass()) |
+ test_util::BuildApp(ExtensionBuilder()) |
.MergeManifest(DictionaryBuilder() |
.SetBoolean("kiosk_enabled", true) |
.SetBoolean("kiosk_only", true)) |
@@ -390,7 +392,7 @@ TEST_F(FileSystemApiConsentProviderTest, ForKioskApps) { |
// Non-component apps in manual-launch kiosk mode will be granted access after |
// receiving approval from the user. |
scoped_refptr<Extension> manual_launch_kiosk_app( |
- test_util::BuildApp(ExtensionBuilder().Pass()) |
+ test_util::BuildApp(ExtensionBuilder()) |
.MergeManifest(DictionaryBuilder() |
.SetBoolean("kiosk_enabled", true) |
.SetBoolean("kiosk_only", true)) |