summaryrefslogtreecommitdiffstats
path: root/chrome/browser/web_applications
diff options
context:
space:
mode:
authorchromium@hybridsource.org <chromium@hybridsource.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-28 04:06:43 +0000
committerchromium@hybridsource.org <chromium@hybridsource.org@0039d316-1c4b-4281-b951-d872f2087c98>2011-05-28 04:06:43 +0000
commit1fd5302cf7083ff593667703d144aa84d3cf7e5d (patch)
treed64d5a1e377638aa696b57d4ba2bb928779752b5 /chrome/browser/web_applications
parent8b02f7de252dba372f6f393a2f0130f893af3cb9 (diff)
downloadchromium_src-1fd5302cf7083ff593667703d144aa84d3cf7e5d.zip
chromium_src-1fd5302cf7083ff593667703d144aa84d3cf7e5d.tar.gz
chromium_src-1fd5302cf7083ff593667703d144aa84d3cf7e5d.tar.bz2
Replace many OS_LINUX ifdefs with OS_POSIX & !OS_MACOSX, since most of them apply to non-linux Unix also. Non-linux Unices tested are the BSDs and Solaris.
Review URL: http://codereview.chromium.org/3556009 git-svn-id: svn://svn.chromium.org/chrome/trunk/src@87156 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/browser/web_applications')
-rw-r--r--chrome/browser/web_applications/web_app.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/chrome/browser/web_applications/web_app.cc b/chrome/browser/web_applications/web_app.cc
index 31dd877..cbae635 100644
--- a/chrome/browser/web_applications/web_app.cc
+++ b/chrome/browser/web_applications/web_app.cc
@@ -23,9 +23,9 @@
#include "chrome/common/url_constants.h"
#include "content/browser/browser_thread.h"
-#if defined(OS_LINUX)
+#if defined(OS_POSIX) && !defined(OS_MACOSX)
#include "base/environment.h"
-#endif // defined(OS_LINUX)
+#endif
#if defined(OS_WIN)
#include "ui/gfx/icon_util.h"
@@ -221,7 +221,7 @@ void CreateShortcutTask::Run() {
bool CreateShortcutTask::CreateShortcut() {
DCHECK(BrowserThread::CurrentlyOn(BrowserThread::FILE));
-#if defined(OS_LINUX)
+#if defined(OS_POSIX) && !defined(OS_MACOSX)
scoped_ptr<base::Environment> env(base::Environment::Create());
std::string shortcut_template;