From 9146221ca83c4996713894316661b442b20c9e28 Mon Sep 17 00:00:00 2001 From: "sky@chromium.org" Date: Fri, 10 Apr 2009 15:09:39 +0000 Subject: Adds some ifdefs so that test_shell can be compiled on linux without GTK. I had to recreate this patch as my workspace for various resonds. UGH! BUG=none TEST=none Review URL: http://codereview.chromium.org/67024 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@13503 0039d316-1c4b-4281-b951-d872f2087c98 --- chrome/common/chrome_paths_linux.cc | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'chrome/common/chrome_paths_linux.cc') diff --git a/chrome/common/chrome_paths_linux.cc b/chrome/common/chrome_paths_linux.cc index d3ce207..b1151c5 100644 --- a/chrome/common/chrome_paths_linux.cc +++ b/chrome/common/chrome_paths_linux.cc @@ -4,7 +4,9 @@ #include "chrome/common/chrome_paths_internal.h" +#if defined(TOOLKIT_GTK) #include +#endif #include #include "base/file_path.h" @@ -19,9 +21,11 @@ FilePath GetHomeDir() { if (home_dir && home_dir[0]) return FilePath(home_dir); +#if defined(TOOLKIT_GTK) home_dir = g_get_home_dir(); if (home_dir && home_dir[0]) return FilePath(home_dir); +#endif FilePath rv; if (PathService::Get(base::DIR_TEMP, &rv)) -- cgit v1.1