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

Unified Diff: chrome/browser/automation/automation_tab_helper_browsertest.cc

Issue 10702029: Move tab functions off Browser into browser_tabstrip and browser_tabrestore. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 6 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/automation/automation_tab_helper_browsertest.cc
===================================================================
--- chrome/browser/automation/automation_tab_helper_browsertest.cc (revision 145001)
+++ chrome/browser/automation/automation_tab_helper_browsertest.cc (working copy)
@@ -12,6 +12,7 @@
#include "chrome/browser/automation/automation_tab_helper.h"
#include "chrome/browser/automation/mock_tab_event_observer.h"
#include "chrome/browser/ui/browser.h"
+#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/tab_contents/tab_contents.h"
#include "chrome/common/chrome_notification_types.h"
#include "chrome/common/chrome_paths.h"
@@ -91,7 +92,7 @@
std::string script = base::StringPrintf("runTestCase(%d);",
test_case_number);
content::RenderViewHost* host =
- browser()->GetActiveWebContents()->GetRenderViewHost();
+ chrome::GetActiveWebContents(browser())->GetRenderViewHost();
if (wait_for_response) {
ASSERT_TRUE(ui_test_utils::ExecuteJavaScript(
host, L"", ASCIIToWide(script)));
@@ -104,7 +105,7 @@
// Returns the |AutomationTabHelper| for the first browser's first tab.
AutomationTabHelper* tab_helper() {
- return browser()->GetTabContentsAt(0)->automation_tab_helper();
+ return chrome::GetTabContentsAt(browser(), 0)->automation_tab_helper();
}
protected:
« no previous file with comments | « chrome/browser/automation/automation_provider_observers.cc ('k') | chrome/browser/automation/automation_util.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698