Index: chrome/browser/chromeos/login/screen_locker_tester.cc |
diff --git a/chrome/browser/chromeos/login/screen_locker_tester.cc b/chrome/browser/chromeos/login/screen_locker_tester.cc |
index b399baaa665e9bfa7bab45801f27cbcba001a122..8172fb9cf379137d3250232101e24b840ff18727 100644 |
--- a/chrome/browser/chromeos/login/screen_locker_tester.cc |
+++ b/chrome/browser/chromeos/login/screen_locker_tester.cc |
@@ -15,6 +15,7 @@ |
#include "views/controls/label.h" |
#include "views/controls/textfield/textfield.h" |
#include "views/widget/widget_gtk.h" |
+#include "views/widget/root_view.h" |
namespace chromeos { |
@@ -24,8 +25,9 @@ test::ScreenLockerTester* ScreenLocker::GetTester() { |
namespace test { |
-bool ScreenLockerTester::IsOpen() { |
- return chromeos::ScreenLocker::screen_locker_ != NULL; |
+bool ScreenLockerTester::IsLocked() { |
+ return ScreenLocker::screen_locker_ != NULL && |
+ ScreenLocker::screen_locker_->lock_widget_->GetRootView()->IsVisible(); |
} |
void ScreenLockerTester::InjectMockAuthenticator( |