diff options
author | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-13 23:20:22 +0000 |
---|---|---|
committer | thestig@chromium.org <thestig@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2012-06-13 23:20:22 +0000 |
commit | 9528c9a4896e8c070ce26228822d00715532f483 (patch) | |
tree | 06b9a94d8cf87aa386a2d9e6923f8e702bde6945 /chrome/common/auto_start_linux.cc | |
parent | 46e9acad2bf6624ccb9d9eddc339bba6104e3c68 (diff) | |
download | chromium_src-9528c9a4896e8c070ce26228822d00715532f483.zip chromium_src-9528c9a4896e8c070ce26228822d00715532f483.tar.gz chromium_src-9528c9a4896e8c070ce26228822d00715532f483.tar.bz2 |
Cleanup: Consolidate declarations of XDG variables.
BUG=none
TEST=none
Review URL: https://chromiumcodereview.appspot.com/10548019
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@142014 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'chrome/common/auto_start_linux.cc')
-rw-r--r-- | chrome/common/auto_start_linux.cc | 9 |
1 files changed, 4 insertions, 5 deletions
diff --git a/chrome/common/auto_start_linux.cc b/chrome/common/auto_start_linux.cc index 099cb5e..6041f0e 100644 --- a/chrome/common/auto_start_linux.cc +++ b/chrome/common/auto_start_linux.cc @@ -1,4 +1,4 @@ -// Copyright (c) 2011 The Chromium Authors. All rights reserved. +// Copyright (c) 2012 The Chromium Authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. @@ -14,12 +14,11 @@ namespace { const FilePath::CharType kAutostart[] = "autostart"; -const FilePath::CharType kConfig[] = ".config"; -const char kXdgConfigHome[] = "XDG_CONFIG_HOME"; FilePath GetAutostartDirectory(base::Environment* environment) { - FilePath result = - base::nix::GetXDGDirectory(environment, kXdgConfigHome, kConfig); + FilePath result = base::nix::GetXDGDirectory(environment, + base::nix::kXdgConfigHomeEnvVar, + base::nix::kDotConfigDir); result = result.Append(kAutostart); return result; } |