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

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

Issue 2853363002: Rename the DownloadService to DownloadCoreService (Closed)
Patch Set: Created 3 years, 7 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) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 <stddef.h> 7 #include <stddef.h>
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
11 11
12 #include "base/bind.h" 12 #include "base/bind.h"
13 #include "base/bind_helpers.h" 13 #include "base/bind_helpers.h"
14 #include "base/files/file_util.h" 14 #include "base/files/file_util.h"
15 #include "base/lazy_instance.h" 15 #include "base/lazy_instance.h"
16 #include "base/logging.h" 16 #include "base/logging.h"
17 #include "base/macros.h" 17 #include "base/macros.h"
18 #include "base/path_service.h" 18 #include "base/path_service.h"
19 #include "base/strings/string_split.h" 19 #include "base/strings/string_split.h"
20 #include "base/strings/string_util.h" 20 #include "base/strings/string_util.h"
21 #include "base/strings/sys_string_conversions.h" 21 #include "base/strings/sys_string_conversions.h"
22 #include "base/strings/utf_string_conversions.h" 22 #include "base/strings/utf_string_conversions.h"
23 #include "build/build_config.h" 23 #include "build/build_config.h"
24 #include "chrome/browser/download/chrome_download_manager_delegate.h" 24 #include "chrome/browser/download/chrome_download_manager_delegate.h"
25 #include "chrome/browser/download/download_service.h"
26 #include "chrome/browser/download/download_service_factory.h"
27 #include "chrome/browser/download/download_target_determiner.h" 25 #include "chrome/browser/download/download_target_determiner.h"
28 #include "chrome/browser/profiles/profile.h" 26 #include "chrome/browser/profiles/profile.h"
29 #include "chrome/browser/profiles/profile_manager.h" 27 #include "chrome/browser/profiles/profile_manager.h"
30 #include "chrome/common/chrome_paths.h" 28 #include "chrome/common/chrome_paths.h"
31 #include "chrome/common/pref_names.h" 29 #include "chrome/common/pref_names.h"
32 #include "chrome/common/safe_browsing/file_type_policies.h" 30 #include "chrome/common/safe_browsing/file_type_policies.h"
33 #include "components/pref_registry/pref_registry_syncable.h" 31 #include "components/pref_registry/pref_registry_syncable.h"
34 #include "components/prefs/pref_service.h" 32 #include "components/prefs/pref_service.h"
35 #include "content/public/browser/browser_thread.h" 33 #include "content/public/browser/browser_thread.h"
36 #include "content/public/browser/download_manager.h" 34 #include "content/public/browser/download_manager.h"
(...skipping 345 matching lines...) Expand 10 before | Expand all | Expand 10 after
382 extensions.erase(extensions.size() - 1); 380 extensions.erase(extensions.size() - 1);
383 381
384 profile_->GetPrefs()->SetString(prefs::kDownloadExtensionsToOpen, extensions); 382 profile_->GetPrefs()->SetString(prefs::kDownloadExtensionsToOpen, extensions);
385 } 383 }
386 384
387 bool DownloadPrefs::AutoOpenCompareFunctor::operator()( 385 bool DownloadPrefs::AutoOpenCompareFunctor::operator()(
388 const base::FilePath::StringType& a, 386 const base::FilePath::StringType& a,
389 const base::FilePath::StringType& b) const { 387 const base::FilePath::StringType& b) const {
390 return base::FilePath::CompareLessIgnoreCase(a, b); 388 return base::FilePath::CompareLessIgnoreCase(a, b);
391 } 389 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698