summaryrefslogtreecommitdiffstats
path: root/chrome/browser
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser')
-rw-r--r--chrome/browser/browser.cc1
-rw-r--r--chrome/browser/browser.scons1
-rw-r--r--chrome/browser/browsing_data_remover.cc2
-rw-r--r--chrome/browser/profile.cc2
-rw-r--r--chrome/browser/sessions/tab_restore_service.cc5
-rw-r--r--chrome/browser/sessions/tab_restore_service.h12
6 files changed, 17 insertions, 6 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 6491c56..da7804f 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -16,6 +16,7 @@
#include "chrome/browser/profile.h"
#include "chrome/browser/sessions/session_service.h"
#include "chrome/browser/sessions/session_types.h"
+#include "chrome/browser/sessions/tab_restore_service.h"
#include "chrome/browser/tab_contents/navigation_controller.h"
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "chrome/browser/tab_contents/site_instance.h"
diff --git a/chrome/browser/browser.scons b/chrome/browser/browser.scons
index 5929b4c..19ffdac 100644
--- a/chrome/browser/browser.scons
+++ b/chrome/browser/browser.scons
@@ -745,7 +745,6 @@ if not env.Bit('windows'):
'sessions/base_session_service.cc',
'sessions/session_backend.cc',
'sessions/session_restore.cc',
- 'sessions/tab_restore_service.cc',
'shell_integration.cc',
'ssl/ssl_blocking_page.cc',
'ssl/ssl_manager.cc',
diff --git a/chrome/browser/browsing_data_remover.cc b/chrome/browser/browsing_data_remover.cc
index d5cadba..2fccb58 100644
--- a/chrome/browser/browsing_data_remover.cc
+++ b/chrome/browser/browsing_data_remover.cc
@@ -10,6 +10,7 @@
#include "chrome/browser/metrics/user_metrics.h"
#include "chrome/browser/search_engines/template_url_model.h"
#include "chrome/browser/sessions/session_service.h"
+#include "chrome/browser/sessions/tab_restore_service.h"
#include "chrome/browser/webdata/web_data_service.h"
#include "chrome/common/notification_service.h"
#include "net/base/cookie_monster.h"
@@ -27,7 +28,6 @@
// TODO(port): Get rid of this section and finish porting.
#if defined(OS_WIN)
#include "chrome/browser/download/download_manager.h"
-#include "chrome/browser/sessions/tab_restore_service.h"
#endif
using base::Time;
diff --git a/chrome/browser/profile.cc b/chrome/browser/profile.cc
index baea4d4..43c44f3 100644
--- a/chrome/browser/profile.cc
+++ b/chrome/browser/profile.cc
@@ -20,6 +20,7 @@
#include "chrome/browser/renderer_host/render_process_host.h"
#include "chrome/browser/search_engines/template_url_model.h"
#include "chrome/browser/sessions/session_service.h"
+#include "chrome/browser/sessions/tab_restore_service.h"
#include "chrome/browser/visitedlink_master.h"
#include "chrome/browser/webdata/web_data_service.h"
#include "chrome/common/chrome_constants.h"
@@ -44,7 +45,6 @@
#include "chrome/browser/download/download_manager.h"
#include "chrome/browser/history/history.h"
#include "chrome/browser/search_engines/template_url_fetcher.h"
-#include "chrome/browser/sessions/tab_restore_service.h"
#include "chrome/browser/spellchecker.h"
#include "chrome/browser/tab_contents/navigation_controller.h"
#endif
diff --git a/chrome/browser/sessions/tab_restore_service.cc b/chrome/browser/sessions/tab_restore_service.cc
index 54adce1..9a7a5bf 100644
--- a/chrome/browser/sessions/tab_restore_service.cc
+++ b/chrome/browser/sessions/tab_restore_service.cc
@@ -9,8 +9,8 @@
#include "chrome/browser/browser_list.h"
#include "chrome/browser/profile.h"
-#include "chrome/browser/sessions/session_backend.h"
#include "chrome/browser/sessions/session_service.h"
+#include "chrome/browser/sessions/session_command.h"
#include "chrome/browser/tab_contents/navigation_controller.h"
#include "chrome/browser/tab_contents/navigation_entry.h"
#include "chrome/common/scoped_vector.h"
@@ -232,7 +232,8 @@ void TabRestoreService::RestoreEntryById(Browser* browser,
NavigationController* restored_controller =
browser->AddRestoredTab(tab.navigations, browser->tab_count(),
tab.current_navigation_index,
- (tab_i == window->selected_tab_index));
+ (static_cast<int>(tab_i) ==
+ window->selected_tab_index));
if (restored_controller)
restored_controller->LoadIfNecessary();
}
diff --git a/chrome/browser/sessions/tab_restore_service.h b/chrome/browser/sessions/tab_restore_service.h
index 2962cf5..2391224 100644
--- a/chrome/browser/sessions/tab_restore_service.h
+++ b/chrome/browser/sessions/tab_restore_service.h
@@ -10,10 +10,20 @@
#include "base/observer_list.h"
#include "base/time.h"
-#include "chrome/browser/sessions/base_session_service.h"
#include "chrome/browser/sessions/session_id.h"
#include "chrome/browser/sessions/session_types.h"
+#if defined(OS_POSIX)
+// TODO(port): get rid of this include. It's used just to provide declarations
+// and stub definitions for classes we encouter during the porting effort.
+#include "chrome/common/temp_scaffolding_stubs.h"
+#endif
+
+// TODO(port): Get rid of this section and finish porting.
+#if defined(OS_WIN)
+#include "chrome/browser/sessions/base_session_service.h"
+#endif
+
class Browser;
class NavigationController;
class Profile;