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

Side by Side Diff: chrome/common/chrome_paths_linux.cc

Issue 338025: Remove the Chrome Frame preprocessor define in chrome_constants.cc (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 11 years, 1 month 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 unified diff | Download patch | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "chrome/common/chrome_paths_internal.h" 5 #include "chrome/common/chrome_paths_internal.h"
6 6
7 #include <glib.h> 7 #include <glib.h>
8 #include <stdlib.h> 8 #include <stdlib.h>
9 9
10 #include "base/file_path.h" 10 #include "base/file_path.h"
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
65 bool GetDefaultUserDataDirectory(FilePath* result) { 65 bool GetDefaultUserDataDirectory(FilePath* result) {
66 FilePath config_dir(GetXDGDirectory("XDG_CONFIG_HOME", ".config")); 66 FilePath config_dir(GetXDGDirectory("XDG_CONFIG_HOME", ".config"));
67 #if defined(GOOGLE_CHROME_BUILD) 67 #if defined(GOOGLE_CHROME_BUILD)
68 *result = config_dir.Append("google-chrome"); 68 *result = config_dir.Append("google-chrome");
69 #else 69 #else
70 *result = config_dir.Append("chromium"); 70 *result = config_dir.Append("chromium");
71 #endif 71 #endif
72 return true; 72 return true;
73 } 73 }
74 74
75 bool GetChromeFrameUserDataDirectory(FilePath* result) {
76 FilePath config_dir(GetXDGDirectory("XDG_CONFIG_HOME", ".config"));
77 #if defined(GOOGLE_CHROME_BUILD)
kuchhal 2009/10/27 18:47:26 I think you want to check for CHROME_FRAME_BUILD?
robertshield 2009/10/27 19:55:37 No, I want to check for GOOGLE_CHROME_BUILD (see o
78 *result = config_dir.Append("google-chrome-frame");
79 #else
80 *result = config_dir.Append("chrome-frame");
81 #endif
82 return true;
83 }
84
75 // See http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html 85 // See http://standards.freedesktop.org/basedir-spec/basedir-spec-latest.html
76 // for a spec on where cache files go. The net effect for most 86 // for a spec on where cache files go. The net effect for most
77 // systems is we use ~/.cache/chromium/ for Chromium and 87 // systems is we use ~/.cache/chromium/ for Chromium and
78 // ~/.cache/google-chrome/ for official builds. 88 // ~/.cache/google-chrome/ for official builds.
79 bool GetUserCacheDirectory(FilePath* result) { 89 bool GetUserCacheDirectory(FilePath* result) {
80 FilePath cache_dir(GetXDGDirectory("XDG_CACHE_HOME", ".cache")); 90 FilePath cache_dir(GetXDGDirectory("XDG_CACHE_HOME", ".cache"));
81 #if defined(GOOGLE_CHROME_BUILD) 91 #if defined(GOOGLE_CHROME_BUILD)
82 *result = cache_dir.Append("google-chrome"); 92 *result = cache_dir.Append("google-chrome");
83 #else 93 #else
84 *result = cache_dir.Append("chromium"); 94 *result = cache_dir.Append("chromium");
(...skipping 25 matching lines...) Expand all
110 120
111 return true; 121 return true;
112 } 122 }
113 123
114 bool GetUserDesktop(FilePath* result) { 124 bool GetUserDesktop(FilePath* result) {
115 *result = GetXDGUserDirectory("DESKTOP", "Desktop"); 125 *result = GetXDGUserDirectory("DESKTOP", "Desktop");
116 return true; 126 return true;
117 } 127 }
118 128
119 } // namespace chrome 129 } // namespace chrome
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698