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

Unified Diff: chrome/browser/ui/ash/chrome_launcher_prefs.cc

Issue 2416963002: Remove use of deprecated base::ListValue::Append(Value*) overload in //chrome/browser/ui/ash (Closed)
Patch Set: 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
« no previous file with comments | « chrome/browser/ui/ash/chrome_launcher_prefs.h ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 f4b87d8398319b2a81a355dafb0a992e1b7997fe..54f33cdbde9340afd3f40d84c8121464a0caab8d 100644
--- a/chrome/browser/ui/ash/chrome_launcher_prefs.cc
+++ b/chrome/browser/ui/ash/chrome_launcher_prefs.cc
@@ -9,6 +9,7 @@
#include <set>
#include "base/macros.h"
+#include "base/memory/ptr_util.h"
#include "base/strings/string_number_conversions.h"
#include "base/values.h"
#include "chrome/browser/app_mode/app_mode_utils.h"
@@ -309,10 +310,11 @@ void RegisterChromeLauncherUserPrefs(
registry->RegisterBooleanPref(prefs::kShowLogoutButtonInTray, false);
}
-base::DictionaryValue* CreateAppDict(const std::string& app_id) {
- std::unique_ptr<base::DictionaryValue> app_value(new base::DictionaryValue);
+std::unique_ptr<base::DictionaryValue> CreateAppDict(
+ const std::string& app_id) {
+ auto app_value = base::MakeUnique<base::DictionaryValue>();
app_value->SetString(kPinnedAppsPrefAppIDPath, app_id);
- return app_value.release();
+ return app_value;
}
ShelfAutoHideBehavior GetShelfAutoHideBehaviorPref(PrefService* prefs,
« no previous file with comments | « chrome/browser/ui/ash/chrome_launcher_prefs.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698