Check the existence of RootWindow in ui::GetScaleFactorForNativeView.
commit3febb9cc82d14a375777303df80dd8dfc51c5c04
authormazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 29 Aug 2012 21:06:25 +0000 (29 21:06 +0000)
committermazda@chromium.org <mazda@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98>
Wed, 29 Aug 2012 21:06:25 +0000 (29 21:06 +0000)
tree99bcab8cc4824e23a8531e5499a175d38e2b306d
parentc7c52486a3cfb23f096cde55cce0747f0c59c3e6
Check the existence of RootWindow in ui::GetScaleFactorForNativeView.

RootWindow can be NULL while Window is being destroyed.

BUG=145350

Review URL: https://chromiumcodereview.appspot.com/10891017

git-svn-id: svn://svn.chromium.org/chrome/trunk/src@153971 0039d316-1c4b-4281-b951-d872f2087c98
ui/base/layout.cc