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

Unified Diff: chrome/browser/ui/pdf/pdf_browsertest.cc

Issue 10909282: Switch SnapshotTabHelper to use WebContentsUserData. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 3 months 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
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs.cc ('k') | chrome/browser/ui/snapshot_tab_helper.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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();
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs.cc ('k') | chrome/browser/ui/snapshot_tab_helper.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698