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

Unified Diff: chrome/browser/ui/webui/options2/options_ui2_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/ui/webui/options2/options_ui2_browsertest.cc
===================================================================
--- chrome/browser/ui/webui/options2/options_ui2_browsertest.cc (revision 145001)
+++ chrome/browser/ui/webui/options2/options_ui2_browsertest.cc (working copy)
@@ -7,6 +7,7 @@
#include "base/string16.h"
#include "base/utf_string_conversions.h"
#include "chrome/browser/ui/browser.h"
+#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/common/url_constants.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/browser/web_contents.h"
@@ -27,7 +28,7 @@
void OptionsBrowserTest::VerifyNavbar() {
bool navbar_exist = false;
EXPECT_TRUE(ui_test_utils::ExecuteJavaScriptAndExtractBool(
- browser()->GetActiveWebContents()->GetRenderViewHost(),
+ chrome::GetActiveWebContents(browser())->GetRenderViewHost(),
L"",
L"domAutomationController.send("
L"!!document.getElementById('navigation'))", &navbar_exist));
@@ -35,7 +36,7 @@
}
void OptionsBrowserTest::VerifyTitle() {
- string16 title = browser()->GetActiveWebContents()->GetTitle();
+ string16 title = chrome::GetActiveWebContents(browser())->GetTitle();
string16 expected_title = l10n_util::GetStringUTF16(IDS_SETTINGS_TITLE);
EXPECT_NE(title.find(expected_title), string16::npos);
}

Powered by Google App Engine
This is Rietveld 408576698