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

Unified Diff: chrome/browser/ui/browser_commands.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/browser_commands.cc
diff --git a/chrome/browser/ui/browser_commands.cc b/chrome/browser/ui/browser_commands.cc
index 4b43f9887bf4facded5635ba2f30bc135d5d9379..543f8882b5e647665c57b1fc131d7fdde43aec53 100644
--- a/chrome/browser/ui/browser_commands.cc
+++ b/chrome/browser/ui/browser_commands.cc
@@ -320,7 +320,7 @@ int GetContentRestrictions(const Browser* browser) {
return content_restrictions;
}
-void NewEmptyWindow(Profile* profile, HostDesktopType desktop_type) {
+void NewEmptyWindow(Profile* profile, ui::HostDesktopType desktop_type) {
bool incognito = profile->IsOffTheRecord();
PrefService* prefs = profile->GetPrefs();
if (incognito) {
@@ -350,7 +350,7 @@ void NewEmptyWindow(Profile* profile, HostDesktopType desktop_type) {
}
}
-Browser* OpenEmptyWindow(Profile* profile, HostDesktopType desktop_type) {
+Browser* OpenEmptyWindow(Profile* profile, ui::HostDesktopType desktop_type) {
Browser* browser = new Browser(
Browser::CreateParams(Browser::TYPE_TABBED, profile, desktop_type));
AddTabAt(browser, GURL(), -1, true);
@@ -359,7 +359,7 @@ Browser* OpenEmptyWindow(Profile* profile, HostDesktopType desktop_type) {
}
void OpenWindowWithRestoredTabs(Profile* profile,
- HostDesktopType host_desktop_type) {
+ ui::HostDesktopType host_desktop_type) {
TabRestoreService* service = TabRestoreServiceFactory::GetForProfile(profile);
if (service)
service->RestoreMostRecentEntry(NULL, host_desktop_type);
@@ -367,7 +367,7 @@ void OpenWindowWithRestoredTabs(Profile* profile,
void OpenURLOffTheRecord(Profile* profile,
const GURL& url,
- chrome::HostDesktopType desktop_type) {
+ ui::HostDesktopType desktop_type) {
ScopedTabbedBrowserDisplayer displayer(profile->GetOffTheRecordProfile(),
desktop_type);
AddSelectedTabWithURL(displayer.browser(), url,
@@ -901,7 +901,7 @@ bool CanBasicPrint(Browser* browser) {
// is under Win8 ash, since showing the advanced print dialog will open it
// modally on the Desktop and hang the browser.
#if defined(OS_WIN)
- if (chrome::GetActiveDesktop() == chrome::HOST_DESKTOP_TYPE_ASH)
+ if (chrome::GetActiveDesktop() == ui::HOST_DESKTOP_TYPE_ASH)
return false;
#endif

Powered by Google App Engine
This is Rietveld 408576698