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

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

Issue 165295: Add "dangerous download" view on OS X, for now for dmg files. Also fix download item layout. (Closed)
Patch Set: Address comments Created 11 years, 4 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
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 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
138 "xht", 138 "xht",
139 "xhtm", 139 "xhtm",
140 "xhtml", 140 "xhtml",
141 #elif defined(OS_LINUX) 141 #elif defined(OS_LINUX)
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 #endif // defined(OS_LINUX) 148 #elif defined(OS_MACOSX)
149 // TODO(thakis): Figure out what makes sense here -- crbug.com/19096
150 "dmg",
151 #endif
149 }; 152 };
150 153
151 void InitializeExeTypes(std::set<std::string>* exe_extensions) { 154 void InitializeExeTypes(std::set<std::string>* exe_extensions) {
152 DCHECK(exe_extensions); 155 DCHECK(exe_extensions);
153 for (size_t i = 0; i < arraysize(g_executables); ++i) 156 for (size_t i = 0; i < arraysize(g_executables); ++i)
154 exe_extensions->insert(g_executables[i]); 157 exe_extensions->insert(g_executables[i]);
155 } 158 }
156 159
157 } // namespace download_util 160 } // namespace download_util
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/download_shelf_controller.mm ('k') | chrome/browser/download/download_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698