Index: chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel_unittest.cc |
diff --git a/chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel_unittest.cc b/chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel_unittest.cc |
index 586c2484981d9a626c820ef68e1166c35c786149..f4ed8cbe369807cfeb8f359f455918aa4a131ee6 100644 |
--- a/chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel_unittest.cc |
+++ b/chrome/browser/ui/views/apps/app_info_dialog/app_info_permissions_panel_unittest.cc |
@@ -63,7 +63,7 @@ TEST_F(AppInfoPermissionsPanelTest, NoPermissionsObtainedCorrectly) { |
.SetManifest(ValidAppManifest()) |
.SetID(kTestExtensionId) |
.Build(); |
- AppInfoPermissionsPanel panel(&profile_, app); |
+ AppInfoPermissionsPanel panel(&profile_, app.get()); |
EXPECT_TRUE(panel.GetActivePermissionMessages().empty()); |
EXPECT_TRUE(panel.GetRetainedFilePaths().empty()); |
@@ -87,7 +87,7 @@ TEST_F(AppInfoPermissionsPanelTest, RequiredPermissionsObtainedCorrectly) { |
// a message |
.SetID(kTestExtensionId) |
.Build(); |
- AppInfoPermissionsPanel panel(&profile_, app); |
+ AppInfoPermissionsPanel panel(&profile_, app.get()); |
const std::vector<base::string16> permission_messages = |
panel.GetActivePermissionMessages(); |
@@ -117,7 +117,7 @@ TEST_F(AppInfoPermissionsPanelTest, OptionalPermissionsObtainedCorrectly) { |
// a message |
.SetID(kTestExtensionId) |
.Build(); |
- AppInfoPermissionsPanel panel(&profile_, app); |
+ AppInfoPermissionsPanel panel(&profile_, app.get()); |
// Optional permissions don't appear until they are 'activated' at runtime. |
// TODO(sashab): Activate the optional permissions and ensure they are |
@@ -140,7 +140,7 @@ TEST_F(AppInfoPermissionsPanelTest, RetainedFilePermissionsObtainedCorrectly) { |
extensions::ListBuilder().Append("retainEntries"))))) |
.SetID(kTestExtensionId) |
.Build(); |
- AppInfoPermissionsPanel panel(&profile_, app); |
+ AppInfoPermissionsPanel panel(&profile_, app.get()); |
apps::SavedFilesService* files_service = |
apps::SavedFilesService::Get(&profile_); |
files_service->RegisterFileEntry( |