| Index: chrome/browser/ui/pdf/pdf_browsertest.cc
|
| diff --git a/chrome/browser/ui/pdf/pdf_browsertest.cc b/chrome/browser/ui/pdf/pdf_browsertest.cc
|
| index 8cb44b3ff3be5aa4f15a59ea064add399ef02561..4fe4895c64bfab041b65b39d2219db303f2c8b2b 100644
|
| --- a/chrome/browser/ui/pdf/pdf_browsertest.cc
|
| +++ b/chrome/browser/ui/pdf/pdf_browsertest.cc
|
| @@ -83,12 +83,12 @@ class PDFBrowserTest : public InProcessBrowserTest,
|
| bool VerifySnapshot(const std::string& expected_filename) {
|
| snapshot_different_ = true;
|
| expected_filename_ = expected_filename;
|
| - TabContents* tab_contents = chrome::GetActiveTabContents(browser());
|
| - tab_contents->snapshot_tab_helper()->CaptureSnapshot();
|
| + WebContents* web_contents = chrome::GetActiveWebContents(browser());
|
| + SnapshotTabHelper::FromWebContents(web_contents)->CaptureSnapshot();
|
| ui_test_utils::RegisterAndWait(
|
| this,
|
| chrome::NOTIFICATION_TAB_SNAPSHOT_TAKEN,
|
| - content::Source<WebContents>(tab_contents->web_contents()));
|
| + content::Source<WebContents>(web_contents));
|
| if (snapshot_different_) {
|
| LOG(INFO) << "Rendering didn't match, see result " <<
|
| snapshot_filename_.value().c_str();
|
|
|