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

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

Issue 4247: Port some things in browser/{download,history}, minor things in common.... (Closed) Base URL: http://src.chromium.org/svn/trunk/src/
Patch Set: '' Created 12 years, 2 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/download/download_exe.h ('k') | chrome/browser/download/download_util.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 "chrome/browser/download/download_exe.h"
6
5 #include <set> 7 #include <set>
6 #include <string> 8 #include <string>
7 9
8 #include "chrome/browser/download/download_util.h" 10 #include "base/logging.h"
9 11
10 namespace download_util { 12 namespace download_util {
11 13
12 // For file extensions taken from mozilla: 14 // For file extensions taken from mozilla:
13 15
14 /* ***** BEGIN LICENSE BLOCK ***** 16 /* ***** BEGIN LICENSE BLOCK *****
15 * Version: MPL 1.1/GPL 2.0/LGPL 2.1 17 * Version: MPL 1.1/GPL 2.0/LGPL 2.1
16 * 18 *
17 * The contents of this file are subject to the Mozilla Public License Version 19 * The contents of this file are subject to the Mozilla Public License Version
18 * 1.1 (the "License"); you may not use this file except in compliance with 20 * 1.1 (the "License"); you may not use this file except in compliance with
(...skipping 109 matching lines...) Expand 10 before | Expand all | Expand 10 after
128 }; 130 };
129 131
130 void InitializeExeTypes(std::set<std::wstring>* exe_extensions) { 132 void InitializeExeTypes(std::set<std::wstring>* exe_extensions) {
131 DCHECK(exe_extensions); 133 DCHECK(exe_extensions);
132 for (size_t i = 0; i < arraysize(g_executables); ++i) 134 for (size_t i = 0; i < arraysize(g_executables); ++i)
133 exe_extensions->insert(g_executables[i]); 135 exe_extensions->insert(g_executables[i]);
134 } 136 }
135 137
136 } // namespace download_util 138 } // namespace download_util
137 139
OLDNEW
« no previous file with comments | « chrome/browser/download/download_exe.h ('k') | chrome/browser/download/download_util.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698