summaryrefslogtreecommitdiffstats
path: root/apps/shell_window_geometry_cache.h
diff options
context:
space:
mode:
authorscheib@chromium.org <scheib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-01 20:12:42 +0000
committerscheib@chromium.org <scheib@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>2013-08-01 20:12:42 +0000
commit837af56c6e544d0fd60eab7a8532f914c2e3ea97 (patch)
tree26b64b1e91e06f0369ef1de41a293025a4666805 /apps/shell_window_geometry_cache.h
parentddc597aa7d4106abd14b359f71a1ef3cded55ca6 (diff)
downloadchromium_src-837af56c6e544d0fd60eab7a8532f914c2e3ea97.zip
chromium_src-837af56c6e544d0fd60eab7a8532f914c2e3ea97.tar.gz
chromium_src-837af56c6e544d0fd60eab7a8532f914c2e3ea97.tar.bz2
Do not restore corrupt cached app window bounds.
Corrupted cached bounds happen durring development, and possibly to all users. This change hardens the loading code to not use invalid cached state. Related clean up in shell_window for adjusting screen bounds as well. BUG=266578 Review URL: https://chromiumcodereview.appspot.com/21444002 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@215098 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'apps/shell_window_geometry_cache.h')
-rw-r--r--apps/shell_window_geometry_cache.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/shell_window_geometry_cache.h b/apps/shell_window_geometry_cache.h
index d4b3581..b6709df 100644
--- a/apps/shell_window_geometry_cache.h
+++ b/apps/shell_window_geometry_cache.h
@@ -73,8 +73,8 @@ class ShellWindowGeometryCache
ui::WindowShowState state);
// Get any saved geometry and state associated with |extension_id| and
- // |window_id|. If saved data exists, sets |bounds| and |state| if not NULL
- // and returns true.
+ // |window_id|. If saved data exists, sets |bounds|, |screen_bounds| and
+ // |state| if not NULL and returns true.
bool GetGeometry(const std::string& extension_id,
const std::string& window_id,
gfx::Rect* bounds,