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

Unified Diff: chrome/browser/ui/webui/options/manage_profile_handler.cc

Issue 22267008: Use |GetDictinonary| instead of |DictionaryPrefUpdate| in |ManageProfileHandler::RequestExistingMan… (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 7 years, 4 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 | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/options/manage_profile_handler.cc
diff --git a/chrome/browser/ui/webui/options/manage_profile_handler.cc b/chrome/browser/ui/webui/options/manage_profile_handler.cc
index 69170be6c2f2dc7a8669ce2dda86d4c2788c8db2..4c78ff3c035fe0b6fdfb4843dc21b753fc4e69d2 100644
--- a/chrome/browser/ui/webui/options/manage_profile_handler.cc
+++ b/chrome/browser/ui/webui/options/manage_profile_handler.cc
@@ -231,8 +231,8 @@ void ManageProfileHandler::RequestExistingManagedUsers(const ListValue* args) {
for (size_t i = 0; i < cache.GetNumberOfProfiles(); ++i)
managed_user_ids.insert(cache.GetManagedUserIdOfProfileAtIndex(i));
- DictionaryValue* dict =
- DictionaryPrefUpdate(profile->GetPrefs(), prefs::kManagedUsers).Get();
+ const DictionaryValue* dict =
+ profile->GetPrefs()->GetDictionary(prefs::kManagedUsers);
DictionaryValue id_names_dict;
for (DictionaryValue::Iterator it(*dict); !it.IsAtEnd(); it.Advance()) {
if (managed_user_ids.find(it.key()) != managed_user_ids.end())
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698