OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_prefs.h" | 5 #include "chrome/browser/download/download_prefs.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/bind_helpers.h" | 8 #include "base/bind_helpers.h" |
9 #include "base/file_util.h" | 9 #include "base/file_util.h" |
10 #include "base/logging.h" | 10 #include "base/logging.h" |
11 #include "base/string_split.h" | 11 #include "base/string_split.h" |
12 #include "base/string_util.h" | 12 #include "base/string_util.h" |
13 #include "base/sys_string_conversions.h" | 13 #include "base/sys_string_conversions.h" |
14 #include "base/task.h" | |
15 #include "base/utf_string_conversions.h" | 14 #include "base/utf_string_conversions.h" |
16 #include "chrome/browser/download/chrome_download_manager_delegate.h" | 15 #include "chrome/browser/download/chrome_download_manager_delegate.h" |
17 #include "chrome/browser/download/download_extensions.h" | 16 #include "chrome/browser/download/download_extensions.h" |
18 #include "chrome/browser/download/download_service.h" | 17 #include "chrome/browser/download/download_service.h" |
19 #include "chrome/browser/download/download_service_factory.h" | 18 #include "chrome/browser/download/download_service_factory.h" |
20 #include "chrome/browser/download/download_util.h" | 19 #include "chrome/browser/download/download_util.h" |
21 #include "chrome/browser/prefs/pref_service.h" | 20 #include "chrome/browser/prefs/pref_service.h" |
22 #include "chrome/browser/profiles/profile.h" | 21 #include "chrome/browser/profiles/profile.h" |
23 #include "chrome/common/pref_names.h" | 22 #include "chrome/common/pref_names.h" |
24 #include "content/browser/download/save_package.h" | 23 #include "content/browser/download/save_package.h" |
(...skipping 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
180 extensions.erase(extensions.size() - 1); | 179 extensions.erase(extensions.size() - 1); |
181 | 180 |
182 prefs_->SetString(prefs::kDownloadExtensionsToOpen, extensions); | 181 prefs_->SetString(prefs::kDownloadExtensionsToOpen, extensions); |
183 } | 182 } |
184 | 183 |
185 bool DownloadPrefs::AutoOpenCompareFunctor::operator()( | 184 bool DownloadPrefs::AutoOpenCompareFunctor::operator()( |
186 const FilePath::StringType& a, | 185 const FilePath::StringType& a, |
187 const FilePath::StringType& b) const { | 186 const FilePath::StringType& b) const { |
188 return FilePath::CompareLessIgnoreCase(a, b); | 187 return FilePath::CompareLessIgnoreCase(a, b); |
189 } | 188 } |
OLD | NEW |