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

Unified Diff: chrome/browser/ui/views/task_manager_view.cc

Issue 6735032: Get rid of PrefService::GetMutableDictionary/GetMutableList (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Updated license header Created 9 years, 9 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
Index: chrome/browser/ui/views/task_manager_view.cc
diff --git a/chrome/browser/ui/views/task_manager_view.cc b/chrome/browser/ui/views/task_manager_view.cc
index d74cc2d094334ddf87ed058c3d7f15b1aa5937d8..c5e135b9e95d6bd0a34be8f64ca759804ebc6910 100644
--- a/chrome/browser/ui/views/task_manager_view.cc
+++ b/chrome/browser/ui/views/task_manager_view.cc
@@ -622,9 +622,9 @@ bool TaskManagerView::ExecuteWindowsCommand(int command_id) {
// Save the state.
if (g_browser_process->local_state()) {
- DictionaryValue* window_preferences =
- g_browser_process->local_state()->GetMutableDictionary(
- WideToUTF8(GetWindowName()).c_str());
+ DictionaryPrefsUpdate update(g_browser_process->local_state(),
+ WideToUTF8(GetWindowName()).c_str());
+ DictionaryValue* window_preferences = update.GetMutableValue();
window_preferences->SetBoolean("always_on_top", is_always_on_top_);
}
return true;

Powered by Google App Engine
This is Rietveld 408576698