Index: chrome/test/base/ui_test_utils.cc |
diff --git a/chrome/test/base/ui_test_utils.cc b/chrome/test/base/ui_test_utils.cc |
index edda07454d7028a8a79a326e4dc081922ee32008..f50ebd9a5169093bb1ede0b1d8b42fd7e6a3a4d4 100644 |
--- a/chrome/test/base/ui_test_utils.cc |
+++ b/chrome/test/base/ui_test_utils.cc |
@@ -631,7 +631,7 @@ bool SaveScreenSnapshotToDirectory(const base::FilePath& directory, |
std::vector<unsigned char> png_data; |
gfx::Rect bounds( |
gfx::Size(rect.right - rect.left, rect.bottom - rect.top)); |
- if (ui::GrabWindowSnapshot(NULL, &png_data, bounds) && |
+ if (ui::GrabDesktopSnapshot(&png_data, bounds) && |
png_data.size() <= INT_MAX) { |
int bytes = static_cast<int>(png_data.size()); |
int written = file_util::WriteFile( |