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 "third_party/libaddressinput/chromium/chrome_storage_impl.h" | 5 #include "third_party/libaddressinput/chromium/chrome_storage_impl.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/memory/scoped_ptr.h" | 9 #include "base/memory/scoped_ptr.h" |
10 #include "base/prefs/writeable_pref_store.h" | |
11 #include "base/values.h" | 10 #include "base/values.h" |
| 11 #include "components/prefs/writeable_pref_store.h" |
12 #include "third_party/libaddressinput/chromium/fallback_data_store.h" | 12 #include "third_party/libaddressinput/chromium/fallback_data_store.h" |
13 | 13 |
14 namespace autofill { | 14 namespace autofill { |
15 | 15 |
16 ChromeStorageImpl::ChromeStorageImpl(WriteablePrefStore* store) | 16 ChromeStorageImpl::ChromeStorageImpl(WriteablePrefStore* store) |
17 : backing_store_(store), | 17 : backing_store_(store), |
18 scoped_observer_(this) { | 18 scoped_observer_(this) { |
19 scoped_observer_.Add(backing_store_); | 19 scoped_observer_.Add(backing_store_); |
20 } | 20 } |
21 | 21 |
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
65 data_ready(false, key, NULL); | 65 data_ready(false, key, NULL); |
66 } | 66 } |
67 } | 67 } |
68 | 68 |
69 ChromeStorageImpl::Request::Request(const std::string& key, | 69 ChromeStorageImpl::Request::Request(const std::string& key, |
70 const Callback& callback) | 70 const Callback& callback) |
71 : key(key), | 71 : key(key), |
72 callback(callback) {} | 72 callback(callback) {} |
73 | 73 |
74 } // namespace autofill | 74 } // namespace autofill |
OLD | NEW |