Add memory size check

BUG=chrome-os-partner:2129
TEST=works ok

Change-Id: I3fdef031e4d774927b65852848493b945e24c7ce

Review URL: http://codereview.chromium.org/6658005
(cherry picked from commit d488ecb39763d2973b3f13716b6edc757faa1dfd)

Review URL: http://codereview.chromium.org/6682013
1 file changed