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

Issue 27186: Use xdg_user_dir_lookup to lookup directories. (Closed)

Created:
11 years, 10 months ago by Lei Zhang
Modified:
9 years, 7 months ago
Reviewers:
Evan Martin, Evan Stade
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Add xdg-user-dirs to chrome/third_party. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=10553

Patch Set 1 #

Patch Set 2 : '' #

Total comments: 7

Patch Set 3 : '' #

Total comments: 12

Patch Set 4 : '' #

Total comments: 1

Patch Set 5 : '' #

Patch Set 6 : '' #

Total comments: 6

Patch Set 7 : '' #

Unified diffs Side-by-side diffs Delta from patch set Stats (+311 lines, -20 lines) Patch
M chrome/common/chrome_paths_linux.cc View 1 2 3 4 5 6 3 chunks +42 lines, -20 lines 0 comments Download
M chrome/common/common.scons View 1 2 3 4 5 6 1 chunk +1 line, -0 lines 0 comments Download
A chrome/third_party/xdg_user_dirs/README.chromium View 1 chunk +3 lines, -0 lines 0 comments Download
A chrome/third_party/xdg_user_dirs/xdg_user_dir_lookup.h View 1 chunk +33 lines, -0 lines 0 comments Download
A chrome/third_party/xdg_user_dirs/xdg_user_dir_lookup.cc View 1 chunk +232 lines, -0 lines 0 comments Download

Messages

Total messages: 11 (0 generated)
Lei Zhang
11 years, 10 months ago (2009-02-26 01:13:39 UTC) #1
Evan Stade
http://codereview.chromium.org/27186/diff/1002/1003 File chrome/common/chrome_paths_linux.cc (right): http://codereview.chromium.org/27186/diff/1002/1003#newcode13 Line 13: char* xdg_user_dir_lookup(const char *type); you should check in ...
11 years, 10 months ago (2009-02-26 01:26:54 UTC) #2
Lei Zhang
http://codereview.chromium.org/27186/diff/1002/1003 File chrome/common/chrome_paths_linux.cc (right): http://codereview.chromium.org/27186/diff/1002/1003#newcode13 Line 13: char* xdg_user_dir_lookup(const char *type); On 2009/02/26 01:26:54, estade ...
11 years, 10 months ago (2009-02-26 01:57:52 UTC) #3
Evan Martin
http://codereview.chromium.org/27186/diff/12/1009 File chrome/common/chrome_paths_linux.cc (right): http://codereview.chromium.org/27186/diff/12/1009#newcode20 Line 20: return FilePath("/tmp/"); Why not g_get_home_dir()? That looks up ...
11 years, 10 months ago (2009-02-26 02:04:50 UTC) #4
Evan Stade
http://codereview.chromium.org/27186/diff/12/1009 File chrome/common/chrome_paths_linux.cc (right): http://codereview.chromium.org/27186/diff/12/1009#newcode20 Line 20: return FilePath("/tmp/"); PathService::Get(base::DIR_TEMP, &rv) http://codereview.chromium.org/27186/diff/12/1009#newcode26 Line 26: FilePath ...
11 years, 10 months ago (2009-02-26 02:05:30 UTC) #5
Lei Zhang
http://codereview.chromium.org/27186/diff/12/1009 File chrome/common/chrome_paths_linux.cc (right): http://codereview.chromium.org/27186/diff/12/1009#newcode20 Line 20: return FilePath("/tmp/"); On 2009/02/26 02:04:50, Evan Martin wrote: ...
11 years, 10 months ago (2009-02-26 02:19:44 UTC) #6
Evan Stade
http://codereview.chromium.org/27186/diff/21/22 File chrome/common/chrome_paths_linux.cc (right): http://codereview.chromium.org/27186/diff/21/22#newcode49 Line 49: FilePath GetXDGDirectory(const char* env_name, const char* fallback_dir) { ...
11 years, 10 months ago (2009-02-26 02:23:23 UTC) #7
Evan Martin
http://codereview.chromium.org/27186/diff/12/1009 File chrome/common/chrome_paths_linux.cc (right): http://codereview.chromium.org/27186/diff/12/1009#newcode27 Line 27: char* xdg_dir = xdg_user_dir_lookup(env_name); On 2009/02/26 02:19:44, Lei ...
11 years, 10 months ago (2009-02-26 02:33:26 UTC) #8
Lei Zhang
On 2009/02/26 02:33:26, Evan Martin wrote: > http://codereview.chromium.org/27186/diff/12/1009 > File chrome/common/chrome_paths_linux.cc (right): > > http://codereview.chromium.org/27186/diff/12/1009#newcode27 ...
11 years, 10 months ago (2009-02-26 02:47:51 UTC) #9
Evan Stade
LG with a couple nits http://codereview.chromium.org/27186/diff/1037/34 File chrome/common/chrome_paths_linux.cc (right): http://codereview.chromium.org/27186/diff/1037/34#newcode9 Line 9: #include <string.h> do ...
11 years, 10 months ago (2009-02-26 18:47:02 UTC) #10
Lei Zhang
11 years, 10 months ago (2009-02-26 19:09:40 UTC) #11
http://codereview.chromium.org/27186/diff/1037/34
File chrome/common/chrome_paths_linux.cc (right):

http://codereview.chromium.org/27186/diff/1037/34#newcode9
Line 9: #include <string.h>
On 2009/02/26 18:47:03, estade wrote:
> do you still need these headers?

Still need stdlib for getenv(), removed string.h.

http://codereview.chromium.org/27186/diff/1037/34#newcode41
Line 41: FilePath rv = FilePath(xdg_dir);
On 2009/02/26 18:47:03, estade wrote:
> typically our style is 
> 
> FilePath rv(xdg_dir);
> 
> but I'm not sure how important that is to follow.

Not used to that, but ok. Also changed FilePath config_dir while I'm at it.

http://codereview.chromium.org/27186/diff/1037/35
File chrome/common/common.scons (right):

http://codereview.chromium.org/27186/diff/1037/35#newcode287
Line 287: '$CHROME_DIR/third_party/xdg_user_dirs/xdg_user_dir_lookup.cc',
On 2009/02/26 18:47:03, estade wrote:
> this looks funny to me... but, I know nothing of scons.

This is ok. I doubt we need a separate scons file for xdg_user_dirs, which we
won't use anywhere else.

Powered by Google App Engine
This is Rietveld 408576698