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

Side by Side Diff: ios/chrome/browser/autofill/validation_rules_storage_factory.h

Issue 2844783002: [Payment Request] Adds address normalization on iOS. (Closed)
Patch Set: Cleanup. Created 3 years, 7 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
(Empty)
1 // Copyright 2017 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
4
5 #ifndef IOS_CHROME_BROWSER_AUTOFILL_VALIDATION_RULES_STORAGE_FACTORY_H_
6 #define IOS_CHROME_BROWSER_AUTOFILL_VALIDATION_RULES_STORAGE_FACTORY_H_
7
8 #include <memory>
9
10 #include "base/lazy_instance.h"
11 #include "base/macros.h"
12 #include "base/memory/ref_counted.h"
13
14 namespace i18n {
15 namespace addressinput {
16 class Storage;
17 }
18 }
19
20 class JsonPrefStore;
21
22 namespace autofill {
23
24 // Creates Storage objects, all of which are backed by a common pref store.
25 // Adapted for iOS from
26 // chrome/browser/autofill/validation_rules_storage_factory.{cc,h}.
Moe 2017/04/27 12:19:52 I'm not an ios/.../autofill owner but these two fi
macourteau 2017/04/27 18:07:51 Yep, had discussed this with mathp@ and sebsg@, an
Moe 2017/04/28 09:04:44 sure. it's up to you and the owners. It's just tha
macourteau 2017/05/01 15:56:22 Done.
27 class ValidationRulesStorageFactory {
28 public:
29 static std::unique_ptr<::i18n::addressinput::Storage> CreateStorage();
30
31 private:
32 friend struct base::LazyInstanceTraitsBase<ValidationRulesStorageFactory>;
33
34 ValidationRulesStorageFactory();
35 ~ValidationRulesStorageFactory();
36
37 scoped_refptr<JsonPrefStore> json_pref_store_;
38
39 DISALLOW_COPY_AND_ASSIGN(ValidationRulesStorageFactory);
40 };
41
42 } // namespace autofill
43
44 #endif // IOS_CHROME_BROWSER_AUTOFILL_VALIDATION_RULES_STORAGE_FACTORY_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698