Index: chrome/browser/extensions/api/sessions/sessions_api.cc |
diff --git a/chrome/browser/extensions/api/sessions/sessions_api.cc b/chrome/browser/extensions/api/sessions/sessions_api.cc |
index d081b47815dd6dad2f58e586f222604d022a8bef..ee8ab59b28477626686577907c00824e7f4c86c3 100644 |
--- a/chrome/browser/extensions/api/sessions/sessions_api.cc |
+++ b/chrome/browser/extensions/api/sessions/sessions_api.cc |
@@ -442,7 +442,7 @@ bool SessionsRestoreFunction::SetResultRestoredWindow(int window_id) { |
bool SessionsRestoreFunction::RestoreMostRecentlyClosed(Browser* browser) { |
TabRestoreService* tab_restore_service = |
TabRestoreServiceFactory::GetForProfile(GetProfile()); |
- chrome::HostDesktopType host_desktop_type = browser->host_desktop_type(); |
+ ui::HostDesktopType host_desktop_type = browser->host_desktop_type(); |
TabRestoreService::Entries entries = tab_restore_service->entries(); |
if (entries.empty()) { |
@@ -471,7 +471,7 @@ bool SessionsRestoreFunction::RestoreLocalSession(const SessionId& session_id, |
Browser* browser) { |
TabRestoreService* tab_restore_service = |
TabRestoreServiceFactory::GetForProfile(GetProfile()); |
- chrome::HostDesktopType host_desktop_type = browser->host_desktop_type(); |
+ ui::HostDesktopType host_desktop_type = browser->host_desktop_type(); |
TabRestoreService::Entries entries = tab_restore_service->entries(); |
if (entries.empty()) { |
@@ -561,7 +561,7 @@ bool SessionsRestoreFunction::RestoreForeignSession(const SessionId& session_id, |
return false; |
} |
- chrome::HostDesktopType host_desktop_type = browser->host_desktop_type(); |
+ ui::HostDesktopType host_desktop_type = browser->host_desktop_type(); |
// Only restore one window at a time. |
std::vector<Browser*> browsers = SessionRestore::RestoreForeignSessionWindows( |
GetProfile(), host_desktop_type, window, window + 1); |
@@ -575,7 +575,7 @@ bool SessionsRestoreFunction::RunSync() { |
EXTENSION_FUNCTION_VALIDATE(params); |
Browser* browser = chrome::FindBrowserWithProfile( |
- GetProfile(), chrome::HOST_DESKTOP_TYPE_NATIVE); |
+ GetProfile(), ui::HOST_DESKTOP_TYPE_NATIVE); |
if (!browser) { |
SetError(kNoBrowserToRestoreSession); |
return false; |