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

Side by Side Diff: chrome/browser/safe_browsing/srt_fetcher_win.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 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/srt_fetcher_win.h"
6 6
7 #include <stdint.h> 7 #include <stdint.h>
8 8
9 #include <vector> 9 #include <vector>
10 10
11 #include "base/bind.h" 11 #include "base/bind.h"
12 #include "base/bind_helpers.h" 12 #include "base/bind_helpers.h"
13 #include "base/callback_helpers.h" 13 #include "base/callback_helpers.h"
14 #include "base/command_line.h" 14 #include "base/command_line.h"
15 #include "base/files/file_path.h" 15 #include "base/files/file_path.h"
16 #include "base/macros.h" 16 #include "base/macros.h"
17 #include "base/metrics/field_trial.h" 17 #include "base/metrics/field_trial.h"
18 #include "base/metrics/histogram_macros.h" 18 #include "base/metrics/histogram_macros.h"
19 #include "base/metrics/sparse_histogram.h" 19 #include "base/metrics/sparse_histogram.h"
20 #include "base/prefs/pref_service.h"
21 #include "base/process/launch.h" 20 #include "base/process/launch.h"
22 #include "base/strings/string_number_conversions.h" 21 #include "base/strings/string_number_conversions.h"
23 #include "base/strings/stringprintf.h" 22 #include "base/strings/stringprintf.h"
24 #include "base/strings/utf_string_conversions.h" 23 #include "base/strings/utf_string_conversions.h"
25 #include "base/task_runner_util.h" 24 #include "base/task_runner_util.h"
26 #include "base/threading/thread_checker.h" 25 #include "base/threading/thread_checker.h"
27 #include "base/time/time.h" 26 #include "base/time/time.h"
28 #include "base/win/registry.h" 27 #include "base/win/registry.h"
29 #include "chrome/browser/browser_process.h" 28 #include "chrome/browser/browser_process.h"
30 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h" 29 #include "chrome/browser/metrics/chrome_metrics_service_accessor.h"
31 #include "chrome/browser/profiles/profile.h" 30 #include "chrome/browser/profiles/profile.h"
32 #include "chrome/browser/profiles/profile_io_data.h" 31 #include "chrome/browser/profiles/profile_io_data.h"
33 #include "chrome/browser/safe_browsing/srt_field_trial_win.h" 32 #include "chrome/browser/safe_browsing/srt_field_trial_win.h"
34 #include "chrome/browser/safe_browsing/srt_global_error_win.h" 33 #include "chrome/browser/safe_browsing/srt_global_error_win.h"
35 #include "chrome/browser/ui/browser_finder.h" 34 #include "chrome/browser/ui/browser_finder.h"
36 #include "chrome/browser/ui/browser_list.h" 35 #include "chrome/browser/ui/browser_list.h"
37 #include "chrome/browser/ui/browser_list_observer.h" 36 #include "chrome/browser/ui/browser_list_observer.h"
38 #include "chrome/browser/ui/global_error/global_error_service.h" 37 #include "chrome/browser/ui/global_error/global_error_service.h"
39 #include "chrome/browser/ui/global_error/global_error_service_factory.h" 38 #include "chrome/browser/ui/global_error/global_error_service_factory.h"
40 #include "components/component_updater/pref_names.h" 39 #include "components/component_updater/pref_names.h"
40 #include "components/prefs/pref_service.h"
41 #include "components/rappor/rappor_service.h" 41 #include "components/rappor/rappor_service.h"
42 #include "components/variations/net/variations_http_headers.h" 42 #include "components/variations/net/variations_http_headers.h"
43 #include "content/public/browser/browser_thread.h" 43 #include "content/public/browser/browser_thread.h"
44 #include "net/base/load_flags.h" 44 #include "net/base/load_flags.h"
45 #include "net/http/http_status_code.h" 45 #include "net/http/http_status_code.h"
46 #include "net/url_request/url_fetcher.h" 46 #include "net/url_request/url_fetcher.h"
47 #include "net/url_request/url_fetcher_delegate.h" 47 #include "net/url_request/url_fetcher_delegate.h"
48 #include "net/url_request/url_request_context_getter.h" 48 #include "net/url_request/url_request_context_getter.h"
49 49
50 using content::BrowserThread; 50 using content::BrowserThread;
(...skipping 560 matching lines...) Expand 10 before | Expand all | Expand 10 after
611 611
612 void SetReporterLauncherForTesting(const ReporterLauncher& reporter_launcher) { 612 void SetReporterLauncherForTesting(const ReporterLauncher& reporter_launcher) {
613 g_reporter_launcher_ = reporter_launcher; 613 g_reporter_launcher_ = reporter_launcher;
614 } 614 }
615 615
616 void SetPromptTriggerForTesting(const PromptTrigger& prompt_trigger) { 616 void SetPromptTriggerForTesting(const PromptTrigger& prompt_trigger) {
617 g_prompt_trigger_ = prompt_trigger; 617 g_prompt_trigger_ = prompt_trigger;
618 } 618 }
619 619
620 } // namespace safe_browsing 620 } // namespace safe_browsing
OLDNEW
« no previous file with comments | « chrome/browser/safe_browsing/srt_fetcher_browsertest_win.cc ('k') | chrome/browser/safe_browsing/srt_global_error_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698