OLD | NEW |
1 // Copyright 2015 The Chromium Authors. All rights reserved. | 1 // Copyright 2015 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/safe_browsing/srt_fetcher_win.h" | 5 #include "chrome/browser/safe_browsing/chrome_cleaner/srt_fetcher_win.h" |
6 | 6 |
7 #include <stdint.h> | 7 #include <stdint.h> |
8 | 8 |
9 #include <algorithm> | 9 #include <algorithm> |
10 #include <memory> | 10 #include <memory> |
11 #include <utility> | 11 #include <utility> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/bind.h" | 14 #include "base/bind.h" |
15 #include "base/bind_helpers.h" | 15 #include "base/bind_helpers.h" |
(...skipping 12 matching lines...) Expand all Loading... |
28 #include "base/task_runner_util.h" | 28 #include "base/task_runner_util.h" |
29 #include "base/task_scheduler/post_task.h" | 29 #include "base/task_scheduler/post_task.h" |
30 #include "base/task_scheduler/task_traits.h" | 30 #include "base/task_scheduler/task_traits.h" |
31 #include "base/time/time.h" | 31 #include "base/time/time.h" |
32 #include "base/version.h" | 32 #include "base/version.h" |
33 #include "base/win/registry.h" | 33 #include "base/win/registry.h" |
34 #include "chrome/browser/browser_process.h" | 34 #include "chrome/browser/browser_process.h" |
35 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" | 35 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" |
36 #include "chrome/browser/profiles/profile.h" | 36 #include "chrome/browser/profiles/profile.h" |
37 #include "chrome/browser/profiles/profile_io_data.h" | 37 #include "chrome/browser/profiles/profile_io_data.h" |
38 #include "chrome/browser/safe_browsing/srt_chrome_prompt_impl.h" | 38 #include "chrome/browser/safe_browsing/chrome_cleaner/srt_chrome_prompt_impl.h" |
39 #include "chrome/browser/safe_browsing/srt_client_info_win.h" | 39 #include "chrome/browser/safe_browsing/chrome_cleaner/srt_client_info_win.h" |
40 #include "chrome/browser/safe_browsing/srt_global_error_win.h" | 40 #include "chrome/browser/safe_browsing/chrome_cleaner/srt_global_error_win.h" |
41 #include "chrome/browser/ui/browser_finder.h" | 41 #include "chrome/browser/ui/browser_finder.h" |
42 #include "chrome/browser/ui/browser_list.h" | 42 #include "chrome/browser/ui/browser_list.h" |
43 #include "chrome/browser/ui/browser_list_observer.h" | 43 #include "chrome/browser/ui/browser_list_observer.h" |
44 #include "chrome/browser/ui/global_error/global_error_service.h" | 44 #include "chrome/browser/ui/global_error/global_error_service.h" |
45 #include "chrome/browser/ui/global_error/global_error_service_factory.h" | 45 #include "chrome/browser/ui/global_error/global_error_service_factory.h" |
46 #include "chrome/common/pref_names.h" | 46 #include "chrome/common/pref_names.h" |
47 #include "components/chrome_cleaner/public/constants/constants.h" | 47 #include "components/chrome_cleaner/public/constants/constants.h" |
48 #include "components/component_updater/pref_names.h" | 48 #include "components/component_updater/pref_names.h" |
49 #include "components/data_use_measurement/core/data_use_user_data.h" | 49 #include "components/data_use_measurement/core/data_use_user_data.h" |
50 #include "components/prefs/pref_service.h" | 50 #include "components/prefs/pref_service.h" |
(...skipping 1194 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1245 return srt_cleaner_key.Open(HKEY_CURRENT_USER, cleaner_key_path.c_str(), | 1245 return srt_cleaner_key.Open(HKEY_CURRENT_USER, cleaner_key_path.c_str(), |
1246 KEY_QUERY_VALUE) == ERROR_SUCCESS && | 1246 KEY_QUERY_VALUE) == ERROR_SUCCESS && |
1247 srt_cleaner_key.GetValueCount() > 0; | 1247 srt_cleaner_key.GetValueCount() > 0; |
1248 } | 1248 } |
1249 | 1249 |
1250 void SetSwReporterTestingDelegate(SwReporterTestingDelegate* delegate) { | 1250 void SetSwReporterTestingDelegate(SwReporterTestingDelegate* delegate) { |
1251 g_testing_delegate_ = delegate; | 1251 g_testing_delegate_ = delegate; |
1252 } | 1252 } |
1253 | 1253 |
1254 } // namespace safe_browsing | 1254 } // namespace safe_browsing |
OLD | NEW |