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

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

Issue 2469363002: Tech Debt Repayment for StartupBrowserCreatorImpl Refactor (Closed)
Patch Set: Session restore formatting Created 3 years, 10 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.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
+ // 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
« no previous file with comments | « no previous file | chrome/browser/sessions/session_restore.cc » ('j') | chrome/browser/ui/startup/startup_browser_creator_impl.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698