| Index: chrome/browser/ui/browser.h
|
| diff --git a/chrome/browser/ui/browser.h b/chrome/browser/ui/browser.h
|
| index df08d1e551fbd6bea5f010a71b30b4e742c81233..69639630b5746d143fb4073b0331a00375994da2 100644
|
| --- a/chrome/browser/ui/browser.h
|
| +++ b/chrome/browser/ui/browser.h
|
| @@ -168,6 +168,15 @@ class Browser : public TabHandlerDelegate,
|
| bool bounds_overridden() const {
|
| return !override_bounds_.IsEmpty();
|
| }
|
| + // Set indicator that this browser is being created via session restore.
|
| + // This is used on the Mac (only) to determine animation style when the
|
| + // browser window is shown.
|
| + void set_is_session_restore(bool is_session_restore) {
|
| + is_session_restore_ = is_session_restore;
|
| + }
|
| + bool is_session_restore() const {
|
| + return is_session_restore_;
|
| + }
|
|
|
| // Creates the Browser Window. Prefer to use the static helpers above where
|
| // possible. This does not show the window. You need to call window()->Show()
|
| @@ -1317,6 +1326,9 @@ class Browser : public TabHandlerDelegate,
|
| gfx::Rect override_bounds_;
|
| ui::WindowShowState show_state_;
|
|
|
| + // Tracks when this browser is being created by session restore.
|
| + bool is_session_restore_;
|
| +
|
| // The following factory is used to close the frame at a later time.
|
| ScopedRunnableMethodFactory<Browser> method_factory_;
|
|
|
|
|