| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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 "components/autofill/core/browser/ui/card_unmask_prompt_controller_impl
.h" | 5 #include "components/autofill/core/browser/ui/card_unmask_prompt_controller_impl
.h" |
| 6 | 6 |
| 7 #include <stddef.h> | 7 #include <stddef.h> |
| 8 | 8 |
| 9 #include "base/bind.h" | 9 #include "base/bind.h" |
| 10 #include "base/prefs/pref_service.h" |
| 10 #include "base/strings/string_number_conversions.h" | 11 #include "base/strings/string_number_conversions.h" |
| 11 #include "base/strings/string_util.h" | 12 #include "base/strings/string_util.h" |
| 12 #include "base/strings/utf_string_conversions.h" | 13 #include "base/strings/utf_string_conversions.h" |
| 13 #include "build/build_config.h" | 14 #include "build/build_config.h" |
| 14 #include "components/autofill/core/browser/autofill_experiments.h" | 15 #include "components/autofill/core/browser/autofill_experiments.h" |
| 15 #include "components/autofill/core/browser/autofill_metrics.h" | 16 #include "components/autofill/core/browser/autofill_metrics.h" |
| 16 #include "components/autofill/core/browser/ui/card_unmask_prompt_view.h" | 17 #include "components/autofill/core/browser/ui/card_unmask_prompt_view.h" |
| 17 #include "components/autofill/core/common/autofill_pref_names.h" | 18 #include "components/autofill/core/common/autofill_pref_names.h" |
| 18 #include "components/prefs/pref_service.h" | |
| 19 #include "grit/components_scaled_resources.h" | 19 #include "grit/components_scaled_resources.h" |
| 20 #include "grit/components_strings.h" | 20 #include "grit/components_strings.h" |
| 21 #include "ui/base/l10n/l10n_util.h" | 21 #include "ui/base/l10n/l10n_util.h" |
| 22 | 22 |
| 23 namespace autofill { | 23 namespace autofill { |
| 24 | 24 |
| 25 CardUnmaskPromptControllerImpl::CardUnmaskPromptControllerImpl( | 25 CardUnmaskPromptControllerImpl::CardUnmaskPromptControllerImpl( |
| 26 PrefService* pref_service, | 26 PrefService* pref_service, |
| 27 bool is_off_the_record) | 27 bool is_off_the_record) |
| 28 : pref_service_(pref_service), | 28 : pref_service_(pref_service), |
| (...skipping 274 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 303 | 303 |
| 304 return month_value >= now.month; | 304 return month_value >= now.month; |
| 305 } | 305 } |
| 306 | 306 |
| 307 base::TimeDelta CardUnmaskPromptControllerImpl::GetSuccessMessageDuration() | 307 base::TimeDelta CardUnmaskPromptControllerImpl::GetSuccessMessageDuration() |
| 308 const { | 308 const { |
| 309 return base::TimeDelta::FromMilliseconds(500); | 309 return base::TimeDelta::FromMilliseconds(500); |
| 310 } | 310 } |
| 311 | 311 |
| 312 } // namespace autofill | 312 } // namespace autofill |
| OLD | NEW |