| Index: chrome/browser/browser.cc
|
| ===================================================================
|
| --- chrome/browser/browser.cc (revision 25977)
|
| +++ chrome/browser/browser.cc (working copy)
|
| @@ -227,7 +227,7 @@
|
|
|
| BrowserList::RemoveBrowser(this);
|
|
|
| -#if defined(OS_WIN) || defined(OS_LINUX)
|
| +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_FREEBSD)
|
| if (!BrowserList::HasBrowserWithProfile(profile_)) {
|
| // We're the last browser window with this profile. We need to nuke the
|
| // TabRestoreService, which will start the shutdown of the
|
| @@ -471,7 +471,7 @@
|
| #if defined(OS_MACOSX) || defined(OS_CHROMEOS)
|
| // On Mac, we don't want to suffix the page title with the application name.
|
| return title;
|
| -#elif defined(OS_WIN) || defined(OS_LINUX)
|
| +#elif defined(OS_WIN) || defined(OS_LINUX) || defined(OS_FREEBSD)
|
| int string_id = IDS_BROWSER_WINDOW_TITLE_FORMAT;
|
| // Don't append the app name to window titles when we're not displaying a
|
| // distributor logo for the frame.
|
| @@ -526,7 +526,7 @@
|
| if (!ShouldCloseWindow())
|
| return;
|
|
|
| -#if defined(OS_WIN) || defined(OS_LINUX)
|
| +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_FREEBSD)
|
| // We don't want to do this on Mac since closing all windows isn't a sign
|
| // that the app is shutting down.
|
| if (BrowserList::size() == 1)
|
| @@ -915,9 +915,9 @@
|
| void Browser::ToggleFullscreenMode() {
|
| UserMetrics::RecordAction(L"ToggleFullscreen", profile_);
|
| window_->SetFullscreen(!window_->IsFullscreen());
|
| - // On Linux, setting fullscreen mode is an async call to the X server, which
|
| + // On X/11, setting fullscreen mode is an async call to the X server, which
|
| // may or may not support fullscreen mode.
|
| -#if !defined(OS_LINUX)
|
| +#if !defined(USE_X11)
|
| UpdateCommandsForFullscreenMode(window_->IsFullscreen());
|
| #endif
|
| }
|
| @@ -997,7 +997,7 @@
|
|
|
| void Browser::Print() {
|
| UserMetrics::RecordAction(L"PrintPreview", profile_);
|
| -#if defined(OS_WIN) || defined(OS_LINUX)
|
| +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_FREEBSD)
|
| GetSelectedTabContents()->PrintPreview();
|
| #else
|
| NOTIMPLEMENTED();
|
| @@ -1119,7 +1119,7 @@
|
|
|
| void Browser::OpenCreateShortcutsDialog() {
|
| UserMetrics::RecordAction(L"CreateShortcut", profile_);
|
| -#if defined(OS_WIN) || defined(OS_LINUX)
|
| +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_FREEBSD)
|
| GetSelectedTabContents()->CreateShortcut();
|
| #else
|
| NOTIMPLEMENTED();
|
| @@ -1616,7 +1616,7 @@
|
| }
|
|
|
| void Browser::CloseFrameAfterDragSession() {
|
| -#if defined(OS_WIN) || defined(OS_LINUX)
|
| +#if defined(OS_WIN) || defined(OS_LINUX) || defined(OS_FREEBSD)
|
| // This is scheduled to run after we return to the message loop because
|
| // otherwise the frame will think the drag session is still active and ignore
|
| // the request.
|
|
|