| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/tab_autofill_manager_delegate.h" | 5 #include "chrome/browser/ui/autofill/tab_autofill_manager_delegate.h" |
| 6 | 6 |
| 7 #include "base/logging.h" | 7 #include "base/logging.h" |
| 8 #include "base/prefs/pref_service.h" |
| 8 #include "chrome/browser/api/infobars/infobar_service.h" | 9 #include "chrome/browser/api/infobars/infobar_service.h" |
| 9 #include "chrome/browser/autofill/password_generator.h" | 10 #include "chrome/browser/autofill/password_generator.h" |
| 10 #include "chrome/browser/password_manager/password_manager.h" | 11 #include "chrome/browser/password_manager/password_manager.h" |
| 11 #include "chrome/browser/prefs/pref_service.h" | |
| 12 #include "chrome/browser/profiles/profile.h" | 12 #include "chrome/browser/profiles/profile.h" |
| 13 #include "chrome/browser/sync/profile_sync_service.h" | 13 #include "chrome/browser/sync/profile_sync_service.h" |
| 14 #include "chrome/browser/sync/profile_sync_service_factory.h" | 14 #include "chrome/browser/sync/profile_sync_service_factory.h" |
| 15 #include "chrome/browser/ui/autofill/autocheckout_bubble.h" | 15 #include "chrome/browser/ui/autofill/autocheckout_bubble.h" |
| 16 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" | 16 #include "chrome/browser/ui/autofill/autofill_dialog_controller_impl.h" |
| 17 #include "chrome/browser/ui/browser.h" | 17 #include "chrome/browser/ui/browser.h" |
| 18 #include "chrome/browser/ui/browser_finder.h" | 18 #include "chrome/browser/ui/browser_finder.h" |
| 19 #include "chrome/browser/ui/browser_window.h" | 19 #include "chrome/browser/ui/browser_window.h" |
| 20 #include "chrome/browser/ui/chrome_pages.h" | 20 #include "chrome/browser/ui/chrome_pages.h" |
| 21 #include "chrome/common/url_constants.h" | 21 #include "chrome/common/url_constants.h" |
| (...skipping 101 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 123 RequestAutocompleteDialogClosed(); | 123 RequestAutocompleteDialogClosed(); |
| 124 } | 124 } |
| 125 | 125 |
| 126 void TabAutofillManagerDelegate::DidNavigateMainFrame( | 126 void TabAutofillManagerDelegate::DidNavigateMainFrame( |
| 127 const content::LoadCommittedDetails& details, | 127 const content::LoadCommittedDetails& details, |
| 128 const content::FrameNavigateParams& params) { | 128 const content::FrameNavigateParams& params) { |
| 129 // TODO(dbeam): selectively allow this dialog to remain open when going | 129 // TODO(dbeam): selectively allow this dialog to remain open when going |
| 130 // through the autocheckout flow (when the behavior is more fleshed out). | 130 // through the autocheckout flow (when the behavior is more fleshed out). |
| 131 HideRequestAutocompleteDialog(); | 131 HideRequestAutocompleteDialog(); |
| 132 } | 132 } |
| OLD | NEW |