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

Side by Side Diff: components/autofill/core/browser/ui/card_unmask_prompt_controller_impl.cc

Issue 1662843002: Revert of Delete base/prefs and update callers to use components. (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 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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698