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

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

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/browser/ui/webui/web_ui_browsertest.cc
===================================================================
--- chrome/browser/ui/webui/web_ui_browsertest.cc (revision 116109)
+++ chrome/browser/ui/webui/web_ui_browsertest.cc (working copy)
@@ -22,7 +22,7 @@
#include "chrome/common/url_constants.h"
#include "chrome/test/base/test_tab_strip_model_observer.h"
#include "chrome/test/base/ui_test_utils.h"
-#include "content/browser/tab_contents/tab_contents.h"
+#include "content/public/browser/web_contents.h"
#include "content/public/browser/web_ui_message_handler.h"
#include "testing/gmock/include/gmock/gmock.h"
#include "testing/gtest/include/gtest/gtest-spi.h"
@@ -182,7 +182,7 @@
void WebUIBrowserTest::BrowsePreload(const GURL& browse_to) {
TestNavigationObserver navigation_observer(
content::Source<NavigationController>(
- &browser()->GetSelectedTabContentsWrapper()->tab_contents()->
+ &browser()->GetSelectedTabContentsWrapper()->web_contents()->
GetController()),
this, 1);
browser::NavigateParams params(
@@ -213,7 +213,7 @@
TabContentsWrapper* preview_tab = tab_controller->GetPrintPreviewForTab(
browser()->GetSelectedTabContentsWrapper());
ASSERT_TRUE(preview_tab);
- SetWebUIInstance(preview_tab->tab_contents()->GetWebUI());
+ SetWebUIInstance(preview_tab->web_contents()->GetWebUI());
}
const char WebUIBrowserTest::kDummyURL[] = "chrome://DummyURL";
@@ -409,7 +409,7 @@
void WebUIBrowserTest::SetupHandlers() {
WebUI* web_ui_instance = override_selected_web_ui_ ?
override_selected_web_ui_ :
- browser()->GetSelectedTabContents()->GetWebUI();
+ browser()->GetSelectedWebContents()->GetWebUI();
ASSERT_TRUE(web_ui_instance != NULL);
web_ui_instance->set_register_callback_overwrites(true);
test_handler_->set_web_ui(web_ui_instance);
« no previous file with comments | « chrome/browser/ui/webui/ntp/app_launcher_handler.cc ('k') | chrome/browser/ui/webui/workers_ui_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698