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

Unified Diff: chrome/common/auto_start_linux.cc

Issue 10548019: Cleanup: Consolidate declarations of XDG variables. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 8 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « base/nix/xdg_util.cc ('k') | chrome/common/chrome_paths_linux.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/common/auto_start_linux.cc
===================================================================
--- chrome/common/auto_start_linux.cc (revision 141792)
+++ chrome/common/auto_start_linux.cc (working copy)
@@ -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;
}
« no previous file with comments | « base/nix/xdg_util.cc ('k') | chrome/common/chrome_paths_linux.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698