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/autofill/risk_util.h" | 5 #include "chrome/browser/autofill/risk_util.h" |
6 | 6 |
7 #include "base/base64.h" | 7 #include "base/base64.h" |
8 #include "base/callback.h" | 8 #include "base/callback.h" |
9 #include "base/prefs/pref_service.h" | 9 #include "base/prefs/pref_service.h" |
10 #include "base/time/time.h" | 10 #include "base/time/time.h" |
| 11 #include "build/build_config.h" |
11 #include "chrome/browser/apps/app_window_registry_util.h" | 12 #include "chrome/browser/apps/app_window_registry_util.h" |
12 #include "chrome/browser/browser_process.h" | 13 #include "chrome/browser/browser_process.h" |
13 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
14 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
15 #include "chrome/common/chrome_content_client.h" | 16 #include "chrome/common/chrome_content_client.h" |
16 #include "chrome/common/pref_names.h" | 17 #include "chrome/common/pref_names.h" |
17 #include "components/autofill/content/browser/risk/fingerprint.h" | 18 #include "components/autofill/content/browser/risk/fingerprint.h" |
18 #include "components/autofill/content/browser/risk/proto/fingerprint.pb.h" | 19 #include "components/autofill/content/browser/risk/proto/fingerprint.pb.h" |
19 #include "components/metrics/metrics_service.h" | 20 #include "components/metrics/metrics_service.h" |
20 #include "components/version_info/version_info.h" | 21 #include "components/version_info/version_info.h" |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
81 g_browser_process->metrics_service()->GetInstallDate()); | 82 g_browser_process->metrics_service()->GetInstallDate()); |
82 | 83 |
83 risk::GetFingerprint(obfuscated_gaia_id, window_bounds, web_contents, | 84 risk::GetFingerprint(obfuscated_gaia_id, window_bounds, web_contents, |
84 version_info::GetVersionNumber(), charset, | 85 version_info::GetVersionNumber(), charset, |
85 accept_languages, install_time, | 86 accept_languages, install_time, |
86 g_browser_process->GetApplicationLocale(), | 87 g_browser_process->GetApplicationLocale(), |
87 GetUserAgent(), base::Bind(PassRiskData, callback)); | 88 GetUserAgent(), base::Bind(PassRiskData, callback)); |
88 } | 89 } |
89 | 90 |
90 } // namespace autofill | 91 } // namespace autofill |
OLD | NEW |