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

Unified Diff: chrome/browser/sessions/session_restore.cc

Issue 7809013: Remove Animation When "Resuming" Window in Lion (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Adds context parameter to BrowserWindow::Show(...) Created 9 years, 4 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/sessions/session_restore.cc
diff --git a/chrome/browser/sessions/session_restore.cc b/chrome/browser/sessions/session_restore.cc
index c4c5b2945f89d62e639b6608070fb1dd0c829922..f790036717b065ed5d0e10250ea1cfcb0ed8bf6a 100644
--- a/chrome/browser/sessions/session_restore.cc
+++ b/chrome/browser/sessions/session_restore.cc
@@ -540,7 +540,7 @@ class SessionRestoreImpl : public NotificationObserver {
urls_to_open_.push_back(GURL());
}
AppendURLsToBrowser(browser, urls_to_open_);
- browser->window()->Show();
+ browser->window()->Show(BrowserWindow::SHOW_CONTEXT_RESTORE);
}
if (succeeded) {
@@ -730,7 +730,7 @@ class SessionRestoreImpl : public NotificationObserver {
if (browser_ == browser)
return;
- browser->window()->Show();
+ browser->window()->Show(BrowserWindow::SHOW_CONTEXT_RESTORE);
// TODO(jcampan): http://crbug.com/8123 we should not need to set the
// initial focus explicitly.
browser->GetSelectedTabContents()->view()->SetInitialFocus();

Powered by Google App Engine
This is Rietveld 408576698