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

Side by Side Diff: chrome/browser/ui/webui/md_downloads/md_downloads_dom_handler.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/ui/webui/md_downloads/md_downloads_dom_handler.h" 5 #include "chrome/browser/ui/webui/md_downloads/md_downloads_dom_handler.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 #include <functional> 8 #include <functional>
9 9
10 #include "base/bind.h" 10 #include "base/bind.h"
11 #include "base/bind_helpers.h" 11 #include "base/bind_helpers.h"
12 #include "base/i18n/rtl.h" 12 #include "base/i18n/rtl.h"
13 #include "base/logging.h" 13 #include "base/logging.h"
14 #include "base/metrics/histogram.h" 14 #include "base/metrics/histogram.h"
15 #include "base/prefs/pref_service.h"
16 #include "base/strings/string_number_conversions.h" 15 #include "base/strings/string_number_conversions.h"
17 #include "base/strings/string_piece.h" 16 #include "base/strings/string_piece.h"
18 #include "base/strings/utf_string_conversions.h" 17 #include "base/strings/utf_string_conversions.h"
19 #include "base/supports_user_data.h" 18 #include "base/supports_user_data.h"
20 #include "base/threading/thread.h" 19 #include "base/threading/thread.h"
21 #include "base/values.h" 20 #include "base/values.h"
22 #include "chrome/browser/browser_process.h" 21 #include "chrome/browser/browser_process.h"
23 #include "chrome/browser/download/download_danger_prompt.h" 22 #include "chrome/browser/download/download_danger_prompt.h"
24 #include "chrome/browser/download/download_history.h" 23 #include "chrome/browser/download/download_history.h"
25 #include "chrome/browser/download/download_item_model.h" 24 #include "chrome/browser/download/download_item_model.h"
26 #include "chrome/browser/download/download_prefs.h" 25 #include "chrome/browser/download/download_prefs.h"
27 #include "chrome/browser/download/download_query.h" 26 #include "chrome/browser/download/download_query.h"
28 #include "chrome/browser/download/download_service.h" 27 #include "chrome/browser/download/download_service.h"
29 #include "chrome/browser/download/download_service_factory.h" 28 #include "chrome/browser/download/download_service_factory.h"
30 #include "chrome/browser/download/drag_download_item.h" 29 #include "chrome/browser/download/drag_download_item.h"
31 #include "chrome/browser/platform_util.h" 30 #include "chrome/browser/platform_util.h"
32 #include "chrome/browser/profiles/profile.h" 31 #include "chrome/browser/profiles/profile.h"
33 #include "chrome/browser/ui/webui/fileicon_source.h" 32 #include "chrome/browser/ui/webui/fileicon_source.h"
34 #include "chrome/common/chrome_switches.h" 33 #include "chrome/common/chrome_switches.h"
35 #include "chrome/common/pref_names.h" 34 #include "chrome/common/pref_names.h"
36 #include "chrome/common/url_constants.h" 35 #include "chrome/common/url_constants.h"
36 #include "components/prefs/pref_service.h"
37 #include "content/public/browser/browser_thread.h" 37 #include "content/public/browser/browser_thread.h"
38 #include "content/public/browser/download_item.h" 38 #include "content/public/browser/download_item.h"
39 #include "content/public/browser/download_manager.h" 39 #include "content/public/browser/download_manager.h"
40 #include "content/public/browser/url_data_source.h" 40 #include "content/public/browser/url_data_source.h"
41 #include "content/public/browser/user_metrics.h" 41 #include "content/public/browser/user_metrics.h"
42 #include "content/public/browser/web_contents.h" 42 #include "content/public/browser/web_contents.h"
43 #include "content/public/browser/web_ui.h" 43 #include "content/public/browser/web_ui.h"
44 #include "net/base/filename_util.h" 44 #include "net/base/filename_util.h"
45 #include "ui/base/l10n/time_format.h" 45 #include "ui/base/l10n/time_format.h"
46 #include "ui/gfx/image/image.h" 46 #include "ui/gfx/image/image.h"
(...skipping 364 matching lines...) Expand 10 before | Expand all | Expand 10 after
411 content::WebContents* MdDownloadsDOMHandler::GetWebUIWebContents() { 411 content::WebContents* MdDownloadsDOMHandler::GetWebUIWebContents() {
412 return web_ui()->GetWebContents(); 412 return web_ui()->GetWebContents();
413 } 413 }
414 414
415 void MdDownloadsDOMHandler::CheckForRemovedFiles() { 415 void MdDownloadsDOMHandler::CheckForRemovedFiles() {
416 if (GetMainNotifierManager()) 416 if (GetMainNotifierManager())
417 GetMainNotifierManager()->CheckForHistoryFilesRemoval(); 417 GetMainNotifierManager()->CheckForHistoryFilesRemoval();
418 if (GetOriginalNotifierManager()) 418 if (GetOriginalNotifierManager())
419 GetOriginalNotifierManager()->CheckForHistoryFilesRemoval(); 419 GetOriginalNotifierManager()->CheckForHistoryFilesRemoval();
420 } 420 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/webui/local_state/local_state_ui.cc ('k') | chrome/browser/ui/webui/md_downloads/md_downloads_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698