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

Unified Diff: chrome/browser/ui/panels/old_base_panel_browser_test.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
« no previous file with comments | « chrome/browser/ui/panels/base_panel_browser_test.cc ('k') | chrome/browser/ui/panels/old_panel.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/panels/old_base_panel_browser_test.cc
===================================================================
--- chrome/browser/ui/panels/old_base_panel_browser_test.cc (revision 145001)
+++ chrome/browser/ui/panels/old_base_panel_browser_test.cc (working copy)
@@ -15,6 +15,7 @@
#include "chrome/browser/extensions/extension_service.h"
#include "chrome/browser/profiles/profile.h"
#include "chrome/browser/ui/browser.h"
+#include "chrome/browser/ui/browser_tabstrip.h"
#include "chrome/browser/ui/panels/native_panel.h"
#include "chrome/browser/ui/panels/panel_browser_window.h"
#include "chrome/browser/ui/panels/panel_manager.h"
@@ -314,8 +315,8 @@
ui_test_utils::WindowedNotificationObserver observer(
content::NOTIFICATION_LOAD_STOP,
content::NotificationService::AllSources());
- panel_browser->AddSelectedTabWithURL(params.url,
- content::PAGE_TRANSITION_START_PAGE);
+ chrome::AddSelectedTabWithURL(panel_browser, params.url,
+ content::PAGE_TRANSITION_START_PAGE);
observer.Wait();
}
@@ -406,7 +407,7 @@
void OldBasePanelBrowserTest::CreateTestTabContents(Browser* browser) {
TabContents* tab_contents = new TabContents(
WebContentsTester::CreateTestWebContents(browser->profile(), NULL));
- browser->AddTab(tab_contents, content::PAGE_TRANSITION_LINK);
+ chrome::AddTab(browser, tab_contents, content::PAGE_TRANSITION_LINK);
}
scoped_refptr<Extension> OldBasePanelBrowserTest::CreateExtension(
« no previous file with comments | « chrome/browser/ui/panels/base_panel_browser_test.cc ('k') | chrome/browser/ui/panels/old_panel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698