summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--chrome/browser/browser.cc4
-rw-r--r--chrome/browser/browser.h6
-rw-r--r--chrome/browser/session_restore.cc2
3 files changed, 5 insertions, 7 deletions
diff --git a/chrome/browser/browser.cc b/chrome/browser/browser.cc
index 5213b4b..07d4b9f 100644
--- a/chrome/browser/browser.cc
+++ b/chrome/browser/browser.cc
@@ -280,7 +280,9 @@ Browser::~Browser() {
select_file_dialog_->ListenerDestroyed();
}
-void Browser::ShowAndFit(bool resize_to_fit) {
+void Browser::Show() {
+ // TODO(beng): this entire function should move to BrowserWindow.
+
// Only allow one call after the browser is created.
if (initial_show_command_ < 0) {
// The frame is already visible, we're being invoked again either by the
diff --git a/chrome/browser/browser.h b/chrome/browser/browser.h
index dcbb3b7..48d6fef 100644
--- a/chrome/browser/browser.h
+++ b/chrome/browser/browser.h
@@ -56,11 +56,7 @@ class Browser : public TabStripModelDelegate,
//
// Ideally, this function is called after everything in the window is
// initialized so that we do not have to repaint again.
- void Show() { ShowAndFit(false); }
-
- // Like Show, but the window is optionally resized and moved to be on the
- // default screen.
- void ShowAndFit(bool resize_to_fit);
+ void Show();
// Returns the Browser which contains the tab with the given
// NavigationController, also filling in |index| (if valid) with the tab's
diff --git a/chrome/browser/session_restore.cc b/chrome/browser/session_restore.cc
index 057b46b..dba5334ff 100644
--- a/chrome/browser/session_restore.cc
+++ b/chrome/browser/session_restore.cc
@@ -363,7 +363,7 @@ class SessionRestoreImpl : public NotificationObserver {
browser->SelectTabContentsAt(
std::min(initial_tab_count + std::max(0, selected_session_index),
browser->tab_count() - 1), true);
- browser->ShowAndFit(true);
+ browser->Show();
}
void AppendURLsToBrowser(Browser* browser, const std::vector<GURL>& urls) {