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

Unified Diff: chrome/browser/ui/omnibox/omnibox_view_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/omnibox/omnibox_view_browsertest.cc
===================================================================
--- chrome/browser/ui/omnibox/omnibox_view_browsertest.cc (revision 116109)
+++ chrome/browser/ui/omnibox/omnibox_view_browsertest.cc (working copy)
@@ -31,8 +31,8 @@
#include "chrome/common/url_constants.h"
#include "chrome/test/base/in_process_browser_test.h"
#include "chrome/test/base/ui_test_utils.h"
-#include "content/browser/tab_contents/tab_contents.h"
#include "content/public/browser/notification_service.h"
+#include "content/public/browser/web_contents.h"
#include "net/base/mock_host_resolver.h"
#include "ui/base/events.h"
#include "ui/base/keycodes/keyboard_codes.h"
@@ -568,7 +568,7 @@
// opened.
ASSERT_NO_FATAL_FAILURE(SendKey(ui::VKEY_RETURN, ui::EF_CONTROL_DOWN));
- GURL url = browser()->GetSelectedTabContents()->GetURL();
+ GURL url = browser()->GetSelectedWebContents()->GetURL();
EXPECT_STREQ(kDesiredTLDHostname, url.host().c_str());
}
@@ -600,7 +600,7 @@
// Open the default match.
ASSERT_NO_FATAL_FAILURE(SendKey(ui::VKEY_RETURN, 0));
- GURL url = browser()->GetSelectedTabContents()->GetURL();
+ GURL url = browser()->GetSelectedWebContents()->GetURL();
EXPECT_STREQ(kSearchTextURL, url.spec().c_str());
// Test that entering a single character then Enter performs a search.
@@ -617,7 +617,7 @@
// Open the default match.
ASSERT_NO_FATAL_FAILURE(SendKey(ui::VKEY_RETURN, 0));
- url = browser()->GetSelectedTabContents()->GetURL();
+ url = browser()->GetSelectedWebContents()->GetURL();
EXPECT_STREQ(kSearchSingleCharURL, url.spec().c_str());
}
« no previous file with comments | « chrome/browser/ui/intents/web_intent_picker_controller_browsertest.cc ('k') | chrome/browser/ui/panels/panel.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698