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

Issue 1572042: GTK: Improve xfce detection. (Closed)

Created:
10 years, 8 months ago by Elliot Glaysher
Modified:
9 years, 7 months ago
Reviewers:
Evan Martin, Evan Stade
CC:
chromium-reviews, brettw-cc_chromium.org, Paweł Hajdan Jr.
Visibility:
Public.

Description

GTK: Improve xfce detection. On Hardy, the DESKTOP_SESSION environment variable is "xfce4" but on Karmic, it is "xfce" BUG=none TEST=none Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=44698

Patch Set 1 #

Total comments: 1

Patch Set 2 : Add unit tests #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+79 lines, -6 lines) Patch
M base/base.gyp View 1 chunk +3 lines, -0 lines 0 comments Download
M base/linux_util.h View 1 chunk +2 lines, -1 line 0 comments Download
M base/linux_util.cc View 1 1 chunk +5 lines, -5 lines 1 comment Download
A base/linux_util_unittest.cc View 1 chunk +69 lines, -0 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
Elliot Glaysher
10 years, 8 months ago (2010-04-15 17:45:03 UTC) #1
Evan Martin
LGTM ...gar, we don't have any tests for this code? Even though we have the ...
10 years, 8 months ago (2010-04-15 17:49:22 UTC) #2
Evan Stade
http://codereview.chromium.org/1572042/diff/1/2 File base/linux_util.cc (right): http://codereview.chromium.org/1572042/diff/1/2#newcode242 base/linux_util.cc:242: else if (desktop_session == "xfce4" || desktop_session == "xfce") ...
10 years, 8 months ago (2010-04-15 18:56:42 UTC) #3
Elliot Glaysher
On 2010/04/15 17:49:22, Evan Martin wrote: > ...gar, we don't have any tests for this ...
10 years, 8 months ago (2010-04-15 19:27:43 UTC) #4
Evan Martin
10 years, 8 months ago (2010-04-15 19:30:59 UTC) #5
LGTM

I didn't mean to block your previous commit on this, but good on you.

http://codereview.chromium.org/1572042/diff/6001/7002
File base/linux_util.cc (right):

http://codereview.chromium.org/1572042/diff/6001/7002#newcode239
base/linux_util.cc:239: return DESKTOP_ENVIRONMENT_KDE4;
I wonder if this means we break on KDE5.  (Please don't let this comment deter
you from committing.)

http://codereview.chromium.org/1572042/diff/6001/7004
File base/linux_util_unittest.cc (right):

http://codereview.chromium.org/1572042/diff/6001/7004#newcode19
base/linux_util_unittest.cc:19: MOCK_METHOD2(GetEnv, bool(const char*,
std::string* result));
Whoa, you just blew my mind.

Powered by Google App Engine
This is Rietveld 408576698