OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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 #import "ios/chrome/browser/ui/autofill/autofill_client_ios.h" | 5 #import "ios/chrome/browser/ui/autofill/autofill_client_ios.h" |
6 | 6 |
7 #include <utility> | 7 #include <utility> |
8 | 8 |
9 #include "base/bind.h" | 9 #include "base/bind.h" |
10 #include "base/prefs/pref_service.h" | 10 #include "base/prefs/pref_service.h" |
11 #include "components/autofill/core/browser/autofill_save_card_infobar_delegate_m
obile.h" | 11 #include "components/autofill/core/browser/autofill_save_card_infobar_delegate_m
obile.h" |
12 #include "components/autofill/core/browser/autofill_save_card_infobar_mobile.h" | 12 #include "components/autofill/core/browser/autofill_save_card_infobar_mobile.h" |
13 #include "components/autofill/core/browser/ui/card_unmask_prompt_view.h" | 13 #include "components/autofill/core/browser/ui/card_unmask_prompt_view.h" |
14 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" | 14 #include "components/autofill/core/browser/webdata/autofill_webdata_service.h" |
15 #include "components/autofill/core/common/autofill_pref_names.h" | 15 #include "components/autofill/core/common/autofill_pref_names.h" |
16 #include "components/infobars/core/infobar.h" | 16 #include "components/infobars/core/infobar.h" |
17 #include "components/infobars/core/infobar_manager.h" | 17 #include "components/infobars/core/infobar_manager.h" |
18 #include "components/keyed_service/core/service_access_type.h" | 18 #include "components/keyed_service/core/service_access_type.h" |
19 #include "components/password_manager/core/browser/password_generation_manager.h
" | 19 #include "components/password_manager/core/browser/password_generation_manager.h
" |
20 #include "google_apis/gaia/identity_provider.h" | 20 #include "google_apis/gaia/identity_provider.h" |
| 21 #include "ios/chrome/browser/application_context.h" |
21 #include "ios/chrome/browser/autofill/personal_data_manager_factory.h" | 22 #include "ios/chrome/browser/autofill/personal_data_manager_factory.h" |
22 #include "ios/chrome/browser/web_data_service_factory.h" | 23 #include "ios/chrome/browser/web_data_service_factory.h" |
23 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.
h" | 24 #include "ios/public/provider/chrome/browser/browser_state/chrome_browser_state.
h" |
24 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" | 25 #include "ios/public/provider/chrome/browser/chrome_browser_provider.h" |
25 | 26 |
26 namespace autofill { | 27 namespace autofill { |
27 | 28 |
28 AutofillClientIOS::AutofillClientIOS( | 29 AutofillClientIOS::AutofillClientIOS( |
29 ios::ChromeBrowserState* browser_state, | 30 ios::ChromeBrowserState* browser_state, |
30 infobars::InfoBarManager* infobar_manager, | 31 infobars::InfoBarManager* infobar_manager, |
(...skipping 147 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
178 // the form_origin. See crbug.com/505388. | 179 // the form_origin. See crbug.com/505388. |
179 return form_origin.SchemeIsCryptographic(); | 180 return form_origin.SchemeIsCryptographic(); |
180 } | 181 } |
181 | 182 |
182 void AutofillClientIOS::OnFirstUserGestureObserved() { | 183 void AutofillClientIOS::OnFirstUserGestureObserved() { |
183 // TODO(gcasto): [Merge 306796] http://crbug.com/439425 Verify if this method | 184 // TODO(gcasto): [Merge 306796] http://crbug.com/439425 Verify if this method |
184 // needs a real implementation or not. | 185 // needs a real implementation or not. |
185 NOTIMPLEMENTED(); | 186 NOTIMPLEMENTED(); |
186 } | 187 } |
187 | 188 |
| 189 const std::string& AutofillClientIOS::GetApplicationLocale() { |
| 190 return GetApplicationContext()->GetApplicationLocale(); |
| 191 } |
| 192 |
188 } // namespace autofill | 193 } // namespace autofill |
OLD | NEW |