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

Unified Diff: chrome/browser/extensions/api/sessions/sessions_api.cc

Issue 1336823003: Move chrome::HostDesktopType to ui::HostDesktopType (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@base_session_service_delegate_impl
Patch Set: Fix build on Mac and CrOS Created 5 years, 3 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/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;

Powered by Google App Engine
This is Rietveld 408576698