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 && |