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

Unified Diff: chrome/browser/ui/ash/launcher/chrome_launcher_controller.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/ui/ash/launcher/chrome_launcher_controller.cc
diff --git a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
index 7f722279aafcc2de45f7435d39d61bbbb44e401a..9eac2dc529fa3810143694f2736aacbb86262c29 100644
--- a/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
+++ b/chrome/browser/ui/ash/launcher/chrome_launcher_controller.cc
@@ -693,7 +693,7 @@ void ChromeLauncherController::LaunchApp(const std::string& app_id,
// The app will be created for the currently active profile.
AppLaunchParams params(
profile_, extension, ui::DispositionFromEventFlags(event_flags),
- chrome::HOST_DESKTOP_TYPE_ASH, extensions::SOURCE_APP_LAUNCHER);
+ ui::HOST_DESKTOP_TYPE_ASH, extensions::SOURCE_APP_LAUNCHER);
if (source != ash::LAUNCH_FROM_UNKNOWN &&
app_id == extensions::kWebStoreAppId) {
// Get the corresponding source string.
@@ -872,13 +872,13 @@ bool ChromeLauncherController::IsLoggedInAsGuest() {
void ChromeLauncherController::CreateNewWindow() {
// Use the currently active user.
- chrome::NewEmptyWindow(profile_, chrome::HOST_DESKTOP_TYPE_ASH);
+ chrome::NewEmptyWindow(profile_, ui::HOST_DESKTOP_TYPE_ASH);
}
void ChromeLauncherController::CreateNewIncognitoWindow() {
// Use the currently active user.
chrome::NewEmptyWindow(profile_->GetOffTheRecordProfile(),
- chrome::HOST_DESKTOP_TYPE_ASH);
+ ui::HOST_DESKTOP_TYPE_ASH);
}
void ChromeLauncherController::PersistPinnedState() {
@@ -2021,7 +2021,7 @@ void ChromeLauncherController::CloseWindowedAppsFromRemovedExtension(
// This function cannot rely on the controller's enumeration functionality
// since the extension has already be unloaded.
const BrowserList* ash_browser_list =
- BrowserList::GetInstance(chrome::HOST_DESKTOP_TYPE_ASH);
+ BrowserList::GetInstance(ui::HOST_DESKTOP_TYPE_ASH);
std::vector<Browser*> browser_to_close;
for (BrowserList::const_reverse_iterator
it = ash_browser_list->begin_last_active();

Powered by Google App Engine
This is Rietveld 408576698