Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(3453)

Unified Diff: chrome/test/ui_test_utils.cc

Issue 6010004: Refactor RenderWidgetHost::set_paint_observer() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Added comments Created 10 years ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: chrome/test/ui_test_utils.cc
diff --git a/chrome/test/ui_test_utils.cc b/chrome/test/ui_test_utils.cc
index 0be4bd8f7cdc87f3254ceb2fa14f5f0089889ee0..9cc996c3abf685c96d5d324b55b6a2c22424262e 100644
--- a/chrome/test/ui_test_utils.cc
+++ b/chrome/test/ui_test_utils.cc
@@ -851,7 +851,7 @@ class SnapshotTaker {
SkBitmap* bitmap) WARN_UNUSED_RESULT {
bitmap_ = bitmap;
ThumbnailGenerator* generator = g_browser_process->GetThumbnailGenerator();
- rwh->set_painting_observer(generator);
+ generator->MonitorRenderer(rwh, true);
snapshot_taken_ = false;
generator->AskForSnapshot(
rwh,
« chrome/browser/tab_contents/thumbnail_generator.cc ('K') | « chrome/common/notification_type.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698