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

Side by Side Diff: chrome/browser/download/download_exe.cc

Issue 199105: Continue with the FreeBSD port - this version builds and links, though... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 11 years, 3 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « chrome/browser/defaults.cc ('k') | chrome/browser/extensions/extension_host.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 <set> 5 #include <set>
6 #include <string> 6 #include <string>
7 7
8 #include "chrome/browser/download/download_util.h" 8 #include "chrome/browser/download/download_util.h"
9 9
10 #include "base/logging.h" 10 #include "base/logging.h"
(...skipping 120 matching lines...) Expand 10 before | Expand all | Expand 10 after
131 "vss", 131 "vss",
132 "vst", 132 "vst",
133 "vsw", 133 "vsw",
134 "ws", 134 "ws",
135 "wsc", 135 "wsc",
136 "wsf", 136 "wsf",
137 "wsh", 137 "wsh",
138 "xht", 138 "xht",
139 "xhtm", 139 "xhtm",
140 "xhtml", 140 "xhtml",
141 #elif defined(OS_LINUX) 141 #elif defined(OS_LINUX) || defined(OS_FREEBSD)
142 // TODO(estade): lengthen this list. 142 // TODO(estade): lengthen this list.
143 "exe", 143 "exe",
144 "pl", 144 "pl",
145 "py", 145 "py",
146 "rb", 146 "rb",
147 "sh", 147 "sh",
148 #elif defined(OS_MACOSX) 148 #elif defined(OS_MACOSX)
149 // TODO(thakis): Figure out what makes sense here -- crbug.com/19096 149 // TODO(thakis): Figure out what makes sense here -- crbug.com/19096
150 "dmg", 150 "dmg",
151 #endif 151 #endif
152 }; 152 };
153 153
154 void InitializeExeTypes(std::set<std::string>* exe_extensions) { 154 void InitializeExeTypes(std::set<std::string>* exe_extensions) {
155 DCHECK(exe_extensions); 155 DCHECK(exe_extensions);
156 for (size_t i = 0; i < arraysize(g_executables); ++i) 156 for (size_t i = 0; i < arraysize(g_executables); ++i)
157 exe_extensions->insert(g_executables[i]); 157 exe_extensions->insert(g_executables[i]);
158 } 158 }
159 159
160 } // namespace download_util 160 } // namespace download_util
OLDNEW
« no previous file with comments | « chrome/browser/defaults.cc ('k') | chrome/browser/extensions/extension_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698