| OLD | NEW |
| 1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/autofill/autofill_dialog_controller_impl.h" | 5 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 1847 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1858 | 1858 |
| 1859 PrefService* user_prefs = profile_->GetPrefs(); | 1859 PrefService* user_prefs = profile_->GetPrefs(); |
| 1860 std::string charset = user_prefs->GetString(prefs::kDefaultCharset); | 1860 std::string charset = user_prefs->GetString(prefs::kDefaultCharset); |
| 1861 std::string accept_languages = user_prefs->GetString(prefs::kAcceptLanguages); | 1861 std::string accept_languages = user_prefs->GetString(prefs::kAcceptLanguages); |
| 1862 base::Time install_time = base::Time::FromTimeT( | 1862 base::Time install_time = base::Time::FromTimeT( |
| 1863 g_browser_process->local_state()->GetInt64(prefs::kInstallDate)); | 1863 g_browser_process->local_state()->GetInt64(prefs::kInstallDate)); |
| 1864 | 1864 |
| 1865 risk::GetFingerprint( | 1865 risk::GetFingerprint( |
| 1866 gaia_id, window_bounds, *web_contents(), chrome::VersionInfo().Version(), | 1866 gaia_id, window_bounds, *web_contents(), chrome::VersionInfo().Version(), |
| 1867 charset, accept_languages, install_time, dialog_type_, | 1867 charset, accept_languages, install_time, dialog_type_, |
| 1868 g_browser_process->GetApplicationLocale(), |
| 1868 base::Bind(&AutofillDialogControllerImpl::OnDidLoadRiskFingerprintData, | 1869 base::Bind(&AutofillDialogControllerImpl::OnDidLoadRiskFingerprintData, |
| 1869 weak_ptr_factory_.GetWeakPtr())); | 1870 weak_ptr_factory_.GetWeakPtr())); |
| 1870 } | 1871 } |
| 1871 | 1872 |
| 1872 void AutofillDialogControllerImpl::OnDidLoadRiskFingerprintData( | 1873 void AutofillDialogControllerImpl::OnDidLoadRiskFingerprintData( |
| 1873 scoped_ptr<risk::Fingerprint> fingerprint) { | 1874 scoped_ptr<risk::Fingerprint> fingerprint) { |
| 1874 NOTIMPLEMENTED(); | 1875 NOTIMPLEMENTED(); |
| 1875 } | 1876 } |
| 1876 | 1877 |
| 1877 bool AutofillDialogControllerImpl::IsManuallyEditingSection( | 1878 bool AutofillDialogControllerImpl::IsManuallyEditingSection( |
| (...skipping 199 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2077 AutofillMetrics::DIALOG_USER_SIGNED_IN_NO_WALLET_NO_AUTOFILL; | 2078 AutofillMetrics::DIALOG_USER_SIGNED_IN_NO_WALLET_NO_AUTOFILL; |
| 2078 } | 2079 } |
| 2079 | 2080 |
| 2080 // Has Wallet items. | 2081 // Has Wallet items. |
| 2081 return has_autofill_profiles ? | 2082 return has_autofill_profiles ? |
| 2082 AutofillMetrics::DIALOG_USER_SIGNED_IN_HAS_WALLET_HAS_AUTOFILL : | 2083 AutofillMetrics::DIALOG_USER_SIGNED_IN_HAS_WALLET_HAS_AUTOFILL : |
| 2083 AutofillMetrics::DIALOG_USER_SIGNED_IN_HAS_WALLET_NO_AUTOFILL; | 2084 AutofillMetrics::DIALOG_USER_SIGNED_IN_HAS_WALLET_NO_AUTOFILL; |
| 2084 } | 2085 } |
| 2085 | 2086 |
| 2086 } // namespace autofill | 2087 } // namespace autofill |
| OLD | NEW |