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

Unified Diff: chrome/browser/ui/window_sizer.cc

Issue 5915006: Remove user-related data from local_state and add to user_preferences, i... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: svn pset Created 9 years, 11 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/window_sizer.cc
===================================================================
--- chrome/browser/ui/window_sizer.cc (revision 71191)
+++ chrome/browser/ui/window_sizer.cc (working copy)
@@ -6,6 +6,7 @@
#include "chrome/browser/browser_process.h"
#include "chrome/browser/prefs/pref_service.h"
+#include "chrome/browser/profiles/profile_manager.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_list.h"
#include "chrome/browser/ui/browser_window.h"
@@ -33,11 +34,13 @@
key.append(app_name_);
}
- if (!g_browser_process->local_state())
+ ProfileManager* profile_manager = g_browser_process->profile_manager();
+ if (!profile_manager)
return false;
const DictionaryValue* wp_pref =
- g_browser_process->local_state()->GetDictionary(key.c_str());
+ profile_manager->GetDefaultProfile()->GetPrefs()->GetDictionary(
+ key.c_str());
int top = 0, left = 0, bottom = 0, right = 0;
bool has_prefs =
wp_pref &&

Powered by Google App Engine
This is Rietveld 408576698