Chromium Code Reviews| Index: chrome/browser/sessions/session_restore.h |
| diff --git a/chrome/browser/sessions/session_restore.h b/chrome/browser/sessions/session_restore.h |
| index f232a48a600c663eb0fe17056a91e58d8d468028..9294fb35506a184852c59693ad9a2769b3e5414c 100644 |
| --- a/chrome/browser/sessions/session_restore.h |
| +++ b/chrome/browser/sessions/session_restore.h |
| @@ -28,7 +28,11 @@ class WebContents; |
| // variety is meant for startup and blocks until restore is complete. |
| class SessionRestore { |
| public: |
| - enum Behavior { |
| + // Bitmask representing behaviors available when restoring session. Populate |
|
Peter Kasting
2017/02/06 23:26:40
Nit: session -> a session
|
| + // using the values below. |
| + typedef uint32_t Behavior; |
| + |
| + enum { |
| // Indicates the active tab of the supplied browser should be closed. |
| CLOBBER_CURRENT_TAB = 1 << 0, |
| @@ -56,7 +60,7 @@ class SessionRestore { |
| // If |urls_to_open| is non-empty, a tab is added for each of the URLs. |
| static Browser* RestoreSession(Profile* profile, |
| Browser* browser, |
| - uint32_t behavior, |
| + Behavior behavior, |
| const std::vector<GURL>& urls_to_open); |
| // Restores the last session when the last session crashed. It's a wrapper |