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

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

Issue 1658793002: Update chrome for new prefs location. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 10 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/prefs/pref_service.h"
20 #include "base/strings/string_split.h" 19 #include "base/strings/string_split.h"
21 #include "base/strings/string_util.h" 20 #include "base/strings/string_util.h"
22 #include "base/strings/sys_string_conversions.h" 21 #include "base/strings/sys_string_conversions.h"
23 #include "base/strings/utf_string_conversions.h" 22 #include "base/strings/utf_string_conversions.h"
24 #include "build/build_config.h" 23 #include "build/build_config.h"
25 #include "chrome/browser/download/chrome_download_manager_delegate.h" 24 #include "chrome/browser/download/chrome_download_manager_delegate.h"
26 #include "chrome/browser/download/download_extensions.h" 25 #include "chrome/browser/download/download_extensions.h"
27 #include "chrome/browser/download/download_service.h" 26 #include "chrome/browser/download/download_service.h"
28 #include "chrome/browser/download/download_service_factory.h" 27 #include "chrome/browser/download/download_service_factory.h"
29 #include "chrome/browser/download/download_target_determiner.h" 28 #include "chrome/browser/download/download_target_determiner.h"
30 #include "chrome/browser/profiles/profile.h" 29 #include "chrome/browser/profiles/profile.h"
31 #include "chrome/browser/profiles/profile_manager.h" 30 #include "chrome/browser/profiles/profile_manager.h"
32 #include "chrome/common/chrome_paths.h" 31 #include "chrome/common/chrome_paths.h"
33 #include "chrome/common/pref_names.h" 32 #include "chrome/common/pref_names.h"
34 #include "components/pref_registry/pref_registry_syncable.h" 33 #include "components/pref_registry/pref_registry_syncable.h"
34 #include "components/prefs/pref_service.h"
35 #include "content/public/browser/browser_thread.h" 35 #include "content/public/browser/browser_thread.h"
36 #include "content/public/browser/download_manager.h" 36 #include "content/public/browser/download_manager.h"
37 #include "content/public/browser/save_page_type.h" 37 #include "content/public/browser/save_page_type.h"
38 38
39 #if defined(OS_CHROMEOS) 39 #if defined(OS_CHROMEOS)
40 #include "chrome/browser/chromeos/drive/drive_integration_service.h" 40 #include "chrome/browser/chromeos/drive/drive_integration_service.h"
41 #include "chrome/browser/chromeos/drive/file_system_util.h" 41 #include "chrome/browser/chromeos/drive/file_system_util.h"
42 #include "chrome/browser/chromeos/file_manager/path_util.h" 42 #include "chrome/browser/chromeos/file_manager/path_util.h"
43 #endif 43 #endif
44 44
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
385 extensions.erase(extensions.size() - 1); 385 extensions.erase(extensions.size() - 1);
386 386
387 profile_->GetPrefs()->SetString(prefs::kDownloadExtensionsToOpen, extensions); 387 profile_->GetPrefs()->SetString(prefs::kDownloadExtensionsToOpen, extensions);
388 } 388 }
389 389
390 bool DownloadPrefs::AutoOpenCompareFunctor::operator()( 390 bool DownloadPrefs::AutoOpenCompareFunctor::operator()(
391 const base::FilePath::StringType& a, 391 const base::FilePath::StringType& a,
392 const base::FilePath::StringType& b) const { 392 const base::FilePath::StringType& b) const {
393 return base::FilePath::CompareLessIgnoreCase(a, b); 393 return base::FilePath::CompareLessIgnoreCase(a, b);
394 } 394 }
OLDNEW
« no previous file with comments | « chrome/browser/download/download_prefs.h ('k') | chrome/browser/download/download_prefs_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698