| 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 "components/autofill/content/browser/content_autofill_driver.h" | 5 #include "components/autofill/content/browser/content_autofill_driver.h" |
| 6 | 6 |
| 7 #include <utility> | 7 #include <utility> |
| 8 | 8 |
| 9 #include "base/command_line.h" | 9 #include "base/command_line.h" |
| 10 #include "base/threading/sequenced_worker_pool.h" | 10 #include "base/threading/sequenced_worker_pool.h" |
| (...skipping 200 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 211 } | 211 } |
| 212 | 212 |
| 213 void ContentAutofillDriver::DidNavigateFrame( | 213 void ContentAutofillDriver::DidNavigateFrame( |
| 214 const content::LoadCommittedDetails& details, | 214 const content::LoadCommittedDetails& details, |
| 215 const content::FrameNavigateParams& params) { | 215 const content::FrameNavigateParams& params) { |
| 216 if (details.is_navigation_to_different_page()) | 216 if (details.is_navigation_to_different_page()) |
| 217 autofill_manager_->Reset(); | 217 autofill_manager_->Reset(); |
| 218 } | 218 } |
| 219 | 219 |
| 220 void ContentAutofillDriver::SetAutofillManager( | 220 void ContentAutofillDriver::SetAutofillManager( |
| 221 scoped_ptr<AutofillManager> manager) { | 221 std::unique_ptr<AutofillManager> manager) { |
| 222 autofill_manager_ = std::move(manager); | 222 autofill_manager_ = std::move(manager); |
| 223 autofill_manager_->SetExternalDelegate(&autofill_external_delegate_); | 223 autofill_manager_->SetExternalDelegate(&autofill_external_delegate_); |
| 224 } | 224 } |
| 225 | 225 |
| 226 } // namespace autofill | 226 } // namespace autofill |
| OLD | NEW |