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

Side by Side Diff: chrome/browser/autofill/validation_rules_storage_factory.cc

Issue 1658793002: Update chrome for new prefs location. (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 "chrome/browser/autofill/validation_rules_storage_factory.h" 5 #include "chrome/browser/autofill/validation_rules_storage_factory.h"
6 6
7 #include "base/files/file_path.h" 7 #include "base/files/file_path.h"
8 #include "base/path_service.h" 8 #include "base/path_service.h"
9 #include "base/prefs/json_pref_store.h"
10 #include "base/prefs/pref_filter.h"
11 #include "base/threading/sequenced_worker_pool.h" 9 #include "base/threading/sequenced_worker_pool.h"
12 #include "chrome/common/chrome_paths.h" 10 #include "chrome/common/chrome_paths.h"
11 #include "components/prefs/json_pref_store.h"
12 #include "components/prefs/pref_filter.h"
13 #include "content/public/browser/browser_thread.h" 13 #include "content/public/browser/browser_thread.h"
14 #include "third_party/libaddressinput/chromium/chrome_storage_impl.h" 14 #include "third_party/libaddressinput/chromium/chrome_storage_impl.h"
15 15
16 namespace autofill { 16 namespace autofill {
17 17
18 using ::i18n::addressinput::Storage; 18 using ::i18n::addressinput::Storage;
19 19
20 // static 20 // static
21 scoped_ptr<Storage> ValidationRulesStorageFactory::CreateStorage() { 21 scoped_ptr<Storage> ValidationRulesStorageFactory::CreateStorage() {
22 static base::LazyInstance<ValidationRulesStorageFactory> instance = 22 static base::LazyInstance<ValidationRulesStorageFactory> instance =
(...skipping 15 matching lines...) Expand all
38 cache, content::BrowserThread::GetBlockingPool()); 38 cache, content::BrowserThread::GetBlockingPool());
39 39
40 json_pref_store_ = 40 json_pref_store_ =
41 new JsonPrefStore(cache, task_runner.get(), scoped_ptr<PrefFilter>()); 41 new JsonPrefStore(cache, task_runner.get(), scoped_ptr<PrefFilter>());
42 json_pref_store_->ReadPrefsAsync(NULL); 42 json_pref_store_->ReadPrefsAsync(NULL);
43 } 43 }
44 44
45 ValidationRulesStorageFactory::~ValidationRulesStorageFactory() {} 45 ValidationRulesStorageFactory::~ValidationRulesStorageFactory() {}
46 46
47 } // namespace autofill 47 } // namespace autofill
OLDNEW
« no previous file with comments | « chrome/browser/autofill/risk_util.cc ('k') | chrome/browser/background/background_contents_service.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698