Index: chrome/browser/ui/browser_tabrestore.cc |
diff --git a/chrome/browser/ui/browser_tabrestore.cc b/chrome/browser/ui/browser_tabrestore.cc |
index ca3a06d0ce87e1621a44fe63847d5c5fbf949281..084d6fcdea5a98a9af52fd2b5e5c3c650aee2052 100644 |
--- a/chrome/browser/ui/browser_tabrestore.cc |
+++ b/chrome/browser/ui/browser_tabrestore.cc |
@@ -19,6 +19,7 @@ |
#include "content/public/browser/session_storage_namespace.h" |
#include "content/public/browser/web_contents.h" |
+using content::RestoreType; |
using content::WebContents; |
using content::NavigationController; |
using content::NavigationEntry; |
@@ -29,13 +30,12 @@ namespace chrome { |
namespace { |
-NavigationController::RestoreType GetRestoreType(Browser* browser, |
- bool from_last_session) { |
+RestoreType GetRestoreType(Browser* browser, bool from_last_session) { |
if (!from_last_session) |
- return NavigationController::RESTORE_CURRENT_SESSION; |
- return browser->profile()->GetLastSessionExitType() == Profile::EXIT_CRASHED ? |
- NavigationController::RESTORE_LAST_SESSION_CRASHED : |
- NavigationController::RESTORE_LAST_SESSION_EXITED_CLEANLY; |
+ return RestoreType::CURRENT_SESSION; |
+ return browser->profile()->GetLastSessionExitType() == Profile::EXIT_CRASHED |
+ ? RestoreType::LAST_SESSION_CRASHED |
+ : RestoreType::LAST_SESSION_EXITED_CLEANLY; |
} |
WebContents* CreateRestoredTab( |