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

Side by Side Diff: chrome/browser/download/download_target_determiner.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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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_target_determiner.h" 5 #include "chrome/browser/download/download_target_determiner.h"
6 6
7 #include "base/location.h" 7 #include "base/location.h"
8 #include "base/prefs/pref_service.h"
9 #include "base/rand_util.h" 8 #include "base/rand_util.h"
10 #include "base/single_thread_task_runner.h" 9 #include "base/single_thread_task_runner.h"
11 #include "base/strings/stringprintf.h" 10 #include "base/strings/stringprintf.h"
12 #include "base/thread_task_runner_handle.h" 11 #include "base/thread_task_runner_handle.h"
13 #include "base/time/time.h" 12 #include "base/time/time.h"
14 #include "build/build_config.h" 13 #include "build/build_config.h"
15 #include "chrome/browser/download/chrome_download_manager_delegate.h" 14 #include "chrome/browser/download/chrome_download_manager_delegate.h"
16 #include "chrome/browser/download/download_crx_util.h" 15 #include "chrome/browser/download/download_crx_util.h"
17 #include "chrome/browser/download/download_extensions.h" 16 #include "chrome/browser/download/download_extensions.h"
18 #include "chrome/browser/download/download_prefs.h" 17 #include "chrome/browser/download/download_prefs.h"
19 #include "chrome/browser/history/history_service_factory.h" 18 #include "chrome/browser/history/history_service_factory.h"
20 #include "chrome/browser/profiles/profile.h" 19 #include "chrome/browser/profiles/profile.h"
21 #include "chrome/common/pref_names.h" 20 #include "chrome/common/pref_names.h"
22 #include "chrome/grit/generated_resources.h" 21 #include "chrome/grit/generated_resources.h"
23 #include "components/history/core/browser/history_service.h" 22 #include "components/history/core/browser/history_service.h"
24 #include "components/mime_util/mime_util.h" 23 #include "components/mime_util/mime_util.h"
24 #include "components/prefs/pref_service.h"
25 #include "content/public/browser/browser_context.h" 25 #include "content/public/browser/browser_context.h"
26 #include "content/public/browser/browser_thread.h" 26 #include "content/public/browser/browser_thread.h"
27 #include "content/public/browser/download_interrupt_reasons.h" 27 #include "content/public/browser/download_interrupt_reasons.h"
28 #include "extensions/common/constants.h" 28 #include "extensions/common/constants.h"
29 #include "net/base/filename_util.h" 29 #include "net/base/filename_util.h"
30 #include "ui/base/l10n/l10n_util.h" 30 #include "ui/base/l10n/l10n_util.h"
31 31
32 #if defined(ENABLE_EXTENSIONS) 32 #if defined(ENABLE_EXTENSIONS)
33 #include "chrome/browser/extensions/webstore_installer.h" 33 #include "chrome/browser/extensions/webstore_installer.h"
34 #include "extensions/common/feature_switch.h" 34 #include "extensions/common/feature_switch.h"
(...skipping 869 matching lines...) Expand 10 before | Expand all | Expand 10 after
904 const base::FilePath& suggested_path) { 904 const base::FilePath& suggested_path) {
905 return base::FilePath(suggested_path.value() + kCrdownloadSuffix); 905 return base::FilePath(suggested_path.value() + kCrdownloadSuffix);
906 } 906 }
907 907
908 #if defined(OS_WIN) 908 #if defined(OS_WIN)
909 // static 909 // static
910 bool DownloadTargetDeterminer::IsAdobeReaderUpToDate() { 910 bool DownloadTargetDeterminer::IsAdobeReaderUpToDate() {
911 return g_is_adobe_reader_up_to_date_; 911 return g_is_adobe_reader_up_to_date_;
912 } 912 }
913 #endif 913 #endif
OLDNEW
« no previous file with comments | « chrome/browser/download/download_query.cc ('k') | chrome/browser/download/download_target_determiner_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698