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

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

Issue 6594063: Update a bunch of files to the new location of browser_thread.h (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 9 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
OLDNEW
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/file_util.h" 7 #include "base/file_util.h"
8 #include "base/string_split.h" 8 #include "base/string_split.h"
9 #include "base/string_util.h" 9 #include "base/string_util.h"
10 #include "base/sys_string_conversions.h" 10 #include "base/sys_string_conversions.h"
11 #include "base/utf_string_conversions.h" 11 #include "base/utf_string_conversions.h"
12 #include "chrome/browser/browser_thread.h"
13 #include "chrome/browser/download/download_extensions.h" 12 #include "chrome/browser/download/download_extensions.h"
14 #include "chrome/browser/download/download_util.h" 13 #include "chrome/browser/download/download_util.h"
15 #include "chrome/browser/download/save_package.h" 14 #include "chrome/browser/download/save_package.h"
16 #include "chrome/browser/prefs/pref_service.h" 15 #include "chrome/browser/prefs/pref_service.h"
17 #include "chrome/common/pref_names.h" 16 #include "chrome/common/pref_names.h"
17 #include "content/browser/browser_thread.h"
18 18
19 DownloadPrefs::DownloadPrefs(PrefService* prefs) : prefs_(prefs) { 19 DownloadPrefs::DownloadPrefs(PrefService* prefs) : prefs_(prefs) {
20 prompt_for_download_.Init(prefs::kPromptForDownload, prefs, NULL); 20 prompt_for_download_.Init(prefs::kPromptForDownload, prefs, NULL);
21 download_path_.Init(prefs::kDownloadDefaultDirectory, prefs, NULL); 21 download_path_.Init(prefs::kDownloadDefaultDirectory, prefs, NULL);
22 save_file_type_.Init(prefs::kSaveFileType, prefs, NULL); 22 save_file_type_.Init(prefs::kSaveFileType, prefs, NULL);
23 23
24 // We store any file extension that should be opened automatically at 24 // We store any file extension that should be opened automatically at
25 // download completion in this pref. 25 // download completion in this pref.
26 std::string extensions_to_open = 26 std::string extensions_to_open =
27 prefs->GetString(prefs::kDownloadExtensionsToOpen); 27 prefs->GetString(prefs::kDownloadExtensionsToOpen);
(...skipping 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
143 extensions.erase(extensions.size() - 1); 143 extensions.erase(extensions.size() - 1);
144 144
145 prefs_->SetString(prefs::kDownloadExtensionsToOpen, extensions); 145 prefs_->SetString(prefs::kDownloadExtensionsToOpen, extensions);
146 } 146 }
147 147
148 bool DownloadPrefs::AutoOpenCompareFunctor::operator()( 148 bool DownloadPrefs::AutoOpenCompareFunctor::operator()(
149 const FilePath::StringType& a, 149 const FilePath::StringType& a,
150 const FilePath::StringType& b) const { 150 const FilePath::StringType& b) const {
151 return FilePath::CompareLessIgnoreCase(a, b); 151 return FilePath::CompareLessIgnoreCase(a, b);
152 } 152 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_manager.cc ('k') | chrome/browser/download/download_request_limiter.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698