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..9f4ca6cacb2802caefe4859771536a99085e0d99 100644 |
--- a/chrome/test/base/ui_test_utils.cc |
+++ b/chrome/test/base/ui_test_utils.cc |
@@ -74,7 +74,7 @@ |
#include "third_party/skia/include/core/SkBitmap.h" |
#include "third_party/skia/include/core/SkColor.h" |
#include "ui/gfx/size.h" |
-#include "ui/snapshot/snapshot.h" |
+#include "ui/snapshot/snapshot_desktop.h" |
#if defined(USE_AURA) |
#include "ash/shell.h" |
@@ -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( |