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

Unified Diff: chrome/browser/ui/browser.cc

Issue 6660028: Decouple TabRestoreService from Browser (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: Created 9 years, 9 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/browser.cc
diff --git a/chrome/browser/ui/browser.cc b/chrome/browser/ui/browser.cc
index 74ec6ee1281affc118048725c48db01be091ab92..e891005b99a1700a86143704f2c308b51d9af4fa 100644
--- a/chrome/browser/ui/browser.cc
+++ b/chrome/browser/ui/browser.cc
@@ -331,6 +331,11 @@ Browser* Browser::Create(Profile* profile) {
}
// static
+TabRestoreServiceDelegate* TabRestoreServiceDelegate::Create(Profile* profile) {
+ return Browser::Create(profile);
+}
+
+// static
Browser* Browser::CreateForPopup(Type type,
Profile* profile,
TabContents* new_contents,
@@ -966,6 +971,10 @@ void Browser::SelectTabContentsAt(int index, bool user_gesture) {
tab_handler_->GetTabStripModel()->SelectTabContentsAt(index, user_gesture);
}
+bool Browser::IsTabPinned(int index) const {
+ return tabstrip_model()->IsTabPinned(index);
+}
+
void Browser::CloseAllTabs() {
tab_handler_->GetTabStripModel()->CloseAllTabs();
}
@@ -2095,6 +2104,12 @@ Browser* Browser::GetBrowserForController(
return NULL;
}
+// static
+TabRestoreServiceDelegate* TabRestoreServiceDelegate::GetBrowserForController(
+ const NavigationController* controller, int* index) {
+ return Browser::GetBrowserForController(controller, index);
+}
+
void Browser::ExecuteCommandWithDisposition(
int id, WindowOpenDisposition disposition) {
// No commands are enabled if there is not yet any selected tab.

Powered by Google App Engine
This is Rietveld 408576698