Chromium Code Reviews| Index: chrome/browser/chromeos/display/display_preferences.cc |
| diff --git a/chrome/browser/chromeos/display/display_preferences.cc b/chrome/browser/chromeos/display/display_preferences.cc |
| index 7055eec03b1d98b6860233c5fd8ceba4ab01bca4..4f62e781b633b3e1286d107ff6ac26b2fd3c2525 100644 |
| --- a/chrome/browser/chromeos/display/display_preferences.cc |
| +++ b/chrome/browser/chromeos/display/display_preferences.cc |
| @@ -9,6 +9,7 @@ |
| #include "ash/display/display_pref_util.h" |
| #include "ash/display/resolution_notification_controller.h" |
| #include "ash/shell.h" |
| +#include "ash/wm/maximize_mode/maximize_mode_controller.h" |
| #include "base/prefs/pref_registry_simple.h" |
| #include "base/prefs/pref_service.h" |
| #include "base/prefs/scoped_user_pref_update.h" |
| @@ -309,6 +310,10 @@ void StoreDisplayPrefs() { |
| DoesNotificationTimeout()) { |
| return; |
| } |
| + |
| + if (!ash::Shell::GetInstance()->ShouldSaveDisplaySettings()) |
|
oshima
2014/05/23 19:15:05
Sorry if it wasn't clear. I wanted something like
jonross
2014/05/23 19:52:14
Done.
|
| + return; |
| + |
| StoreCurrentDisplayLayoutPrefs(); |
| StoreCurrentDisplayProperties(); |
| } |