summaryrefslogtreecommitdiffstats
path: root/chrome/browser/process_singleton_linux.cc
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/process_singleton_linux.cc')
-rw-r--r--chrome/browser/process_singleton_linux.cc6
1 files changed, 6 insertions, 0 deletions
diff --git a/chrome/browser/process_singleton_linux.cc b/chrome/browser/process_singleton_linux.cc
index 5b122ef..cd6ccdb 100644
--- a/chrome/browser/process_singleton_linux.cc
+++ b/chrome/browser/process_singleton_linux.cc
@@ -43,7 +43,9 @@
#include <errno.h>
#include <fcntl.h>
+#if defined(TOOLKIT_USES_GTK)
#include <gdk/gdk.h>
+#endif
#include <signal.h>
#include <sys/socket.h>
#include <sys/stat.h>
@@ -311,6 +313,8 @@ void DisplayProfileInUseError(const std::string& lock_path,
if (!CommandLine::ForCurrentProcess()->HasSwitch(
switches::kNoProcessSingletonDialog))
ProcessSingletonDialog::ShowAndRun(UTF16ToUTF8(error));
+#else
+ NOTIMPLEMENTED();
#endif
}
@@ -874,9 +878,11 @@ ProcessSingleton::NotifyResult ProcessSingleton::NotifyOtherProcessWithTimeout(
// The other process is shutting down, it's safe to start a new process.
return PROCESS_NONE;
} else if (strncmp(buf, kACKToken, arraysize(kACKToken) - 1) == 0) {
+#if defined(TOOLKIT_USES_GTK)
// Notify the window manager that we've started up; if we do not open a
// window, GTK will not automatically call this for us.
gdk_notify_startup_complete();
+#endif
// Assume the other process is handling the request.
return PROCESS_NOTIFIED;
}