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 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" | 5 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <map> | 8 #include <map> |
9 #include <string> | 9 #include <string> |
10 | 10 |
(...skipping 2430 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2441 wrapper->FillInputs(MutableRequestedFieldsForSection(popup_section_)); | 2441 wrapper->FillInputs(MutableRequestedFieldsForSection(popup_section_)); |
2442 view_->FillSection(popup_section_, popup_input_type); | 2442 view_->FillSection(popup_section_, popup_input_type); |
2443 | 2443 |
2444 AutofillMetrics::LogDialogPopupEvent( | 2444 AutofillMetrics::LogDialogPopupEvent( |
2445 AutofillMetrics::DIALOG_POPUP_FORM_FILLED); | 2445 AutofillMetrics::DIALOG_POPUP_FORM_FILLED); |
2446 | 2446 |
2447 // TODO(estade): not sure why it's necessary to do this explicitly. | 2447 // TODO(estade): not sure why it's necessary to do this explicitly. |
2448 HidePopup(); | 2448 HidePopup(); |
2449 } | 2449 } |
2450 | 2450 |
2451 void AutofillDialogControllerImpl::RemoveSuggestion( | 2451 bool AutofillDialogControllerImpl::RemoveSuggestion( |
2452 const base::string16& value, | 2452 const base::string16& value, |
2453 int identifier) { | 2453 int identifier) { |
2454 // TODO(estade): implement. | 2454 // TODO(estade): implement. |
| 2455 return false; |
2455 } | 2456 } |
2456 | 2457 |
2457 void AutofillDialogControllerImpl::ClearPreviewedForm() { | 2458 void AutofillDialogControllerImpl::ClearPreviewedForm() { |
2458 // TODO(estade): implement. | 2459 // TODO(estade): implement. |
2459 } | 2460 } |
2460 | 2461 |
2461 //////////////////////////////////////////////////////////////////////////////// | 2462 //////////////////////////////////////////////////////////////////////////////// |
2462 // content::NotificationObserver implementation. | 2463 // content::NotificationObserver implementation. |
2463 | 2464 |
2464 void AutofillDialogControllerImpl::Observe( | 2465 void AutofillDialogControllerImpl::Observe( |
(...skipping 1643 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
4108 view_->UpdateButtonStrip(); | 4109 view_->UpdateButtonStrip(); |
4109 } | 4110 } |
4110 | 4111 |
4111 void AutofillDialogControllerImpl::FetchWalletCookie() { | 4112 void AutofillDialogControllerImpl::FetchWalletCookie() { |
4112 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); | 4113 net::URLRequestContextGetter* request_context = profile_->GetRequestContext(); |
4113 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); | 4114 signin_helper_.reset(new wallet::WalletSigninHelper(this, request_context)); |
4114 signin_helper_->StartWalletCookieValueFetch(); | 4115 signin_helper_->StartWalletCookieValueFetch(); |
4115 } | 4116 } |
4116 | 4117 |
4117 } // namespace autofill | 4118 } // namespace autofill |
OLD | NEW |