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

Unified Diff: chrome/browser/printing/print_preview_dialog_controller_unittest.cc

Issue 2527133002: Remove some WebContents::GetRenderViewHost() calls. (Closed)
Patch Set: More reverts for the same reason as patch set 3, fixes merge conflict Created 4 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/browser/printing/print_preview_dialog_controller_unittest.cc
diff --git a/chrome/browser/printing/print_preview_dialog_controller_unittest.cc b/chrome/browser/printing/print_preview_dialog_controller_unittest.cc
index 3fd3180c16cdcd8c18031adf288b7988cac5905e..6fee86b3744e9333f8a08a30fefbe6aadd4e77a8 100644
--- a/chrome/browser/printing/print_preview_dialog_controller_unittest.cc
+++ b/chrome/browser/printing/print_preview_dialog_controller_unittest.cc
@@ -364,7 +364,7 @@ TEST_F(PrintPreviewDialogControllerUnitTest, MultiplePreviewDialogsClose) {
// preview controller should exit cleanly and not crash.
content::MockRenderProcessHost* rph =
static_cast<content::MockRenderProcessHost*>(
- web_contents_2->GetRenderViewHost()->GetProcess());
+ web_contents_2->GetMainFrame()->GetProcess());
rph->SimulateCrash();
}
} // namespace printing

Powered by Google App Engine
This is Rietveld 408576698