Index: chrome/browser/ui/ash/chrome_launcher_prefs.cc |
diff --git a/chrome/browser/ui/ash/chrome_launcher_prefs.cc b/chrome/browser/ui/ash/chrome_launcher_prefs.cc |
index faf9081dd053edb452925f8d30bae7e3ed5906aa..5d60fb7aa3136b1f18c025e3072d3574fc18c01a 100644 |
--- a/chrome/browser/ui/ash/chrome_launcher_prefs.cc |
+++ b/chrome/browser/ui/ash/chrome_launcher_prefs.cc |
@@ -48,12 +48,12 @@ const char* kDefaultPinnedApps[] = { |
extension_misc::kGmailAppId, extension_misc::kGoogleDocAppId, |
extension_misc::kYoutubeAppId, ArcSupportHost::kHostAppId}; |
-base::ListValue* CreateDefaultPinnedAppsList() { |
+std::unique_ptr<base::ListValue> CreateDefaultPinnedAppsList() { |
std::unique_ptr<base::ListValue> apps(new base::ListValue); |
for (size_t i = 0; i < arraysize(kDefaultPinnedApps); ++i) |
apps->Append(CreateAppDict(kDefaultPinnedApps[i])); |
- return apps.release(); |
+ return apps; |
} |
// Returns the preference value for the display with the given |display_id|. |