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

Side by Side Diff: chrome/browser/download/chrome_download_manager_delegate.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/chrome_download_manager_delegate.h" 5 #include "chrome/browser/download/chrome_download_manager_delegate.h"
6 6
7 #include <string> 7 #include <string>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/bind_helpers.h" 10 #include "base/bind_helpers.h"
11 #include "base/callback.h" 11 #include "base/callback.h"
12 #include "base/files/file_util.h" 12 #include "base/files/file_util.h"
13 #include "base/macros.h" 13 #include "base/macros.h"
14 #include "base/prefs/pref_member.h"
15 #include "base/prefs/pref_service.h"
16 #include "base/rand_util.h" 14 #include "base/rand_util.h"
17 #include "base/strings/stringprintf.h" 15 #include "base/strings/stringprintf.h"
18 #include "base/strings/utf_string_conversions.h" 16 #include "base/strings/utf_string_conversions.h"
19 #include "base/task_runner.h" 17 #include "base/task_runner.h"
20 #include "base/task_runner_util.h" 18 #include "base/task_runner_util.h"
21 #include "base/threading/sequenced_worker_pool.h" 19 #include "base/threading/sequenced_worker_pool.h"
22 #include "base/time/time.h" 20 #include "base/time/time.h"
23 #include "build/build_config.h" 21 #include "build/build_config.h"
24 #include "chrome/browser/browser_process.h" 22 #include "chrome/browser/browser_process.h"
25 #include "chrome/browser/download/download_completion_blocker.h" 23 #include "chrome/browser/download/download_completion_blocker.h"
(...skipping 12 matching lines...) Expand all
38 #include "chrome/browser/profiles/profile.h" 36 #include "chrome/browser/profiles/profile.h"
39 #include "chrome/browser/safe_browsing/safe_browsing_service.h" 37 #include "chrome/browser/safe_browsing/safe_browsing_service.h"
40 #include "chrome/browser/ui/browser.h" 38 #include "chrome/browser/ui/browser.h"
41 #include "chrome/browser/ui/browser_finder.h" 39 #include "chrome/browser/ui/browser_finder.h"
42 #include "chrome/browser/ui/chrome_pages.h" 40 #include "chrome/browser/ui/chrome_pages.h"
43 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h" 41 #include "chrome/browser/ui/scoped_tabbed_browser_displayer.h"
44 #include "chrome/common/chrome_constants.h" 42 #include "chrome/common/chrome_constants.h"
45 #include "chrome/common/features.h" 43 #include "chrome/common/features.h"
46 #include "chrome/common/pref_names.h" 44 #include "chrome/common/pref_names.h"
47 #include "components/pref_registry/pref_registry_syncable.h" 45 #include "components/pref_registry/pref_registry_syncable.h"
46 #include "components/prefs/pref_member.h"
47 #include "components/prefs/pref_service.h"
48 #include "content/public/browser/download_item.h" 48 #include "content/public/browser/download_item.h"
49 #include "content/public/browser/download_manager.h" 49 #include "content/public/browser/download_manager.h"
50 #include "content/public/browser/notification_source.h" 50 #include "content/public/browser/notification_source.h"
51 #include "content/public/browser/page_navigator.h" 51 #include "content/public/browser/page_navigator.h"
52 #include "net/base/filename_util.h" 52 #include "net/base/filename_util.h"
53 #include "net/base/mime_util.h" 53 #include "net/base/mime_util.h"
54 54
55 #if BUILDFLAG(ANDROID_JAVA_UI) 55 #if BUILDFLAG(ANDROID_JAVA_UI)
56 #include "chrome/browser/android/download/chrome_download_manager_overwrite_info bar_delegate.h" 56 #include "chrome/browser/android/download/chrome_download_manager_overwrite_info bar_delegate.h"
57 #include "chrome/browser/infobars/infobar_service.h" 57 #include "chrome/browser/infobars/infobar_service.h"
(...skipping 715 matching lines...) Expand 10 before | Expand all | Expand 10 after
773 path.MatchesExtension(FILE_PATH_LITERAL(".xht")) || 773 path.MatchesExtension(FILE_PATH_LITERAL(".xht")) ||
774 path.MatchesExtension(FILE_PATH_LITERAL(".xhtm")) || 774 path.MatchesExtension(FILE_PATH_LITERAL(".xhtm")) ||
775 path.MatchesExtension(FILE_PATH_LITERAL(".xhtml")) || 775 path.MatchesExtension(FILE_PATH_LITERAL(".xhtml")) ||
776 path.MatchesExtension(FILE_PATH_LITERAL(".xsl")) || 776 path.MatchesExtension(FILE_PATH_LITERAL(".xsl")) ||
777 path.MatchesExtension(FILE_PATH_LITERAL(".xslt"))) { 777 path.MatchesExtension(FILE_PATH_LITERAL(".xslt"))) {
778 return true; 778 return true;
779 } 779 }
780 #endif 780 #endif
781 return false; 781 return false;
782 } 782 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698