| 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 242 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 253 } | 253 } |
| 254 | 254 |
| 255 void ContentAutofillDriver::NotifyFirstUserGestureObservedInTab() { | 255 void ContentAutofillDriver::NotifyFirstUserGestureObservedInTab() { |
| 256 GetAutofillAgent()->FirstUserGestureObservedInTab(); | 256 GetAutofillAgent()->FirstUserGestureObservedInTab(); |
| 257 } | 257 } |
| 258 | 258 |
| 259 const mojom::AutofillAgentPtr& ContentAutofillDriver::GetAutofillAgent() { | 259 const mojom::AutofillAgentPtr& ContentAutofillDriver::GetAutofillAgent() { |
| 260 // Here is a lazy binding, and will not reconnect after connection error. | 260 // Here is a lazy binding, and will not reconnect after connection error. |
| 261 if (!autofill_agent_) { | 261 if (!autofill_agent_) { |
| 262 render_frame_host_->GetRemoteInterfaces()->GetInterface( | 262 render_frame_host_->GetRemoteInterfaces()->GetInterface( |
| 263 mojo::GetProxy(&autofill_agent_)); | 263 mojo::MakeRequest(&autofill_agent_)); |
| 264 } | 264 } |
| 265 | 265 |
| 266 return autofill_agent_; | 266 return autofill_agent_; |
| 267 } | 267 } |
| 268 | 268 |
| 269 } // namespace autofill | 269 } // namespace autofill |
| OLD | NEW |