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

Unified Diff: chrome/test/data/webui/hung_renderer_dialog_ui_test-inl.h

Issue 9015022: Replace most of Browser::GetSelectedTabContents calls into Browser::GetSelectedWebContents. I've ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 12 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
Index: chrome/test/data/webui/hung_renderer_dialog_ui_test-inl.h
===================================================================
--- chrome/test/data/webui/hung_renderer_dialog_ui_test-inl.h (revision 116109)
+++ chrome/test/data/webui/hung_renderer_dialog_ui_test-inl.h (working copy)
@@ -12,6 +12,8 @@
#include "content/browser/tab_contents/tab_contents.h"
#include "content/browser/webui/web_ui.h"
+using content::WebContents;
+
// Test framework for chrome/test/data/webui/hung_renderer_dialog_test.js.
class HungRendererDialogUITest : public WebUIBrowserTest {
public:
@@ -29,14 +31,14 @@
// Choose which tab contents to report as hung. In this case, the default
// tab contents will be about:blank.
ASSERT_TRUE(browser());
- TabContents* tab_contents = browser()->GetSelectedTabContents();
+ WebContents* web_contents = browser()->GetSelectedWebContents();
// The TestHtmlDialogObserver will catch our dialog when it gets created.
TestHtmlDialogObserver dialog_observer(this);
// Show a disabled Hung Renderer Dialog that won't kill processes or restart
// hang timers.
- HungRendererDialog::ShowHungRendererDialogInternal(tab_contents, false);
+ HungRendererDialog::ShowHungRendererDialogInternal(web_contents, false);
// Now we can get the WebUI object from the observer, and make some details
// about our test available to the JavaScript.
« no previous file with comments | « chrome/test/base/ui_test_utils.cc ('k') | content/browser/accessibility/renderer_accessibility_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698