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

Unified Diff: chrome/browser/apps/drive/drive_app_mapping.cc

Issue 2845113002: Remove raw base::DictionaryValue::SetWithoutPathExpansion in //chrome (Closed)
Patch Set: Address comments Created 3 years, 8 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 | « no previous file | chrome/browser/geolocation/chrome_access_token_store.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/apps/drive/drive_app_mapping.cc
diff --git a/chrome/browser/apps/drive/drive_app_mapping.cc b/chrome/browser/apps/drive/drive_app_mapping.cc
index ea8fb0f8e5ce6d47f65a199c44f7bcccef7a0f0d..96a913bf3c4facdecb28ba17371a5928e1c72ca4 100644
--- a/chrome/browser/apps/drive/drive_app_mapping.cc
+++ b/chrome/browser/apps/drive/drive_app_mapping.cc
@@ -6,6 +6,8 @@
#include <stddef.h>
+#include <memory>
+
#include "base/values.h"
#include "chrome/common/pref_names.h"
#include "components/pref_registry/pref_registry_syncable.h"
@@ -53,8 +55,8 @@ void DriveAppMapping::Add(const std::string& drive_app_id,
const std::string& chrome_app_id,
bool generated) {
DictionaryPrefUpdate update(prefs_, prefs::kAppLauncherDriveAppMapping);
- update->SetWithoutPathExpansion(
- drive_app_id, CreateInfoDict(chrome_app_id, generated).release());
+ update->SetWithoutPathExpansion(drive_app_id,
+ CreateInfoDict(chrome_app_id, generated));
}
void DriveAppMapping::Remove(const std::string& drive_app_id) {
« no previous file with comments | « no previous file | chrome/browser/geolocation/chrome_access_token_store.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698