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

Unified Diff: chrome/browser/ui/webui/constrained_html_ui_browsertest.cc

Issue 7867007: content: Resubmit "Move constrained html windows to TabContentsWrapper." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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/ui/webui/constrained_html_ui.h ('k') | chrome/browser/ui/webui/repost_form_warning_ui.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/constrained_html_ui_browsertest.cc
diff --git a/chrome/browser/ui/webui/constrained_html_ui_browsertest.cc b/chrome/browser/ui/webui/constrained_html_ui_browsertest.cc
index 784584d237bdb7be09f75e5509f05d5da8db49f6..e16f82995203246913f480323926df8f85142bb3 100644
--- a/chrome/browser/ui/webui/constrained_html_ui_browsertest.cc
+++ b/chrome/browser/ui/webui/constrained_html_ui_browsertest.cc
@@ -8,6 +8,7 @@
#include "base/message_loop.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/ui/browser.h"
+#include "chrome/browser/ui/tab_contents/tab_contents_wrapper.h"
#include "chrome/browser/ui/webui/constrained_html_ui.h"
#include "chrome/browser/ui/webui/html_dialog_ui.h"
#include "chrome/common/url_constants.h"
@@ -66,12 +67,12 @@ class ConstrainedHtmlDialogBrowserTest : public InProcessBrowserTest {
IN_PROC_BROWSER_TEST_F(ConstrainedHtmlDialogBrowserTest, BasicTest) {
// The delegate deletes itself.
HtmlDialogUIDelegate* delegate = new TestHtmlDialogUIDelegate();
- TabContents* tab_contents = browser()->GetSelectedTabContents();
- ASSERT_TRUE(tab_contents != NULL);
+ TabContentsWrapper* wrapper = browser()->GetSelectedTabContentsWrapper();
+ ASSERT_TRUE(wrapper != NULL);
ConstrainedHtmlUI::CreateConstrainedHtmlDialog(browser()->profile(),
delegate,
- tab_contents);
+ wrapper);
- ASSERT_EQ(1U, tab_contents->constrained_window_count());
+ ASSERT_EQ(1U, wrapper->tab_contents()->constrained_window_count());
}
« no previous file with comments | « chrome/browser/ui/webui/constrained_html_ui.h ('k') | chrome/browser/ui/webui/repost_form_warning_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698