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

Unified Diff: chrome/test/data/webui/edit_search_engine_dialog_browsertest.cc

Issue 9003014: Replace WebUI::tab_contents() with web_contents() and switch all users to use web_contents.h inst... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 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/test/data/webui/edit_search_engine_dialog_browsertest.cc
===================================================================
--- chrome/test/data/webui/edit_search_engine_dialog_browsertest.cc (revision 116011)
+++ chrome/test/data/webui/edit_search_engine_dialog_browsertest.cc (working copy)
@@ -13,8 +13,8 @@
#include "chrome/common/url_constants.h"
#include "chrome/test/base/test_html_dialog_observer.h"
#include "content/browser/renderer_host/render_view_host.h"
-#include "content/browser/tab_contents/tab_contents.h"
#include "content/browser/webui/web_ui.h"
+#include "content/public/browser/web_contents.h"
namespace {
@@ -55,7 +55,7 @@
// Now we can get the WebUI object from the observer, and make some details
// about our test available to the JavaScript.
WebUI* webui = dialog_observer.GetWebUI();
- webui->tab_contents()->GetRenderViewHost()->SetWebUIProperty(
+ webui->web_contents()->GetRenderViewHost()->SetWebUIProperty(
"expectedUrl", chrome::kChromeUIEditSearchEngineDialogURL);
// Tell the test which WebUI instance we are dealing with and complete
« no previous file with comments | « chrome/test/data/webui/certificate_viewer_ui_test-inl.h ('k') | chrome/test/data/webui/hung_renderer_dialog_ui_test-inl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698