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

Unified Diff: chrome/browser/extensions/api/web_navigation/web_navigation_apitest.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/extensions/api/web_navigation/web_navigation_apitest.cc
===================================================================
--- chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc (revision 145001)
+++ chrome/browser/extensions/api/web_navigation/web_navigation_apitest.cc (working copy)
@@ -10,6 +10,7 @@
#include "chrome/browser/tab_contents/render_view_context_menu.h"
#include "chrome/browser/ui/browser.h"
#include "chrome/browser/ui/browser_finder.h"
+#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/common/chrome_switches.h"
#include "chrome/test/base/ui_test_utils.h"
#include "content/public/browser/render_view_host.h"
@@ -183,7 +184,7 @@
ASSERT_TRUE(
RunExtensionSubtest("webnavigation", "test_userAction.html")) << message_;
- WebContents* tab = browser()->GetActiveWebContents();
+ WebContents* tab = chrome::GetActiveWebContents(browser());
ui_test_utils::WaitForLoadStop(tab);
ResultCatcher catcher;
@@ -221,7 +222,7 @@
ASSERT_TRUE(RunExtensionSubtest("webnavigation", "test_requestOpenTab.html"))
<< message_;
- WebContents* tab = browser()->GetActiveWebContents();
+ WebContents* tab = chrome::GetActiveWebContents(browser());
ui_test_utils::WaitForLoadStop(tab);
ResultCatcher catcher;
@@ -258,7 +259,7 @@
ASSERT_TRUE(RunExtensionSubtest("webnavigation", "test_targetBlank.html"))
<< message_;
- WebContents* tab = browser()->GetActiveWebContents();
+ WebContents* tab = chrome::GetActiveWebContents(browser());
ui_test_utils::WaitForLoadStop(tab);
ResultCatcher catcher;
@@ -302,9 +303,8 @@
"files/extensions/api_test/webnavigation/targetBlank/a.html");
ui_test_utils::OpenURLOffTheRecord(browser()->profile(), url);
- WebContents* tab = browser::FindTabbedBrowser(
- browser()->profile()->GetOffTheRecordProfile(), false)->
- GetActiveWebContents();
+ WebContents* tab = chrome::GetActiveWebContents(browser::FindTabbedBrowser(
+ browser()->profile()->GetOffTheRecordProfile(), false));
// There's a link with target=_blank on a.html. Click on it to open it in a
// new tab.
« no previous file with comments | « chrome/browser/extensions/api/tabs/tabs.cc ('k') | chrome/browser/extensions/api/web_request/web_request_apitest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698